Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was trying to install node.js and found OpenSSL support missing during ./configure.

How can I fix it? Is it a mandatory step? Would the --without-ssl option fix the 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 

Make sure OpenSSL development packages are installed. Use configure --without-ssl 
to disable this message.
share|improve this question
up vote 50 down vote accepted

Yes, it's a mandatory step. You cannot remove OpenSSL from a program uses it, the same way you couldn't remove random engine parts from a car.

The OpenSSL library is usually already installed, but you have to install the header files. Depending on your Linux distribution, you'll need these packages:

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

Technically one could replace OpenSSL with, say, NSS, but that's not the point here.

share|improve this answer
thanks a lot, i installed header by yum install openssl-devel – P K Dec 27 '11 at 11:00

No, it isn't.

You can still compile nodejs with ./configure --without-ssl

share|improve this answer


apt-get install libssl-dev

apt-get install linux-headers-$(uname -r)
share|improve this answer
How and why does this help fix the problem? – Kevin Panko Oct 7 '14 at 18:56
@KevinPanko libssl-dev – spudowiar Oct 20 '14 at 19:28
@KevinPanko this works I can confirm. Albert's answer is correct. – Jeff Atwood Mar 7 '15 at 13:20
@JeffAtwood I did not doubt it, but it helps when an answer explains why a command is needed. – Kevin Panko Mar 8 '15 at 15:38

This is showing up on Google for a problem that may come up with some installations - possibly links-g. I had the problem on Archlinux with links-utf8 and links-g-directfb.

Likely presentation:

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

Try this:

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

Using this command before your ./configure step should fix it.

share|improve this answer
why is that patch fixing the problem? – sysfault Oct 1 '13 at 16:24

You must install openssl-devel in your OS with:

yum install openssl-devel.x86_64

./configure --with-tls

make install

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.