i installed python2.6 before in
/ust/local/bin
but now i removed it and installed a new python2.6.4 in
/opt/python2.6
i installed from the article
but on mid way only where they say to check python it says
[root@domain ~]# python
/opt/python2.6/bin/python: error while loading shared libraries: libpython2.6.so.1.0: cannot open shared object file: No such file or directory
but when i open
/opt/python2.6/lib
i can found this file. please tell me whats wrong with this?
When you compile python2.6 with
--prefix=/opt/python2.6
, the binaries will be installed at/opt/python2.6/bin
, the libraries at/opt/python2.6/lib
, ...This error means that python is not looking at the path the file is in. So you need to add the library path to
/etc/ld.so.conf
file and activate it withldconfig
:in Step 2 try add LDFLAGS with right path... for example