[python-sybase] Python Sybase-0.36 module with SUSE Linux 9.0

Skip Montanaro skip at pobox.com
Wed, 9 Jun 2004 08:00:10 -0500


    Markus> When I test the build file with ldd, I get this:

    Markus> ----------------------------------------
    Markus> linux:~/sybase-0.36 # ldd build/lib.linux-i686-2.3/sybasect.so
    Markus>         libct.so => not found
    Markus>         libcs.so => not found
    Markus>         libsybtcl.so => not found
    Markus>         libcomn.so => not found
    Markus>         libintl.so => not found
    Markus>         libpthread.so.0 => /lib/i686/libpthread.so.0 (0x4003e000)
    Markus>         libc.so.6 => /lib/i686/libc.so.6 (0x4008f000)
    Markus>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

    ...

    Markus> Does anyone have an idea how to solve this?
    Markus> Any help greatly appreciated.

Try running 

    python setup.py build_ext --help

There is a --rpath flag you can give when building extensions.  I think
something like

    python setup.py clean -a
    python setup.py build_ext --rpath=$SYBASE_OCS/lib
    python setup.py install

would probably do the trick.

-- 
Skip Montanaro
Got gigs? http://www.musi-cal.com/submit.html
Got spam? http://www.spambayes.org/
skip@pobox.com