[C++-sig] Newbie trouble with Boost.Python tutorial on Ubuntu

Sean Hammond s0094060 at sms.ed.ac.uk
Mon Jan 8 16:31:08 CET 2007


The problem seems to arise from the line of the tutorial that says:

"Be sure to cd to libs/python/example/tutorial where the tutorial "hello.cpp" 
and the "Jamfile" is situated."

No such directory exists on Ubuntu. Maybe I should download and build Boost 
instead of using the package?


On Fri, Jan 05, 2007 at 03:48:30PM +0000, Sean Hammond wrote:
> Trying to build the Hello World example with boost:
> 
> http://www.boost.org/libs/python/doc/tutorial/doc/html/python/hello.html
> 
> on Ubuntu 6.10. I have installed the packages:
> 
> libboost-doc (1.33.1-7ubuntu1)
> boost-build (2.0-m10-1ubuntu1)
> bjam (3.1.11-1)
> libboost-dev (1.33.1-7ubuntu1)
> libboost-python-dev (1.33.1-7ubuntu1)
> libboost-python1.33.1 (1.33.1-7ubuntu1)
> 
> Following the tutorial, I created a Boost folder on my desktop. I copied
> hello.cpp, Jamfile, and Jamrules from here:
> 
> http://www.boost.org/libs/python/example/tutorial/
> 
> into the folder. In Jamrules I editied the path-global line:
> 
> path-global BOOST_ROOT : /usr/include ;
> 
> When I try to build I get this:
> 
> s0094060 at marley-20:~/Desktop/Boost$ bjam -sTOOLS=gcc
> Failed to find the project root for directory '.'.
> Did not find a project-root.jam file there or in any of its parent directories.
> Please consult the documentation at 'http://www.boost.org'.
> 
> Note that I changed the -sTOOLS option to reflect my linux compiler. This seems
> to be the same problem this user was having:
> 
> http://mail.python.org/pipermail/c++-sig/2006-August/011020.html 
> 
> he was also using Ubuntu. That problem didn't seem to get solved. One responder
> advised the user to see the libs/python/example/ folder of his boost
> distribution. I cannot find this folder on my system, it is not in
> /usr/include/boost nor /usr/share/boost-build. I have searched the installed
> files lists of the packages boost-build, bjam, libboost-dev,
> libboost-ptyhon-dev and libboost-python1.33.1 for libs/python/example and just
> in case for lib/python/example, they are not there.
> 
> Does this look like a problem with the package?
> -- 
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig

-- 



More information about the Cplusplus-sig mailing list