Centos 6 Upgrade python 2.6 to python 2.7



Install Paket yang di butuhkan
yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel gcc
yum groupinstall -y 'development tools'
Download Source Python
cd /usr/src;wget https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tgz
Extrack and Compile
tar xzf Python-2.7.12.tgz;cd Python-2.7.12;./configure;make -j4;make install;make altinstall
 Optional with Threads and shared
./configure --with-threads --enable-shared;make -j4;make install;make altinstall
error libpython2.7.so.1.0 not found
ln -s /usr/local/lib/libpython2.7.so.1.0 /usr/lib/libpython2.7.so.1.0
ln -s /usr/src/Python-2.7.12/libpython2.7.so.1.0  /usr/lib/libpython2.7.so.1.0

Good Luck

Comments

Popular Posts