1745827 Members
3728 Online
108722 Solutions
New Discussion юеВ

Re: python error

 
SOLVED
Go to solution
Cristian_4
Regular Advisor

python error

hi,

i've just installed python from a binary distribution, and im getting this error

/usr/lib/dld.sl: Can't open shared library: /usr/local/lib/libdb.sl

/usr/lib/dld.sl: No such file or directory

does anyone knows where can i get that library ?
7 REPLIES 7
Sundar_7
Honored Contributor

Re: python error

If this library is used by Python, it should have been installed as part of the installation.

Search the system for the library

# find / -name "libdb.sl" -exec ls -lrt {} \;

If the file is found in some other directory, then set the SHLIB_PATH to include that directory as well and try to execute the binary.

Also make sure the binary is set to use the SHLIB_PATH using the chatr command.
Learn What to do ,How to do and more importantly When to do ?
Cristian_4
Regular Advisor

Re: python error

thanks for the answer

i got both files (libdb.sl, dld.sl) , and i get the same result with the SHLIB_PATH env

Sundar_7
Honored Contributor

Re: python error

You got libdb.sl in the /usr/local/lib directory ?

# chatr /path/to/the/binary

Look at the shared library list it is referring to.

Also try enabling the SHLIB_PATH search

# chatr +s enable /path/to/the/binary
# export SHLIB_PATH=$SHLIB_PATH:/path/to_libdb.sl
# /path/to/the/binary
Learn What to do ,How to do and more importantly When to do ?
Cristian_4
Regular Advisor

Re: python error

no, i got it in /usr/sam/lib/libdb.sl

#echo $SHLIB_PATH
/usr/sam/lib/libdb.sl

the search of the shared library path it's already enabled

im getting a different result now

#/usr/local/bin/python -V
/usr/lib/dld.sl: Can't find path for shared library: libdb.sl
/usr/lib/dld.sl: No such file or directory
#


Sundar_7
Honored Contributor
Solution

Re: python error

SHLIB_PATH should only include the directory name

# export SHLIB_PATH=/usr/sam/lib

Now give it a try
Learn What to do ,How to do and more importantly When to do ?
Cristian_4
Regular Advisor

Re: python error

!!

you're right

thanks =)
Patrick Ware_1
Super Advisor

Re: python error

I am having the same problem. Couldn't I just do a soft link to the libdb.sl by doing the following:

ln -s /usr/local/cfengine/db-4.1.25/lib/libdb.sl /usr/local/lib/libdb.sl ?