Query regarding compiling BOOST parallel graph library

Hi All, I am using BOOST 1_41_0 version. I compiled it using bjam --with-mpi install --prefix=somepath in the BOOST home directory. I am not sure whether this is enough to get the parallel graph library also compiled. How can I verfity whether my parallel graph library also compiled ? If it is compiled how to run the test programs given the test directory ? Can anybody give me some directions on this ? Thanks, Praga.

On Wed, 25 Nov 2009, praga wrote:
Hi All, I am using BOOST 1_41_0 version. I compiled it using bjam --with-mpi install --prefix=somepath in the BOOST home directory. I am not sure whether this is enough to get the parallel graph library also compiled. How can I verfity whether my parallel graph library also compiled ? If it is compiled how to run the test programs given the test directory ?
Can anybody give me some directions on this ?
It should be compiled if Boost.MPI is. Look for a libboost_graph_parallel* library in your installed lib directory to be sure. -- Jeremiah Willcock

Hi,
Thanks for reply.
I didnot find any libboost_graph_parallel in the installed directory.
I found only the following when I gave ls
libboost_mpi.a libboost_mpi.so.1.41.0 libboost_serialization.so
libboost_mpi.so libboost_serialization.a libboost_serialization.so.1.41.0
Is it not that all are linked together in libboost_mpi.a ?
I am still not able to figure out how to run the tests in
the libs/graph_parallel/test directory. Any ideas ?
Thanks,
Praga.
On Wed, Nov 25, 2009 at 10:33 AM, Jeremiah Willcock
On Wed, 25 Nov 2009, praga wrote:
Hi All, I am using BOOST 1_41_0 version. I compiled it using bjam
--with-mpi install --prefix=somepath in the BOOST home directory. I am not sure whether this is enough to get the parallel graph library also compiled. How can I verfity whether my parallel graph library also compiled ? If it is compiled how to run the test programs given the test directory ?
Can anybody give me some directions on this ?
It should be compiled if Boost.MPI is. Look for a libboost_graph_parallel* library in your installed lib directory to be sure.
-- Jeremiah Willcock _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

On Wed, 25 Nov 2009, praga wrote:
Hi,
Thanks for reply.
I didnot find any libboost_graph_parallel in the installed directory.
I found only the following when I gave ls
libboost_mpi.a libboost_mpi.so.1.41.0 libboost_serialization.so libboost_mpi.so libboost_serialization.a libboost_serialization.so.1.41.0
Is it not that all are linked together in libboost_mpi.a ?
I am still not able to figure out how to run the tests in the libs/graph_parallel/test directory. Any ideas ?
Thanks, Praga.
Sorry -- I forgot that --with-mpi turned off all other libraries. Try adding --with-graph_parallel to your build line. -- Jeremiah Willcock

