node.js
来源:互联网 发布:binding java 编辑:程序博客网 时间:2024/04/28 12:39
说明:
使用CentOS系统,进行nodejs安装,nodejs版本-v0.8.7。
1,先下载nodejs:
# wget http://nodejs.org/dist/v0.8.7/node-v0.8.7.tar.gz
2,解压文件
# tar xvf node-v0.8.7.tar.gz
3,进入解压目录
# cd node-v0.8.7
4,检查所需要配置
# ./configure
出现错误提示:
Exception: Call to '(echo | $(echo ${CXX_host:-$(which g++)}) -m32 -E -
> /dev/null 2>&1) && echo "-m32" || true' returned exit status 0. while
loading dependencies of /opt/node-v0.8.7/node.gyp while trying to load
/opt/node-v0.8.7/node.gyp
5,如出现以上错误,安装gcc-c++
# yum install gcc-c++
6,进行安装(时间比较长):
# make install
7,检查是否成功安装,输入命令:
# node -v
如果安装成功会输出相应版本号,如:
v0.8.7
8,现在可以创建一个test.js文件进行测试,文件内容为:console.log('Hello World.');
输入命令:
# node test.js
输出:
- js node
- Node.JS:
- node js
- node.js
- node.js
- node.js
- Node.js
- node.js
- Node.js
- Node.Js
- node js
- Node.js
- node.js
- node.js
- node.js
- node.js
- node.js
- node.js
- AlphaControls安装卸载步骤
- 0-1背包 书架
- 数据类型转换:强制类型转换的运用
- GoldenGate Active-Active Replication with Conflict Detection and Resolution (CDR) part 2
- Oracle诊断事件列表
- node.js
- Oracle的表空间、数据文件
- 星号图g
- GoldenGate Active-Active Replication with Conflict Detection and Resolution (CDR) part 3
- 整型中long型最值的计算
- 表格复制帮助ORCAD快速建库
- 摄像头线数的理解
- 让 WordPress 缩略图机制支持URL外链图片
- Opticks插件创建--获取第三方库与编译