linux安装node源码

来源:互联网 发布:幼儿英语网络课程 编辑:程序博客网 时间:2024/05/22 06:05

安装node.js所需要的环境~

GCC 4.2 or newer  #GCC4.2或更高版本

G++ 4.2 or newer  #G++4.2或更高版本

Python 2.6 or 2.7  #Python 2.6或2.7

GNU Make 3.81 or newer   #Make命令3.81或更高版本

libexecinfo(FreeBSD and OpenBSD only)

 

检查安装环境~

rpm -q gcc rpm -q gcc-c++     #检查gcc与c++是否安装

yum -y install gcc gcc-c++kernel-devel     #安装gcc与c++

或者

yum -y update && yum -ygroupinstall "Development Tools"    #安装所需的所有程序

 

安装node.js~

# tar xvf node-v0.10.28.tar.gz 

# cd node-v0.10.28 

# ./configure -prefix=/usr/local/node

# make 

# make install 

 

 

0 0