OpenSSL fehlt in./konfigurieren. Wie zu beheben?

Ich habe versucht, node zu installieren.js und fand OpenSSL-Unterstützung fehlt während ./configure.

Wie kann ich es beheben? Ist es ein obligatorischer Schritt? Würde die Option --without-ssl das Problem beheben?

# ./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.
Author: Bradd Szonye, 2011-12-27

6 answers

Ja, es ist ein obligatorischer Schritt. Sie können OpenSSL nicht aus einem Programm entfernen, das es verwendet, genauso wie Sie zufällige Motorteile nicht aus einem Auto entfernen konnten.

Die OpenSSL-Bibliothek ist normalerweise bereits installiert, aber Sie müssen die Header-Dateien installieren. Abhängig von Ihrer Linux-Distribution benötigen Sie diese Pakete:

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

Technisch könnte man ersetzen OpenSSL mit, sagen wir, NSS, aber das ist hier nicht der Punkt.

 171
Author: user1686,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2011-12-27 10:41:21

Debian:

apt-get install libssl-dev

apt-get install linux-headers-$(uname -r)
 10
Author: Albert E,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2014-10-07 18:56:31

Nein, das ist es nicht.

Sie können nodejs weiterhin mit ./configure --without-ssl

 4
Author: grigoris,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2014-10-07 18:55:37

Dies zeigt sich auf Google für ein Problem, das mit einigen Installationen kommen kann-möglicherweise Links-g. Ich hatte das Problem auf Archlinux mit Links-utf8 und Links-g-directfb.

Wahrscheinliche Darstellung:

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

Versuche das:

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

Verwenden Sie diesen Befehl, bevor Ihr Schritt ./configure ihn beheben sollte.

 2
Author: anon_ssl_angel,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2014-10-07 18:56:22

Sie müssen openssl-devel in Ihrem Betriebssystem installieren mit:

yum install openssl-devel.x86_64

./configure --with-tls

make install

 2
Author: bedjaoui djounaydi,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2015-11-11 12:03:06

Wenn Sie mit libssl-dev nur über Debian Distribution nicht erfolgreich sind, können Sie beide SSL-Bibliothek gleichzeitig

apt-get install libssl-dev libssl1.0
 0
Author: PYK,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/techietown.info/template/agent.layouts/content.php on line 61
2019-02-11 14:31:28