linux 下 安装 nodejs

今天重新安装了下nodejs

步骤如下:


安装python:
/usr/local/src/Python-2.7.3/
1. ./configure --prefix=/usr/local/lib/Python
2. make
3.make install


安装openssl
cd /usr/local/src/openssl-0.9.8c
1. ./config --prefix=/usr/local/lib/openssl
2. make
3. make install


安装zlib
cd /usr/local/src/zlib-1.2.7
1. ./configure --prefix=/usr/local/lib/zlib
2. make
3. make install






按照node js (一定要加上zlib的路径)
1. ./configure --prefix=/usr/local/lib/node   --openssl-libpath=/usr/local/lib/openssl/lib  --openssl-includes=/usr/local/lib/openssl/include
2.make
出现:
'build' finished successfully (3m12.201s)
-rwxr-xr-x 1 root root 8.2M Oct 31 20:23 out/Release/node
3.make install
Waf: Leaving directory `/usr/local/src/node-v0.6.18/out'
'install' finished successfully (1.266s)


安装完成。




错误列表:
错误1:
/usr/local/src/node-v0.6.18/wscript:384: error: Could not autodetect OpenSSL support. Make sure OpenSSL development packages are installed. Use configure --without-ssl to disable this message.

解决方案:
动态的 zlib 库安装错误
重新安装: 
 ./config -fPIC --prefix=/usr/local/ssl/ enable-shared


其他的错误请看  第一篇安装nodejs 日志

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值