Thanks for your help. I guess the graph_parallel lib is included in the
libboost_mpi.a. I tried compiling the program adjlist_build_test.cpp in the
libs/graph_parallel/test directory but I am getting the following error.
~/bin/boostpath is the directory I gave in --prefix during install. What
could be the problem ?
[pragatheeswaran@prairiefire ~]$ cd boost_1_41_0/libs/graph_parallel/test/
[pragatheeswaran@prairiefire test]$ mpic++ -I ~/bin/boostpath/include
adjlist_build_test.cpp -L ~/bin/boostpath/lib/ -lboost_mpi
-lboost_serialization
/tmp/cce7v8wU.o: In function `__static_initialization_and_destruction_0(int,
int)':
adjlist_build_test.cpp:(.text+0xa22): undefined reference to
`boost::system::get_system_category()'
adjlist_build_test.cpp:(.text+0xa2e): undefined reference to
`boost::system::get_generic_category()'
adjlist_build_test.cpp:(.text+0xa3a): undefined reference to
`boost::system::get_generic_category()'
adjlist_build_test.cpp:(.text+0xa46): undefined reference to
`boost::system::get_generic_category()'
adjlist_build_test.cpp:(.text+0xa52): undefined reference to
`boost::system::get_system_category()'
/tmp/cce7v8wU.o: In function `test_main(int, char**)':
adjlist_build_test.cpp:(.text+0x1966): undefined reference to
`boost::graph::distributed::mpi_process_group::mpi_process_group(boost::mpi::communicator)'
adjlist_build_test.cpp:(.text+0x2076): undefined reference to
`boost::graph::distributed::communicator(boost::graph::distributed::mpi_process_group
const&)'
adjlist_build_test.cpp:(.text+0x217b): undefined reference to
`boost::graph::distributed::communicator(boost::graph::distributed::mpi_process_group
const&)'
adjlist_build_test.cpp:(.text+0x2483): undefined reference to
`boost::graph::distributed::communicator(boost::graph::distributed::mpi_process_group
const&)'
adjlist_build_test.cpp:(.text+0x2690): undefined reference to
`boost::graph::distributed::communicator(boost::graph::distributed::mpi_process_group
const&)'
adjlist_build_test.cpp:(.text+0x2d8e): undefined reference to
`boost::graph::distributed::communicator(boost::graph::distributed::mpi_process_group
const&)'
/tmp/cce7v8wU.o:adjlist_build_test.cpp:(.text+0x2e93): more undefined
references to
`boost::graph::distributed::communicator(boost::graph::distributed::mpi_process_group
const&)' follow
/tmp/cce7v8wU.o: In function `test_main(int, char**)':
adjlist_build_test.cpp:(.text+0x34cc): undefined reference to
`boost::graph::distributed::mpi_process_group::~mpi_process_group()'
adjlist_build_test.cpp:(.text+0x34e8): undefined reference to
`boost::graph::distributed::mpi_process_group::~mpi_process_group()'
/tmp/cce7v8wU.o: In function
`boost::graph::distributed::maybe_named_graph
On Wed, 25 Nov 2009, praga wrote:
Hi,
Thanks for reply.
I didnot find any libboost_graph_parallel in the installed directory.
I found only the following when I gave ls
libboost_mpi.a libboost_mpi.so.1.41.0 libboost_serialization.so libboost_mpi.so libboost_serialization.a libboost_serialization.so.1.41.0
Is it not that all are linked together in libboost_mpi.a ?
I am still not able to figure out how to run the tests in the libs/graph_parallel/test directory. Any ideas ?
Thanks, Praga.
Sorry -- I forgot that --with-mpi turned off all other libraries. Try adding --with-graph_parallel to your build line.
-- Jeremiah Willcock _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

On Wed, 25 Nov 2009, praga wrote:
Thanks for your help. I guess the graph_parallel lib is included in the libboost_mpi.a. I tried compiling the program adjlist_build_test.cpp in the libs/graph_parallel/test directory but I am getting the following error. ~/bin/boostpath is the directory I gave in --prefix during install. What could be the problem ?
There should be a libboost_graph_parallel.a; the parallel graph stuff should not be in libboost_mpi.a. When you link your code, you need the libraries you listed plus -lboost_system and -lboost_graph_parallel. -- Jeremiah Willcock

