我试图安装 node.js 并发现在./configure.
我该如何解决?这是强制性步骤吗?该--without-ssl选项会解决问题吗?
# ./configure
Checking for gcc : ok
Checking for library dl : not found
Checking for openssl : not found
Checking for function SSL_library_init : not found
Checking for header openssl/crypto.h : not found
/home/ec2-user/node-v0.6.6/wscript:374: error: Could not autodetect OpenSSL
support.
Make sure OpenSSL development packages are installed. Use configure --without-ssl
to disable this message.
Run Code Online (Sandbox Code Playgroud)
use*_*686 182
是的,这是一个强制性步骤。您不能从使用它的程序中删除 OpenSSL,就像您不能从汽车中删除随机引擎部件一样。
OpenSSL 库通常已经安装,但您必须安装头文件。根据您的 Linux 发行版,您将需要以下软件包:
openssl-devellibssl-devopenssl从技术上讲,可以用NSS替代OpenSSL,但这不是重点。
小智 10
Debian:
apt-get install libssl-dev
apt-get install linux-headers-$(uname -r)
Run Code Online (Sandbox Code Playgroud)