<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><br>
Hi,<br>
<br>
We are getting the following error during a 'make' process on a
CentOS release 5.4 system:<br>
<br>
Running mkfontdir...<br>
Creating SELinux policy...<br>
/usr/bin/python: error while loading shared libraries:
libpython2.4.so.1.0: cannot open shared object file: No such file
or directory<br>
<br>
<br>
However, we are able to execute 'python' without any problem<br>
<br>
# which python<br>
/usr/bin/python<br>
<br>
# python<br>
Python 2.4.3 (#1, Sep 3 2009, 15:37:37) <br>
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2<br>
Type "help", "copyright", "credits" or "license" for more
information.<br>
>>> <br>
<br>
<br>
# ldd /usr/bin/python<br>
libpython2.4.so.1.0 => /usr/lib64/libpython2.4.so.1.0
(0x0000003fb7600000)<br>
libpthread.so.0 => /lib64/libpthread.so.0
(0x0000003b59600000)<br>
libdl.so.2 => /lib64/libdl.so.2 (0x0000003b59200000)<br>
libutil.so.1 => /lib64/libutil.so.1 (0x0000003b64000000)<br>
libm.so.6 => /lib64/libm.so.6 (0x0000003b58e00000)<br>
libc.so.6 => /lib64/libc.so.6 (0x0000003b58a00000)<br>
/lib64/ld-linux-x86-64.so.2 (0x0000003b58600000)<br>
<br>
<br>
# ls -lad /usr/lib64/*python*<br>
lrwxrwxrwx 1 root root 19 Feb 27 21:15
/usr/lib64/libpython2.4.so -> libpython2.4.so.1.0<br>
-r-xr-xr-x 1 root root 1236344 Sep 3 2009
/usr/lib64/libpython2.4.so.1.0<br>
drwxr-xr-x 18 root root 20480 Feb 27 21:15 /usr/lib64/python2.4<br>
<br>
<br>
<br>
In this 'make' process, we are suppose to execute the
applicate-specific python<br>
(/opt/rocks/bin/python) which has static link (not dynamic link)<br>
<br>
# ldd /opt/rocks/bin/python<br>
libpthread.so.0 => /lib64/libpthread.so.0
(0x0000003b59600000)<br>
libdl.so.2 => /lib64/libdl.so.2 (0x0000003b59200000)<br>
libutil.so.1 => /lib64/libutil.so.1 (0x0000003b64000000)<br>
libstdc++.so.6 => /usr/lib64/libstdc++.so.6
(0x0000003b6b400000)<br>
libm.so.6 => /lib64/libm.so.6 (0x0000003b58e00000)<br>
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003b67c00000)<br>
libc.so.6 => /lib64/libc.so.6 (0x0000003b58a00000)<br>
/lib64/ld-linux-x86-64.so.2 (0x0000003b58600000)<br>
<br>
<br>
<br>
Basically, we try to understand:<br>
* why /opt/rocks/bin/python not being used ?<br>
* why /usr/bin/python can not find the dynamic library<br>
<br>
<br>
Please let us know if you have any suggestion on how to
troubleshoot this problem.<br>
<br>
If this is not the list to ask this type of question, please point
us to the appropriate<br>
list.<br>
<br>
<br>
Thanks.<br>
<br>
S.<br>
<br>
</font>
</body>
</html>