Centos 6 Upgrade python 2.6 to python 2.7
Install Paket yang di butuhkan
Download Source Pythonyum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel gcc yum groupinstall -y 'development tools'
Extrack and Compilecd /usr/src;wget https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tgz
Optional with Threads and sharedtar xzf Python-2.7.12.tgz;cd Python-2.7.12;./configure;make -j4;make install;make altinstall
error libpython2.7.so.1.0 not found./configure --with-threads --enable-shared;make -j4;make install;make altinstall
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
Post a Comment