installing BGL-python
I'm installing the Boost Graph Library python bindings on a Debian testing machine. BGL-python appears not to be available as a .deb, so I am installing from source. http://www.osl.iu.edu/~dgregor/bgl-python/ The readme suggests I run $BOOST_ROOT/tools/build/jam_src/build.sh. This directory exists, but the file does not. It also suggests I run "bjam <options>". I can't think of any options I want a priori [ ;-) ] so I run bjam with no options, but to no avail: jeff@krypton:bgl-python-0.9 $ bjam Unable to load Boost.Build: could not find "boost-build.jam" --------------------------------------------------------------- Attempted search from /home/jeff/tmp/bgl-python-0.9 up to the root and in these directories from BOOST_BUILD_PATH and BOOST_ROOT: /usr/share/boost-build. Please consult the documentation at 'http://www.boost.org'. jeff@krypton:bgl-python-0.9 $ BTW, Boost.Build does not exist on my machine. I'm not clear on what should cause it to exist. Googling largely points me to the above. I'm a bit confused, clearly. Can anyone offer a pointer? Thanks much. -- Jeff Jeff Abrahamson http://www.purple.com/jeff/ +1 215/837-2287 GPG fingerprint: 1A1A BA95 D082 A558 A276 63C6 16BF 8C4C 0D1D AE4B
On Dec 22, 2005, at 6:43 PM, Jeff Abrahamson wrote:
It also suggests I run "bjam <options>". I can't think of any options I want a priori [ ;-) ] so I run bjam with no options, but to no avail:
jeff@krypton:bgl-python-0.9 $ bjam Unable to load Boost.Build: could not find "boost-build.jam" --------------------------------------------------------------- Attempted search from /home/jeff/tmp/bgl-python-0.9 up to the root and in these directories from BOOST_BUILD_PATH and BOOST_ROOT: / usr/share/boost-build. Please consult the documentation at 'http://www.boost.org'. jeff@krypton:bgl-python-0.9 $
BTW, Boost.Build does not exist on my machine. I'm not clear on what should cause it to exist.
What is the environment variable BOOST_ROOT set to? Typically we expect that it points to the root of the Boost distribution (there should be a "boost-build.jam" file there), but sometimes Linux distributions install Boost differently. Also, which version of Boost are you using? Googling for "boost" and "debian" I found an off-handed comment that the Debian packages don't play well with building Boost.Python modules with bjam, but that was from an older version of Boost, so it may be irrelevant now. Doug
Jeff Abrahamson wrote:
The readme suggests I run $BOOST_ROOT/tools/build/jam_src/build.sh. This directory exists, but the file does not.
It also suggests I run "bjam <options>". I can't think of any options I want a priori [ ;-) ] so I run bjam with no options, but to no avail:
jeff@krypton:bgl-python-0.9 $ bjam Unable to load Boost.Build: could not find "boost-build.jam" --------------------------------------------------------------- Attempted search from /home/jeff/tmp/bgl-python-0.9 up to the root and in these directories from BOOST_BUILD_PATH and BOOST_ROOT: /usr/share/boost-build. Please consult the documentation at 'http://www.boost.org'. jeff@krypton:bgl-python-0.9 $
If you need the sources for boost (and you will, if you need the boost build system for bjam), I recommend that you get the Debian package source: mkdir boost cd boost #unpacked package files will be here apt-get source boost #this will make a subdir boost-1.32.0 You should now have the unpacked boost source from the Debian source package in the directory boost-1.32.0. So you should be able to set BOOST_ROOT to <somewhere>/boost/boost-1.32.0 and then build BGL-python. The tools/build/jam_src/build.sh is in there also, but you shouldn't need it because it appears that you already have the Debian binary package for bjam. The build.sh script builds bjam. So you should be able to skip the "Boost.Jam" section in the BGL-python README. -- Hope this helps, Rob
Oh, one more thing, the bjam options will be specific to the bjam configurations in Boost.Build. So run bjam --help after you have BOOST_ROOT set correctly and you will see the available bjam options for the boost build system. (And I don't think there is any file called "Boost.Build", that's the name of the build system which is loaded by boost-build.jam.) -Rob Rob Lemley wrote:
Jeff Abrahamson wrote:
The readme suggests I run $BOOST_ROOT/tools/build/jam_src/build.sh. This directory exists, but the file does not.
It also suggests I run "bjam <options>". I can't think of any options I want a priori [ ;-) ] so I run bjam with no options, but to no avail:
jeff@krypton:bgl-python-0.9 $ bjam Unable to load Boost.Build: could not find "boost-build.jam" --------------------------------------------------------------- Attempted search from /home/jeff/tmp/bgl-python-0.9 up to the root and in these directories from BOOST_BUILD_PATH and BOOST_ROOT: /usr/share/boost-build. Please consult the documentation at 'http://www.boost.org'. jeff@krypton:bgl-python-0.9 $
If you need the sources for boost (and you will, if you need the boost build system for bjam), I recommend that you get the Debian package source:
mkdir boost cd boost #unpacked package files will be here apt-get source boost #this will make a subdir boost-1.32.0
You should now have the unpacked boost source from the Debian source package in the directory boost-1.32.0. So you should be able to set BOOST_ROOT to <somewhere>/boost/boost-1.32.0 and then build BGL-python.
The tools/build/jam_src/build.sh is in there also, but you shouldn't need it because it appears that you already have the Debian binary package for bjam. The build.sh script builds bjam. So you should be able to skip the "Boost.Jam" section in the BGL-python README.
On Dec 29, 2005, at 1:45 PM, Rob Lemley wrote:
If you need the sources for boost (and you will, if you need the boost build system for bjam), I recommend that you get the Debian package source:
mkdir boost cd boost #unpacked package files will be here apt-get source boost #this will make a subdir boost-1.32.0
Oh, and you'll need Boost 1.33.0 or newer for the BGL-Python bindings... I think 1.33.0 is in Debian unstable. Doug
Jeff Abrahamson
I'm installing the Boost Graph Library python bindings on a Debian testing machine. BGL-python appears not to be available as a .deb, so I am installing from source.
http://www.osl.iu.edu/~dgregor/bgl-python/
The readme suggests I run $BOOST_ROOT/tools/build/jam_src/build.sh. This directory exists, but the file does not.
It also suggests I run "bjam <options>". I can't think of any options I want a priori [ ;-) ] so I run bjam with no options, but to no avail:
jeff@krypton:bgl-python-0.9 $ bjam Unable to load Boost.Build: could not find "boost-build.jam" --------------------------------------------------------------- Attempted search from /home/jeff/tmp/bgl-python-0.9 up to the root and in these directories from BOOST_BUILD_PATH and BOOST_ROOT: /usr/share/boost-build. Please consult the documentation at 'http://www.boost.org'. jeff@krypton:bgl-python-0.9 $
BTW, Boost.Build does not exist on my machine. I'm not clear on what should cause it to exist.
The easiest way to cause it to exist is to download the Boost tarball from http://sourceforge.net/project/showfiles.php?group_id=7586, and download a Boost.Jam executable or go to the tools/build/jam_src directory of your unpacked Boost tarball, and execute ./build.sh Details at http://www.boost.org/more/getting_started.html#Preparation. Do *not* download the boost-build package from http://sourceforge.net/project/showfiles.php?group_id=7586; that is an unreleased future version of the build system. -- Dave Abrahams Boost Consulting www.boost-consulting.com
participants (5)
-
David Abrahams
-
Doug Gregor
-
Douglas Gregor
-
Jeff Abrahamson
-
Rob Lemley