When I did a install I indeed saw the graph_parallel being linked but when I
did an ls I didnt find any extra files. Could you please let me know where I
went wrong?
pragatheeswaran@prairiefire boost_1_41_0]$ bjam --with-mpi
--with-graph_parallel install --prefix=~/bin/boostpath/
warning: No toolsets are configured.
warning: Configuring default toolset "gcc".
warning: If the default is wrong, your build may not work correctly.
warning: Use the "toolset=xxxxx" option to override our guess.
warning: For more configuration options, please consult
warning:
http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html
...patience...
...patience...
...found 17726 targets...
...updating 3 targets...
common.copy ~/bin/boostpath/lib/libboost_graph_parallel.a
common.copy ~/bin/boostpath/lib/libboost_graph_parallel.so.1.41.0
ln-UNIX ~/bin/boostpath/lib/libboost_graph_parallel.so
...updated 3 targets...
ls output
[pragatheeswaran@prairiefire lib]$ ls
libboost_mpi.a libboost_mpi.so.1.41.0 libboost_serialization.so
libboost_mpi.so libboost_serialization.a libboost_serialization.so.1.41.0
Thanks,
Praga.
On Wed, Nov 25, 2009 at 12:32 PM, Jeremiah Willcock
On Wed, 25 Nov 2009, praga wrote:
Thanks for your help. I guess the graph_parallel lib is included in the
libboost_mpi.a. I tried compiling the program adjlist_build_test.cpp in the libs/graph_parallel/test directory but I am getting the following error. ~/bin/boostpath is the directory I gave in --prefix during install. What could be the problem ?
There should be a libboost_graph_parallel.a; the parallel graph stuff should not be in libboost_mpi.a. When you link your code, you need the libraries you listed plus -lboost_system and -lboost_graph_parallel.
-- Jeremiah Willcock _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

On Wed, 25 Nov 2009, praga wrote:
When I did a install I indeed saw the graph_parallel being linked but when I did an ls I didnt find any extra files. Could you please let me know where I went wrong?
pragatheeswaran@prairiefire boost_1_41_0]$ bjam --with-mpi --with-graph_parallel install --prefix=~/bin/boostpath/ warning: No toolsets are configured. warning: Configuring default toolset "gcc". warning: If the default is wrong, your build may not work correctly. warning: Use the "toolset=xxxxx" option to override our guess. warning: For more configuration options, please consult warning: http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html ...patience... ...patience... ...found 17726 targets... ...updating 3 targets... common.copy ~/bin/boostpath/lib/libboost_graph_parallel.a common.copy ~/bin/boostpath/lib/libboost_graph_parallel.so.1.41.0 ln-UNIX ~/bin/boostpath/lib/libboost_graph_parallel.so ...updated 3 targets...
ls output
[pragatheeswaran@prairiefire lib]$ ls libboost_mpi.a libboost_mpi.so.1.41.0 libboost_serialization.so libboost_mpi.so libboost_serialization.a libboost_serialization.so.1.41.0
Do you get the warning about MPI not being found? Does your libboost_mpi.{a,so} contain any symbols (use nm -D on the .so file)? Which lib directory are you looking in? The one in ~/bin/boostpath/lib? I'm just checking the "obvious" things to look for simple problems first. -- Jeremiah Willcock

I guess you are right.. I have some problems with some basic boost mpi
stuffs itself..
I ran a simple program using boost mpi but I found some problems with that.
I have given the code and actions I have done. The ldd clearly says it cant
find many libraries. I am not sure how to fix this. Could you please help me
?
main.cpp
#include
On Wed, 25 Nov 2009, praga wrote:
When I did a install I indeed saw the graph_parallel being linked but when
I did an ls I didnt find any extra files. Could you please let me know where I went wrong?
pragatheeswaran@prairiefire boost_1_41_0]$ bjam --with-mpi --with-graph_parallel install --prefix=~/bin/boostpath/ warning: No toolsets are configured. warning: Configuring default toolset "gcc". warning: If the default is wrong, your build may not work correctly. warning: Use the "toolset=xxxxx" option to override our guess. warning: For more configuration options, please consult warning: http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html ...patience... ...patience... ...found 17726 targets... ...updating 3 targets... common.copy ~/bin/boostpath/lib/libboost_graph_parallel.a common.copy ~/bin/boostpath/lib/libboost_graph_parallel.so.1.41.0 ln-UNIX ~/bin/boostpath/lib/libboost_graph_parallel.so ...updated 3 targets...
ls output
[pragatheeswaran@prairiefire lib]$ ls libboost_mpi.a libboost_mpi.so.1.41.0 libboost_serialization.so libboost_mpi.so libboost_serialization.a libboost_serialization.so.1.41.0
Do you get the warning about MPI not being found? Does your libboost_mpi.{a,so} contain any symbols (use nm -D on the .so file)? Which lib directory are you looking in? The one in ~/bin/boostpath/lib? I'm just checking the "obvious" things to look for simple problems first.
-- Jeremiah Willcock _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

