BladeSystem Forums have moved here
To make BladeSystem information easier to find, we have moved the BladeSystem forums here, to Servers and Operating Systems.
Showing results for 
Search instead for 
Do you mean 

python error

SOLVED
Go to Solution
Highlighted
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
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 ?
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

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 ?
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
#


Honored Contributor

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 ?
Regular Advisor

Re: python error

!!

you're right

thanks =)
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 ?