Boost logo

Boost-Build :

Subject: Re: [Boost-build] [Build] Unable to load Jamfile
From: Aaron Oman (aaron.oman_at_[hidden])
Date: 2010-03-17 11:52:16


On Mon, Mar 15, 2010 at 9:49 AM, Vladimir Prus <ghost_at_[hidden]> wrote:

> On Saturday 13 March 2010 23:20:02 Aaron Oman wrote:
>
> > Hi there. I've got a fresh install of Ubuntu 9.10 and have installed all
> > the boost development tools with apt-get. My goal is to build a "python
> > embedded in C++" program, but I've run into a snag right from the get go.
> >
> > I just want to preface this by saying that I've search for a solution to
> > this, but my searching skills are sub-par, or there simply isn't a lot of
> > info on the particular topic out there.
> >
> >
> > aoman_at_ubuntu
> :/usr/share/doc/libboost1.38-doc/examples/libs/python/example/quickstart$
> > bjam
> > /usr/share/boost-build/build/project.jam:270: 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'.
> ...
> > Any suggestions? I get this whenever and wherever I invoke bjam from.
>
> I am afraid the message is accurate -- you don't have Jamfile in that
> directory.
> You need to get source distribution of boost for the quickstart example
> to work. It needs Boost source tree, and debian appears to provide the
> quickstart example anyway.
>

Well thank you very much!

I grabbed a source distribution and threw it into /usr/src, then added a
directory under /usr/src/[boost_version]/ called "bin.v2" with proper
permissions for my user and the build worked flawlessly.

After that I created a symbolink link like so: ln -s
/usr/src/[boost_version]/bin.v2/libs/python/build/gcc-4.4.1/debug/libboost_python.so.1.40.0
/usr/local/lib/libboost_python.so.1.40.0

Then added to my .bashrc: export
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

Now I can import my extension into Python with no issues.

>
> (Beside, building from '/usr/share' is pretty bad idea anyway)
>

Yeah, I know, but I was at my wit's end. At that point, I'll try anything
to make it work. :)

> Hope this helps,
>
> --
> Vladimir Prus
> http://vladimir_prus.blogspot.com
> Boost.Build: http://boost.org/boost-build2
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build
>



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk