python error (165 Views)
Reply
Regular Advisor
Cristian_4
Posts: 95
Registered: ‎06-20-2001
Message 1 of 8 (165 Views)
Accepted Solution

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 ?
Please use plain text.
Honored Contributor
Sundar_7
Posts: 1,938
Registered: ‎11-07-2000
Message 2 of 8 (165 Views)

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 ?
Please use plain text.
Regular Advisor
Cristian_4
Posts: 95
Registered: ‎06-20-2001
Message 3 of 8 (165 Views)

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

Please use plain text.
Honored Contributor
Sundar_7
Posts: 1,938
Registered: ‎11-07-2000
Message 4 of 8 (165 Views)

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 ?
Please use plain text.
Regular Advisor
Cristian_4
Posts: 95
Registered: ‎06-20-2001
Message 5 of 8 (165 Views)

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
#


Please use plain text.
Honored Contributor
Sundar_7
Posts: 1,938
Registered: ‎11-07-2000
Message 6 of 8 (165 Views)

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 ?
Please use plain text.
Regular Advisor
Cristian_4
Posts: 95
Registered: ‎06-20-2001
Message 7 of 8 (165 Views)

Re: python error

!!

you're right

thanks =)
Please use plain text.
Super Advisor
Patrick Ware_1
Posts: 216
Registered: ‎12-14-2004
Message 8 of 8 (165 Views)

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 ?
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation