在 Debian 上安装 Node.js。 ./configure 安装时找不到 openSSL
因为用apt-get找不到最新的node包,所以我用git下载了源代码并尝试编译它。但是,它找不到 openssl 库,如果没有它们安装将会给下游带来问题。 (其他节点用户区模块需要它)。根据 apt-get openssl 已经是最新的,并且它似乎也在路径中,因为输入“openssl”会执行它。 有人知道我在这里缺少什么吗?
Because there isn't an up-to-date package of node to be found with apt-get, I downloaded the source with git and tried compiling it. However, it can't find the openssl libraries and installing without them will give problems downstream. (with other node userland modules requiring it). According to apt-get openssl is already up-to-date and it seems to be in the path as well, since typing 'openssl' executes it.
Anyone know what I am missing here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
你应该安装 libssl-dev
you should install libssl-dev
我还需要在我的机器上安装 libcurl4-openssl-dev :
I also needed to install libcurl4-openssl-dev on my machine :
如果您从 git 构建节点,您可能还需要在
openssl
中指向configure
以进行 debian squeeze:--openssl-libpath=/usr/lib/ssl< /code> - 我实际上最近写了一篇关于此的文章帖子。
You may also need to point
configure
atopenssl
for debian squeeze if you are building node from git:--openssl-libpath=/usr/lib/ssl
- I actually wrote a post about this recently.这最近对我有用 - 不需要其他步骤:
This worked for me recently - no other steps required: