今天重新安装了下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 日志