内容:
Installing node.js on Ubuntu 10.10
Problem: Error running ./configure
git clone
cd node
./configure --prefix=$HOME/local/node
Checking for openssl : not found Checking for function SSL_library_init : not found Checking for header openssl/crypto.h : not found /home/andreas/software/node/wscript:340: error: Could not autodetect OpenSSL support. Make sure OpenSSL development packages are installed. Use configure --without-ssl to disable this message.
Solution that worked for me: Installing libssl-devsudo apt-get install libssl-dev
After libssl-dev was installed, I re-ran the node.js ./configure script and it "finished successfully".
安装NodeJS的时候遇到了上述的这个问题,openssl已经安装的,但./configure后提示无法检测,解决方法如上
如果安装libssl-dev之后,只缺一样,openssl not found的话,再安装这个
sudo apt-get install libcurl4-openssl-dev
该贴由hui.chen转至本版2014-10-8 9:33:47