在debian上安装node.js. ./configure在安装时找不到openSSL

时间:2011-10-21 12:35:25

标签: node.js openssl debian

因为没有找到apt-get的最新节点包,所以我用git下载了源代码并尝试编译它。但是,它找不到openssl库,没有它们的安装会给下游带来问题。 (与其他节点用户区模块需要它)。根据apt-get openssl已经是最新的,它似乎也在路径中,因为键入'openssl'执行它。 有人知道我在这里缺少什么吗?

4 个答案:

答案 0 :(得分:4)

你应该安装libssl-dev

apt-get install libssl-dev

答案 1 :(得分:4)

我还需要在我的机器上安装libcurl4-openssl-dev:

apt-get install libcurl4-openssl-dev

答案 2 :(得分:0)

如果你要从git构建节点,你可能还需要在configure指向openssl以进行debian挤压:--openssl-libpath=/usr/lib/ssl - 实际上我写了一个post about this recently

答案 3 :(得分:0)

这最近对我有用 - 不需要其他步骤:

curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install -y nodejs