Skip to content Skip to sidebar Skip to footer

Boost.python Tutorial In Ubuntu 10.04

I downloaded the latest version of Boost and I'm trying to get the Boost.python tutorial up and running on Ubuntu 10.04: http://www.boost.org/doc/libs/1_43_0/libs/python/doc/tutori

Solution 1:

How did you install boost ? Assuming you have use the following: http://www.boost.org/doc/libs/1_43_0/more/getting_started/unix-variants.html#easy-build-and-install

liboost_python shard library will be install in /usr/local/lib

To run the hello.py example, try the following:

LD_LIBRARY_PATH=/usr/local/lib python ./hello.py

Solution 2:

I have no experience with the the Boost Python libraries but as the error states, it is unable to find the libboost_python shared object.

You have several options here (there may be more):

  1. Place the .so in /usr/local/lib.
  2. Place the .so in /usr/lib. This is probably a bad idea.
  3. Run export LD_LIBRARY_PATH=/path_to_so/ before execution.

Solution 3:

Did you install boost? Just compiling it isn't sufficient to install the libraries where they need to be to run programs.

Post a Comment for "Boost.python Tutorial In Ubuntu 10.04"