On Sun, 2005-08-21 at 10:12 -0700, Eric Ayars wrote:
> Jonathan,
>
> I'm having a spot of trouble with vpython, and perhaps you can help.
> I've followed the instructions on vpython.org, with the following
> customizations:
> export CPPFLAGS=-I/usr/local/include/boost-1_33
> export LDFLAGS=-L/usr/local/lib
> /usr/local/lib$ ln -s libboost_python-gcc-mt-1_33.so /usr/local/
> lib/libboost_python.so
> build$ ../visual-3.2.1/configure --prefix=/usr (python is at /
> usr/bin/python)
>
> build$ make
> At this point, build/src/build.log has a reminder to run 'libtool --
> finish /usr/lib/python2.4/site-packages/cvisual.la', so I did.
>
> build$ sudo make install
> Looks fine, but... when I import visual I get:
> >>> from visual import *
> ...
> ... import cvisual
> ImportError: libgtkgl.so.5: cannot open shared object file: No such
> file or directory
>
> libgtkgl.so.5 is located in /usr/local/lib/
>
> I'm guessing I need either a symbolic link somewhere, or another flag
> passed to configure -- any hints? I'd think the LDFLAGS flag would
> have taken care of this...
Add /usr/local/lib to LD_LIBRARY_PATH when you run Python. See the
ld.so manpage. Alternatively, if you want to use those libraries under
all conditions (and not just when running VPython), edit /etc/ld.so.conf
according to that manpage.
-Jonathan
|