Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 have (or am) moved from OpenSuse 12.1 to Ubuntu 12.04.1 LTS -- I have had no problems compiling apache from source on our OpenSUSE boxes.. However, I have run into a problem with Ubuntu 12.04.1 LTS.

I have installed openssl, libssl-dev and when I attempt to compile apache, I receive the following:

checking for SSL/TLS toolkit base... /usr

checking for SSL/TLS toolkit version... OpenSSL 1.0.1 14 Mar 2012

checking for SSL/TLS toolkit includes... /usr/include

checking for SSL/TLS toolkit libraries... configure: error: OpenSSL libraries not found

I have attempted to use --with-ssl=/usr/include/openssl but that did not work either.

Do I need to compile SSL from source as well (I did not need to do this on our SUSE boxes).

Thank You.

Note : I am required to compile Apache for various business reasons, using apt-get apache2 is not an option for me.

Edit : I have in /lib/x86_64-linux-gnu and configure option --libdir=/lib/x86_64-linux-gnu

share|improve this question
Does business reasons == PCI compliance? – Ladadadada Oct 30 '12 at 18:22
various source changes from our dev team – Michael Oct 30 '12 at 18:24
up vote 1 down vote accepted

Compile openssl, then compile and link Apache against --with-ssl=/usr/local/ssl (the default path). Don't forget "--enable-so"

I had many issue with the maintainer libs from debian distros and always compile openssl from scratch.

If you are using PHP and use --with-openssl=/usr/local/ssl, the same libraries have to be used.

share|improve this answer
Worked like a charm! Thank you – Michael Oct 30 '12 at 19:02

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.