centos/linux 安装node.js

默认系统自带的2.4,版本过低,这里直接安装最新版本2.7

wget  http://www.python.org/ftp/python/2.7/Python-2.7.tar.bz2
tar jfvx Python-2.7.tar.bz2
./configure
make all
make install
make clean
make distclean

 

查看版本

/usr/local/bin/python2.7 -V

 

再编译node.js的时候,发现报“importerror no module named bz2 centos”,再装bzip2

yum install -y bzip2*

再编译python2.7再安装node.js,狗血的一塌糊涂。

 

wget http://nodejs.org/dist/v0.8.16/node-v0.8.16.tar.gz

./configure && make && make install

编译需要老半天 ORZ…

 

总算是OK了,真不容易~ ~

 

 

参考:

centos/linux 安装 node.js 狗血事二三件

[nodejs]-如何在八戒上搭建nodejs环境

Centos 5.5升级Python到2.7版本

posted @ 2013-01-04 16:50  meteoric_cry  阅读(5014)  评论(0编辑  收藏  举报