cannot open shared object file

Steven Lo slo at
Fri Mar 16 07:47:36 CET 2012


We are getting the following error during a 'make' process on a CentOS 
release 5.4 system:

Running mkfontdir...
Creating SELinux policy...
/usr/bin/python: error while loading shared libraries: cannot open shared object file: No such file or 

However, we are able to execute 'python' without any problem

# which python

# python
Python 2.4.3 (#1, Sep  3 2009, 15:37:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

# ldd /usr/bin/python => /usr/lib64/ 
(0x0000003fb7600000) => /lib64/ (0x0000003b59600000) => /lib64/ (0x0000003b59200000) => /lib64/ (0x0000003b64000000) => /lib64/ (0x0000003b58e00000) => /lib64/ (0x0000003b58a00000)
     /lib64/ (0x0000003b58600000)

# ls -lad /usr/lib64/*python*
lrwxrwxrwx  1 root root      19 Feb 27 21:15 /usr/lib64/ 
-r-xr-xr-x  1 root root 1236344 Sep  3  2009 /usr/lib64/
drwxr-xr-x 18 root root   20480 Feb 27 21:15 /usr/lib64/python2.4

In this 'make' process, we are suppose to execute the applicate-specific 
(/opt/rocks/bin/python) which has static link (not dynamic link)

# ldd /opt/rocks/bin/python => /lib64/ (0x0000003b59600000) => /lib64/ (0x0000003b59200000) => /lib64/ (0x0000003b64000000) => /usr/lib64/ (0x0000003b6b400000) => /lib64/ (0x0000003b58e00000) => /lib64/ (0x0000003b67c00000) => /lib64/ (0x0000003b58a00000)
     /lib64/ (0x0000003b58600000)

Basically, we try to understand:
   * why /opt/rocks/bin/python not being used ?
   * why /usr/bin/python can not find the dynamic library

Please let us know if you have any suggestion on how to troubleshoot 
this problem.

If this is not the list to ask this type of question, please point us to 
the appropriate



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list