nm -D output
[pragatheeswaran@prairiefire lib]$ nm -D libboost_mpi.a
broadcast.o:
nm: broadcast.o: No symbols
Yes I am looking at ~/bin/boostpath/lib directory for the specified library
files.
Thanks,
Praga.
On Wed, Nov 25, 2009 at 1:00 PM, praga
I guess you are right.. I have some problems with some basic boost mpi stuffs itself..
I ran a simple program using boost mpi but I found some problems with that. I have given the code and actions I have done. The ldd clearly says it cant find many libraries. I am not sure how to fix this. Could you please help me ?
main.cpp
#include
#include #include <iostream>namespace mpi = boost::mpi; int main(int argc, char* argv[]) { mpi::environment env(argc, argv); mpi::communicator world; std::cout << "I am process " << world.rank() << " of " << world.size() << "." << std::endl; return 0;} [pragatheeswaran@prairiefire ~]$ mpic++ -I bin/boostpath/include main.cpp -L bin/boostpath/lib/ -lboost_mpi -lboost_serialization [pragatheeswaran@prairiefire ~]$ ldd a.out libboost_mpi.so.1.41.0 => not found libboost_serialization.so.1.41.0 => not found libmpi_cxx.so.0 => not found libmpi.so.0 => not found libopen-rte.so.0 => not found libopen-pal.so.0 => not found libdl.so.2 => /lib64/libdl.so.2 (0x0000003b54200000) libnsl.so.1 => /lib64/libnsl.so.1 (0x0000003b57200000) libutil.so.1 => /lib64/libutil.so.1 (0x0000003b64400000) libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003c63800000) libm.so.6 => /lib64/libm.so.6 (0x0000003b54600000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003c66600000) libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003b54a00000) libc.so.6 => /lib64/libc.so.6 (0x0000003b53e00000) /lib64/ld-linux-x86-64.so.2 (0x0000003b53a00000) [pragatheeswaran@prairiefire ~]$ mpirun -np 4 a.out a.out: error while loading shared libraries: libboost_mpi.so.1.41.0: cannot open shared object file: No such file or directory a.out: error while loading shared libraries: libboost_mpi.so.1.41.0: cannot open shared object file: No such file or directory a.out: error while loading shared libraries: libboost_mpi.so.1.41.0: cannot open shared object file: No such file or directory a.out: error while loading shared libraries: libboost_mpi.so.1.41.0: cannot open shared object file: No such file or directory [pragatheeswaran@prairiefire ~]$
Thanks, Praga.
On Wed, Nov 25, 2009 at 12:52 PM, Jeremiah Willcock
wrote: On Wed, 25 Nov 2009, praga wrote:
When I did a install I indeed saw the graph_parallel being linked but
when I did an ls I didnt find any extra files. Could you please let me know where I went wrong?
pragatheeswaran@prairiefire boost_1_41_0]$ bjam --with-mpi --with-graph_parallel install --prefix=~/bin/boostpath/ warning: No toolsets are configured. warning: Configuring default toolset "gcc". warning: If the default is wrong, your build may not work correctly. warning: Use the "toolset=xxxxx" option to override our guess. warning: For more configuration options, please consult warning: http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html ...patience... ...patience... ...found 17726 targets... ...updating 3 targets... common.copy ~/bin/boostpath/lib/libboost_graph_parallel.a common.copy ~/bin/boostpath/lib/libboost_graph_parallel.so.1.41.0 ln-UNIX ~/bin/boostpath/lib/libboost_graph_parallel.so ...updated 3 targets...
ls output
[pragatheeswaran@prairiefire lib]$ ls libboost_mpi.a libboost_mpi.so.1.41.0 libboost_serialization.so libboost_mpi.so libboost_serialization.a libboost_serialization.so.1.41.0
Do you get the warning about MPI not being found? Does your libboost_mpi.{a,so} contain any symbols (use nm -D on the .so file)? Which lib directory are you looking in? The one in ~/bin/boostpath/lib? I'm just checking the "obvious" things to look for simple problems first.
-- Jeremiah Willcock _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Hi praga, praga wrote:
I guess you are right.. I have some problems with some basic boost mpi stuffs itself..
Have you set your $LD_LIBRARY_PATH environment variable? I haven't installed 1.41, but for v1.40, I added /usr/local/boost_1_40_0/lib to the search path. As for an earlier e-mail of your's, in terms of boost installation, one thing that I did which was different was that I added "using mpi ;" to the end of my project-config.jam file before running bjam. I don't know if it is necessary; it's something I did for an older version of boost a while back and haven't bothered to check if it's still needed... Ray

