Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

python error

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