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

Brakuje OpenSSL podczas ./configure. Jak naprawić?

Advertisement

Próbowałem zainstalować node.js i znalazłem brak wsparcia dla OpenSSL podczas ./configure.

Jak mogę to naprawić? Czy jest to krok obowiązkowy? Czy opcja --without-ssl naprawiłaby problem?

# ./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

Odpowiedzi (6)

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

Tak, to obowiązkowy krok. Nie można usunąć OpenSSL z programu, który go używa, tak samo jak nie można usunąć losowych części silnika z samochodu.

Biblioteka OpenSSL jest zazwyczaj już zainstalowana, ale trzeba zainstalować pliki nagłówkowe. W zależności od dystrybucji Linuksa, będziesz potrzebował tych pakietów:

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

Technicznie można by zamienić OpenSSL na, powiedzmy, NSS, ale nie o to tu chodzi.

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

Nie, nie jest.

Nadal możesz kompilować nodejs z ./configure --without-ssl

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

Musisz zainstalować openssl-devel w swoim systemie operacyjnym za pomocą:

yum install openssl-devel.x86_64

./configure --with-tls

make install

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

Pojawia się to w Google w związku z problemem, który może spowodować pojawienie się niektórych instalacji - być może linków-g. Miałem problem na Archlinuksie z linkami-utf8 i linkami-g-directfb.

Prawdopodobna prezentacja:

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

Spróbuj tego:

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

Używając tej komendy zanim twój krok ./configure powinien to naprawić.

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

Jeśli nie uda ci się tylko z libssl-dev, ponad Debian distro, możesz dołączyć objęte biblioteką SSL wersje w tym samym czasie

apt-get install libssl-dev libssl1.0
Advertisement

Pytania pokrewne

6
10
5
37
5
Advertisement