数学之路-分布式计算-hadoop、python与R(1)

以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)

20 1


# 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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值