$ wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
$ tar xvzf Python-2.7.3.tgz
$ cd Python-2.7.3
$ ./configure --enable-shared --prefix=/usr/local/python2.7.3
$ make
$ make install
$ /usr/local/python2.7.3/bin/python -V
Python 2.7.3
$ /usr/local/python2.7.3/bin/python -V
/usr/local/python2.7.3/bin/python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
$ ldd /usr/local/python2.7.3/bin/python
libpython2.7.so.1.0 => not found
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003eaa000000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003ea9c00000)
libutil.so.1 => /lib64/libutil.so.1 (0x0000003eb6a00000)
libm.so.6 => /lib64/libm.so.6 (0x0000003ea9800000)
libc.so.6 => /lib64/libc.so.6 (0x0000003ea9400000)
/lib64/ld-linux-x86-64.so.2 (0x0000003ea9000000)
libpython2.7.so.1.0 => not found
Dans l'état ci-dessus, créez un lien symbolique vers la bibliothèque sous / lib64.
ln -s /usr/local/python2.7.3/lib/libpython2.7.so.1.0 /lib64/
Recommended Posts