以64位 centos为例
1、安装java se jdk
下载jdk8安装包后上传到centos服务器
安装
$su
#rpm -ivh jdk-8u20-linux-x64.rpm
vim /etc/profile
在文件后加入:
export JAVA_HOME=/usr/java/jdk1.8.0_20
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
然后
#source /etc/profile
[root@deep soft]# java -version
java version "1.7.0_65"
OpenJDK Runtime Environment (rhel-2.5.1.2.el6_5-i386 u65-b17)
OpenJDK Server VM (build 24.65-b04, mixed mode)
# update-alternatives --install /usr/bin/java java /usr/java/jdk1.8.0_20/bin/java 1
# update-alternatives --config java
选择“/usr/java/jdk1.8.0_20/bin/java”
[root@deep soft]# java -version
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) Server VM (build 25.20-b23, mixed mode)
[root@deep soft]# ls -l /usr/bin/java
lrwxrwxrwx. 1 root root 22 9月 6 13:45 /usr/bin/java -> /etc/alternatives/java
[root@deep soft]# ls -l /etc/alternatives/java
lrwxrwxrwx. 1 root root 30 9月 6 13:45 /etc/alternatives/java -> /usr/java/jdk1.8.0_20/bin/java
[root@deep soft]#
64位centos7(最小化安装)编译pypy
[root@myhaspl goal]# yum install gcc
[root@myhaspl goal]# yum install wget
[root@myhaspl goal]# wget https://bitbucket.org/pypy/pypy/downloads/pypy-2.3.1-src.tar.bz2
[root@myhaspl goal]# tar jxvf pypy-2.3.1-src.tar.bz2
[root@myhaspl goal]# yum install libffi-devel
[root@myhaspl goal]# yum install expat-devel
[root@myhaspl goal]# yum install ncurses-devel
[root@myhaspl goal]# yum install bzip2-devel
[root@myhaspl goal]# yum install openssl-devel
[root@localhost myhaspl]# cd pypy-2.3.1-src/pypy/goal
[root@myhaspl goal]# python ../../rpython/bin/rpython -Ojit targetpypystandalone
3、安装numpy
git clone https://bitbucket.org/pypy/numpy.git cd numpy pypy setup.py install