2011-12-27 09:51:24 +0000 2011-12-27 09:51:24 +0000
80
80
Advertisement

./configure時にOpenSSLが欠落しています。修正方法を教えてください

Advertisement

node.jsをインストールしようとしていて、./configureの時にOpenSSLのサポートが抜けていたのですが、どうすれば修正できますか?必須の手順でしょうか?また、--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.
Advertisement
Advertisement

回答 (6)

148
148
148
2011-12-27 10:41:21 +0000

はい、必須のステップです。OpenSSL を使用しているプログラムから OpenSSL を削除することはできませんが、車からランダムなエンジン部品を削除することはできません。

  • Red Hat, Fedora, CentOS - openssl-devel
  • Debian, Ubuntu - libssl-dev
  • Arch - openssl

技術的には、OpenSSL を NSS などで置き換えることができますが、ここではそのことは問題ではありません。

8
8
8
2014-10-07 18:18:54 +0000

debian:

apt-get install libssl-dev

apt-get install linux-headers-$(uname -r)
4
Advertisement
4
4
2012-06-15 06:23:32 +0000
Advertisement

いや、そうではありません。

./configure --without-sslでnodejsをコンパイルしても大丈夫です。

2
2
2
2015-11-10 10:10:49 +0000

OS に

openssl-devel yum install openssl-devel.x86_64

./configure --with-tls

make install

&007 をインストールする必要があります。

2
Advertisement
2
2
2013-07-01 22:48:37 +0000
Advertisement

これはいくつかのインストールで出てくるかもしれない問題でGoogleに表示されています - おそらく links-g。Archlinux で links-utf8 と links-g-directfb で問題が発生しました。

可能性のある表示:

checking OPENSSL_CFLAGS... 
checking OPENSSL_LIBS... -lssl -lcrypto 
checking for OpenSSL... no
configure: error: OpenSSL not found

試してみてください:

sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" configure

./configure のステップの前にこのコマンドを使ってください。

0
0
0
2019-02-11 14:31:28 +0000

もし libssl-dev のみで成功しなかった場合、Debian_ distro 上で 両方の SSL ライブラリ バージョンを同時に

apt-get install libssl-dev libssl1.0
``` に含めることができます。
Advertisement

関連する質問

6
10
5
37
4
Advertisement