The MPI program works correctly after setting the LD_LIBRARY_PATH.
I still have problems with parallel_graph library compilation.
Any suggestions ?
[pragatheeswaran@prairiefire test]$ mpic++ -I ~/bin/boostpath/include
adjlist_build_test.cpp -L ~/bin/boostpath/lib/ -lboost_mpi
-lboost_serialization
/tmp/ccNyFVXh.o: In function `__static_initialization_and_destruction_0(int,
int)':
adjlist_build_test.cpp:(.text+0xa22): undefined reference to
`boost::system::get_system_category()'
adjlist_build_test.cpp:(.text+0xa2e): undefined reference to
`boost::system::get_generic_category()'
adjlist_build_test.cpp:(.text+0xa3a): undefined reference to
`boost::system::get_generic_category()'
adjlist_build_test.cpp:(.text+0xa46): undefined reference to
`boost::system::get_generic_category()'
adjlist_build_test.cpp:(.text+0xa52): undefined reference to
`boost::system::get_system_category()'
/tmp/ccNyFVXh.o: In function `test_main(int, char**)':
adjlist_build_test.cpp:(.text+0x1966): undefined reference to
`boost::graph::distributed::mpi_process_group::mpi_process_group(boost::mpi::communicator)'
adjlist_build_test.cpp:(.text+0x2076): undefined reference to
`boost::graph::distributed::communicator(boost::graph::distributed::mpi_process_group
const&)'
adjlist_build_test.cpp:(.text+0x217b): undefined reference to
`boost::graph::distributed::communicator(boost::graph::distributed::mpi_process_group
const&)'
adjlist_build_test.cpp:(.text+0x2483): undefined reference to
`boost::graph::distributed::communicator(boost::graph::distributed::mpi_process_group
const&)'
adjlist_build_test.cpp:(.text+0x2690): undefined reference to
`boost::graph::distributed::communicator(boost::graph::distributed::mpi_process_group
const&)'
adjlist_build_test.cpp:(.text+0x2d8e): undefined reference to
`boost::graph::distributed::communicator(boost::graph::distributed::mpi_process_group
const&)'
/tmp/ccNyFVXh.o:adjlist_build_test.cpp:(.text+0x2e93): more undefined
references to
`boost::graph::distributed::communicator(boost::graph::distributed::mpi_process_group
const&)' follow
/tmp/ccNyFVXh.o: In function `test_main(int, char**)':
adjlist_build_test.cpp:(.text+0x34cc): undefined reference to
`boost::graph::distributed::mpi_process_group::~mpi_process_group()'
adjlist_build_test.cpp:(.text+0x34e8): undefined reference to
`boost::graph::distributed::mpi_process_group::~mpi_process_group()'
Thanks,
Praga.
On Thu, Nov 26, 2009 at 1:11 AM, Raymond Wan
Hi praga,
praga wrote:
I guess you are right.. I have some problems with some basic boost mpi stuffs itself..
Have you set your $LD_LIBRARY_PATH environment variable? I haven't installed 1.41, but for v1.40, I added /usr/local/boost_1_40_0/lib to the search path.
As for an earlier e-mail of your's, in terms of boost installation, one thing that I did which was different was that I added "using mpi ;" to the end of my project-config.jam file before running bjam. I don't know if it is necessary; it's something I did for an older version of boost a while back and haven't bothered to check if it's still needed...
Ray
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

praga wrote:
The MPI program works correctly after setting the LD_LIBRARY_PATH. I still have problems with parallel_graph library compilation. Any suggestions ?
[pragatheeswaran@prairiefire test]$ mpic++ -I ~/bin/boostpath/include adjlist_build_test.cpp -L ~/bin/boostpath/lib/ -lboost_mpi -lboost_serialization /tmp/ccNyFVXh.o: In function `__static_initialization_and_destruction_0(int, int)': adjlist_build_test.cpp:(.text+0xa22): undefined reference to `boost::system::get_system_category()'
You need to add -lboost_system to the end of your compile command. FWIW, the following might be of general help when dealing with linker errors: http://vladimir_prus.blogspot.com/2009/06/linking-101.html
adjlist_build_test.cpp:(.text+0x2076): undefined reference to `boost::graph::distributed::communicator(boost::graph::distributed::mpi_process_group const&)'
Hopefully, given the above suggestions and the URL, you will be able to figure what do do about this linker error, too. - Volodya

Thanks for reply.
Actually the problem is I dont have any other libraries in the installed
path other than
libboost_mpi and libboost_serialization. So whenever I try to include
libraries such as libboost_system or libboost_graph_parallel I am getting
errors that those libraries are not found.
I compiled the BOOST using bjam --with-mpi --with-graph_parallel and
installed using command bjam --with-mpi --with-graph_parallel install
--prefix=~/bin/boostpath
I remember seeing the parallel graph libraries while installing in the
command line but I am not sure why they are not there in the installed
path.
Any suggestions ?
Thanks,
Praga.
On Thu, Nov 26, 2009 at 10:53 AM, Vladimir Prus
praga wrote:
The MPI program works correctly after setting the LD_LIBRARY_PATH. I still have problems with parallel_graph library compilation. Any suggestions ?
[pragatheeswaran@prairiefire test]$ mpic++ -I ~/bin/boostpath/include adjlist_build_test.cpp -L ~/bin/boostpath/lib/ -lboost_mpi -lboost_serialization /tmp/ccNyFVXh.o: In function `__static_initialization_and_destruction_0(int, int)': adjlist_build_test.cpp:(.text+0xa22): undefined reference to `boost::system::get_system_category()'
You need to add -lboost_system to the end of your compile command. FWIW, the following might be of general help when dealing with linker errors:
http://vladimir_prus.blogspot.com/2009/06/linking-101.html
adjlist_build_test.cpp:(.text+0x2076): undefined reference to
`boost::graph::distributed::communicator(boost::graph::distributed::mpi_process_group
const&)'
Hopefully, given the above suggestions and the URL, you will be able to figure what do do about this linker error, too.
- Volodya
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

praga wrote:
Thanks for reply. Actually the problem is I dont have any other libraries in the installed path other than libboost_mpi and libboost_serialization.
It would be better if you explicitly say so, rather then omitting those libraries and reporting the expected linker errors you get.
So whenever I try to include libraries such as libboost_system or libboost_graph_parallel I am getting errors that those libraries are not found.
I compiled the BOOST using bjam --with-mpi --with-graph_parallel and installed using command bjam --with-mpi --with-graph_parallel install --prefix=~/bin/boostpath
I remember seeing the parallel graph libraries while installing in the command line but I am not sure why they are not there in the installed path.
Could you please run the following command in the root of your Boost source tree: bjam --with-mpi --with-graph_parallel --prefix=/tmp/boost install > log 2>&1 and then run this command: ls /tmp/boost > log and then archive and post the 'log' file? Please run the commands exactly as written -- in fact, just copy paste them in your terminal. - Volodya

Vladimir Prus wrote:
praga wrote:
Thanks for reply. Actually the problem is I dont have any other libraries in the installed path other than libboost_mpi and libboost_serialization.
It would be better if you explicitly say so, rather then omitting those libraries and reporting the expected linker errors you get.
So whenever I try to include libraries such as libboost_system or libboost_graph_parallel I am getting errors that those libraries are not found.
I compiled the BOOST using bjam --with-mpi --with-graph_parallel and installed using command bjam --with-mpi --with-graph_parallel install --prefix=~/bin/boostpath
I remember seeing the parallel graph libraries while installing in the command line but I am not sure why they are not there in the installed path.
Could you please run the following command in the root of your Boost source tree:
bjam --with-mpi --with-graph_parallel --prefix=/tmp/boost install > log 2>&1
and then run this command:
ls /tmp/boost > log
Correction: this should be: ls /tmp/boost >> log - Volodya

Vladimir Prus wrote:
Vladimir Prus wrote:
praga wrote:
Thanks for reply. Actually the problem is I dont have any other libraries in the installed path other than libboost_mpi and libboost_serialization.
It would be better if you explicitly say so, rather then omitting those libraries and reporting the expected linker errors you get.
So whenever I try to include libraries such as libboost_system or libboost_graph_parallel I am getting errors that those libraries are not found.
I compiled the BOOST using bjam --with-mpi --with-graph_parallel and installed using command bjam --with-mpi --with-graph_parallel install --prefix=~/bin/boostpath
I remember seeing the parallel graph libraries while installing in the command line but I am not sure why they are not there in the installed path.
Could you please run the following command in the root of your Boost source tree:
bjam --with-mpi --with-graph_parallel --prefix=/tmp/boost install > log 2>&1
and then run this command:
ls /tmp/boost > log
Correction: this should be:
ls /tmp/boost >> log
Correction 2: this should be ls /tmp/boost/lib >> log - Volodya

I am able to see the graph_parallel library in that directory but not the
system library. I have attached the log file with this email. I am not sure
what is the problem with system library. I tried to compile like following
[pragatheeswaran@prairiefire ~]$ mpic++ -I /tmp/boost/include
adjlist_build_test.cpp -L /tmp/boost/lib/ -lboost_mpi -lboost_serialization
-lboost_graph_parallel
/tmp/ccqgYccw.o: In function `__static_initialization_and_destruction_0(int,
int)':
adjlist_build_test.cpp:(.text+0xa22): undefined reference to
`boost::system::get_system_category()'
adjlist_build_test.cpp:(.text+0xa2e): undefined reference to
`boost::system::get_generic_category()'
adjlist_build_test.cpp:(.text+0xa3a): undefined reference to
`boost::system::get_generic_category()'
adjlist_build_test.cpp:(.text+0xa46): undefined reference to
`boost::system::get_generic_category()'
adjlist_build_test.cpp:(.text+0xa52): undefined reference to
`boost::system::get_system_category()'
collect2: ld returned 1 exit status
[pragatheeswaran@prairiefire ~]$ mpic++ -I /tmp/boost/include
adjlist_build_test.cpp -L /tmp/boost/lib/ -lboost_mpi -lboost_serialization
-lboost_graph_parallel -lboost_system
/usr/bin/ld: cannot find -lboost_system
collect2: ld returned 1 exit status
[pragatheeswaran@prairiefire ~]$
Thanks,
Praga.
On Thu, Nov 26, 2009 at 11:31 AM, Vladimir Prus
Vladimir Prus wrote:
Vladimir Prus wrote:
praga wrote:
Thanks for reply. Actually the problem is I dont have any other libraries in the installed path other than libboost_mpi and libboost_serialization.
It would be better if you explicitly say so, rather then omitting those libraries and reporting the expected linker errors you get.
So whenever I try to include libraries such as libboost_system or libboost_graph_parallel I am getting errors that those libraries are not found.
I compiled the BOOST using bjam --with-mpi --with-graph_parallel and installed using command bjam --with-mpi --with-graph_parallel install --prefix=~/bin/boostpath
I remember seeing the parallel graph libraries while installing in the command line but I am not sure why they are not there in the installed path.
Could you please run the following command in the root of your Boost source tree:
bjam --with-mpi --with-graph_parallel --prefix=/tmp/boost install > log 2>&1
and then run this command:
ls /tmp/boost > log
Correction: this should be:
ls /tmp/boost >> log
Correction 2: this should be
ls /tmp/boost/lib >> log
- Volodya
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

I did a guess work of including --with-system along with other --with-XXX
while installing and this proved correct. Thanks for all for helping me. So
finally if we have to install boost graph parallel library we need to use
the following command
bjam --with-mpi --with-graph_parallel --with-system --prefix=Installdir
install
Thanks,
Praga.
On Thu, Nov 26, 2009 at 12:01 PM, praga
I am able to see the graph_parallel library in that directory but not the system library. I have attached the log file with this email. I am not sure what is the problem with system library. I tried to compile like following
[pragatheeswaran@prairiefire ~]$ mpic++ -I /tmp/boost/include adjlist_build_test.cpp -L /tmp/boost/lib/ -lboost_mpi -lboost_serialization -lboost_graph_parallel /tmp/ccqgYccw.o: In function `__static_initialization_and_destruction_0(int, int)': adjlist_build_test.cpp:(.text+0xa22): undefined reference to `boost::system::get_system_category()' adjlist_build_test.cpp:(.text+0xa2e): undefined reference to `boost::system::get_generic_category()' adjlist_build_test.cpp:(.text+0xa3a): undefined reference to `boost::system::get_generic_category()' adjlist_build_test.cpp:(.text+0xa46): undefined reference to `boost::system::get_generic_category()' adjlist_build_test.cpp:(.text+0xa52): undefined reference to `boost::system::get_system_category()' collect2: ld returned 1 exit status [pragatheeswaran@prairiefire ~]$ mpic++ -I /tmp/boost/include adjlist_build_test.cpp -L /tmp/boost/lib/ -lboost_mpi -lboost_serialization -lboost_graph_parallel -lboost_system /usr/bin/ld: cannot find -lboost_system collect2: ld returned 1 exit status [pragatheeswaran@prairiefire ~]$
Thanks, Praga.
On Thu, Nov 26, 2009 at 11:31 AM, Vladimir Prus
wrote:
Vladimir Prus wrote:
Vladimir Prus wrote:
praga wrote:
Thanks for reply. Actually the problem is I dont have any other libraries in the installed path other than libboost_mpi and libboost_serialization.
It would be better if you explicitly say so, rather then omitting those libraries and reporting the expected linker errors you get.
So whenever I try to include libraries such as libboost_system or libboost_graph_parallel I am getting errors that those libraries are not found.
I compiled the BOOST using bjam --with-mpi --with-graph_parallel and installed using command bjam --with-mpi --with-graph_parallel install --prefix=~/bin/boostpath
I remember seeing the parallel graph libraries while installing in the command line but I am not sure why they are not there in the installed path.
Could you please run the following command in the root of your Boost source tree:
bjam --with-mpi --with-graph_parallel --prefix=/tmp/boost install > log 2>&1
and then run this command:
ls /tmp/boost > log
Correction: this should be:
ls /tmp/boost >> log
Correction 2: this should be
ls /tmp/boost/lib >> log
- Volodya
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (4)
-
Jeremiah Willcock
-
praga
-
Raymond Wan
-
Vladimir Prus