python example build newbie problem

Hi I'm hoping this is a reasonable place to ask the question but please point me elsewhere otherwise. I'm trying and failing to build the Boost Python examples. In the directory boost-1_35/libs/python/example/tutorial I am running "bjam". It dies with the following errors: /sw/lib/boost-1_35/tools/build/v2/build/project.jam:266: in find- jamfile from module project error: Unable to load Jamfile. error: Could not find a Jamfile in directory '../../../..'. error: Attempted to find it with pattern '[Bb]uild.jam [Jj]amfile.v2 [Jj]amfile [Jj]amfile.jam'. Here's my configuration: * Intel Mac OS X, 10.5.3 * boost 1.35 * installation is via fink unstable, everything is up to date * I have made unrelated changes (I think) to site-config.jam, in my home directory * I have put the following into my user-config.jam: using darwin ; using python ; bjam --debug-configuration indicates that python is happily found. I'm inclined to suspect that the boost fink package is incorrectly or incompletely configured, but I can't figure out why bjam (correctly configured or not) would look for a Jamfile in that directory. Thanks in advance... David

David Philp wrote:
Hi
I'm hoping this is a reasonable place to ask the question but please point me elsewhere otherwise.
I'm trying and failing to build the Boost Python examples. In the directory boost-1_35/libs/python/example/tutorial I am running "bjam". It dies with the following errors: /sw/lib/boost-1_35/tools/build/v2/build/project.jam:266: in find- jamfile from module project error: Unable to load Jamfile. error: Could not find a Jamfile in directory '../../../..'. error: Attempted to find it with pattern '[Bb]uild.jam [Jj]amfile.v2 [Jj]amfile [Jj]amfile.jam'.
Here's my configuration: * Intel Mac OS X, 10.5.3 * boost 1.35
Is there a file called "Jamroot" in root directory -- specifically, in /sw/lib/boost-1_35 directory. If not, this is not a good Boost source tree. - Volodya

On 01/07/2008, at 1:34 PM, Vladimir Prus wrote:
David Philp wrote:
Hi
I'm hoping this is a reasonable place to ask the question but please point me elsewhere otherwise.
I'm trying and failing to build the Boost Python examples. In the directory boost-1_35/libs/python/example/tutorial I am running "bjam". It dies with the following errors: /sw/lib/boost-1_35/tools/build/v2/build/project.jam:266: in find- jamfile from module project error: Unable to load Jamfile. error: Could not find a Jamfile in directory '../../../..'. error: Attempted to find it with pattern '[Bb]uild.jam [Jj]amfile.v2 [Jj]amfile [Jj]amfile.jam'.
Here's my configuration: * Intel Mac OS X, 10.5.3 * boost 1.35
Is there a file called "Jamroot" in root directory -- specifically, in /sw/lib/boost-1_35 directory. If not, this is not a good Boost source tree.
There is not, though there is a Jamroot in the tutorial directory. (There is a boost-build.jam in the root directory. I thought might be equivalent, but soft-linking Jamfile or Jamroot -> boost-build.jam does not help.) Thanks. The rest of boost (well, a few bits I've used here and there) seem to work, though, i.e. boost has built and installed into /sw. I've had no trouble with the unit test, program options, or threads frameworks from boost. It may be that the fink package maintainer did not intend to install a Boost source tree. Does it follow that the examples will be broken but the installation might be otherwise correct? Or do I need to fix this before I can use Boost Python? (My first attempt to use Boost Python doesn't work but that isn't surprising.) D

David Philp wrote:
On 01/07/2008, at 1:34 PM, Vladimir Prus wrote:
Is there a file called "Jamroot" in root directory -- specifically, in /sw/lib/boost-1_35 directory. If not, this is not a good Boost source tree.
There is not, though there is a Jamroot in the tutorial directory. (There is a boost-build.jam in the root directory. I thought might be equivalent, but soft-linking Jamfile or Jamroot -> boost-build.jam does not help.) Thanks.
The rest of boost (well, a few bits I've used here and there) seem to work, though, i.e. boost has built and installed into /sw. I've had no trouble with the unit test, program options, or threads frameworks from boost.
It may be that the fink package maintainer did not intend to install a Boost source tree. Does it follow that the examples will be broken but the installation might be otherwise correct?
It might be.
Or do I need to fix this before I can use Boost Python?
(My first attempt to use Boost Python doesn't work but that isn't surprising.)
If you want to use it according to the directions in the tutorial or supplied with Boost, you'll need the Boost Jamfiles. If you have a /sw/lib/boost-1_35/libs/python/build/Jamfile, then you could try downloading http://svn.boost.org/trac/boost/export/46943/tags/release/Boost_1_35_0/Jamro... to /sw/lib/boost-1_35. If you don't have any Jamfiles or the previous suggestion doesn't work, I suggest you get a clean Boost source tree and start with that. See http://www.boost.org/more/getting_started.html -- Dave Abrahams BoostPro Computing http://www.boostpro.com

Thanks for your suggestions. (For the record, it didn't work---other stuff absent.) I'll continue with the package maintainer, and/or build boost myself. David On 01/07/2008, at 8:22 PM, David Abrahams wrote:
David Philp wrote:
On 01/07/2008, at 1:34 PM, Vladimir Prus wrote:
Is there a file called "Jamroot" in root directory -- specifically, in /sw/lib/boost-1_35 directory. If not, this is not a good Boost source tree.
There is not, though there is a Jamroot in the tutorial directory. (There is a boost-build.jam in the root directory. I thought might be equivalent, but soft-linking Jamfile or Jamroot -> boost-build.jam does not help.) Thanks.
The rest of boost (well, a few bits I've used here and there) seem to work, though, i.e. boost has built and installed into /sw. I've had no trouble with the unit test, program options, or threads frameworks from boost.
It may be that the fink package maintainer did not intend to install a Boost source tree. Does it follow that the examples will be broken but the installation might be otherwise correct?
It might be.
Or do I need to fix this before I can use Boost Python?
(My first attempt to use Boost Python doesn't work but that isn't surprising.)
If you want to use it according to the directions in the tutorial or supplied with Boost, you'll need the Boost Jamfiles. If you have a /sw/lib/boost-1_35/libs/python/build/Jamfile, then you could try downloading http://svn.boost.org/trac/boost/export/46943/tags/release/Boost_1_35_0/Jamro... to /sw/lib/boost-1_35. If you don't have any Jamfiles or the previous suggestion doesn't work, I suggest you get a clean Boost source tree and start with that. See http://www.boost.org/more/getting_started.html
-- Dave Abrahams BoostPro Computing http://www.boostpro.com _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
David Abrahams
-
David Philp
-
Vladimir Prus