Skip to content

Instantly share code, notes, and snippets.

@teddy-hoo
Forked from baoshan/install-pypy.sh
Last active November 22, 2016 02:04
Show Gist options
  • Select an option

  • Save teddy-hoo/f3ffdac98a48675a5d13f413dcc4a8df to your computer and use it in GitHub Desktop.

Select an option

Save teddy-hoo/f3ffdac98a48675a5d13f413dcc4a8df to your computer and use it in GitHub Desktop.
Install PyPy(py2.7, v5.6.0) on CentOS
# yum list \*openssl\*
yum install -y openssl098e
yum install -y zlib
ln -s /usr/lib64/libssl.so.0.9.8e /usr/lib64/libssl.so.0.9.8
ln -s /usr/lib64/libcrypto.so.0.9.8e /usr/lib64/libcrypto.so.0.9.8
ln -s /lib64/libbz2.so.1 /lib64/libbz2.so.1.0
wget https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.6.0-linux64.tar.bz2
tar -xf pypy-1.8-linux64.tar.bz2
cp -r pypy-1.8 /opt
ln -s /opt/pypy-1.8/bin/pypy /usr/local/bin
rm -rf pypy-1.8
rm pypy-1.8-linux64.tar.bz2
pypy --version
curl -O http://python-distribute.org/distribute_setup.py
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
pypy distribute_setup.py
pypy get-pip.py
rm get-pip.py
rm distribute_setup.py
ln -s /opt/pypy-1.8/bin/pip /usr/local/bin
pip install pygments
###########################
# portable pypy
https://github.com/squeaky-pl/portable-pypy
virtualenv-pypy virtualenv-name
source activate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment