-
-
Save piavlo/8306135 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir download /tmp/installdir; cd download; | |
curl -LO http://python.org/ftp/python/2.7.6/Python-2.7.6.tgz | |
tar xf Python-2.7.6.tgz | |
cd Python-2.7.6 | |
yum -y install openssl-devel.x86_64 readline-devel.x86_64 bzip2-devel.x86_64 sqlite-devel.x86_64 zlib-devel.x86_64 ncurses-devel.x86_64 db4-devel.x86_64 expat-devel.x86_64 rpm-build.x86_64 | |
env CC=gcc44 CXX=g++44./configure --prefix=/usr/local --enable-unicode=ucs4 --enable-shared --enable-ipv6 | |
make -j2 | |
make install DESTDIR=/tmp/installdir | |
echo '/sbin/ldconfig' > /tmp/installdir/run-ldconfig.sh | |
fpm -s dir -t rpm -n python27 -v 2.7.6 -C /tmp/installdir \ | |
--after-install /tmp/installdir/run-ldconfig.sh \ | |
-d 'openssl' \ | |
-d 'bzip2' \ | |
-d 'zlib' \ | |
-d 'expat' \ | |
-d 'db4' \ | |
-d 'sqlite' \ | |
-d 'ncurses' \ | |
-d 'readline' \ | |
--directories=/usr/local/lib/python2.7/ \ | |
--directories=/usr/local/include/python2.7/ \ | |
usr/local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment