From: Jonathan B. <jbr...@ea...> - 2005-01-14 18:06:35
|
On Fri, 2005-01-14 at 08:49 -0800, Eric Ayars wrote: > I installed boost with this command: > sudo bjam -sTOOLS=gcc -sPYTHON_ROOT=/usr -sPYTHON_VERSION=2.3 install > The first file that isn't found, wrap_python.hpp, is located at > /usr/local/include/boost-1_32/boost/python/detail/wrap_python.hpp > (and ~/boost_1_32_0/boost/python/detail/wrap_python.hpp). > > Is there something else I need to pass visual-3.1.0/configure or make > so that they know where to find these 'missing' files? Yes. Since Boost.Python is installed under /usr/local, and that is not on the default include or library paths, you must do the following: set the CPPFLAGS environment variable to -I/usr/local/include/boost_1_32_0 set the LDFLAGS environment variable to -L/usr/local/lib Make a symbolic link in /usr/local/lib from /usr/local/lib/libboost-python.so -> libboost-python-gcc-mt-1_32.so Run configure again (otherwise using the same options as before) Run make. Note that in order to use the extension module at runtime, you will have to add /usr/local/lib to LD_LIBRARY_PATH. HTH, -Jonathan Brandmeyer |