Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-05-2012, 11:01 AM   #1
LQ Newbie
Registered: Sep 2012
Posts: 14

Rep: Reputation: Disabled
Problem compiling openssh - OpenSSL missing


first of all thanks for helping in

OpenSSL has been compiled [prefix=/usr/local/openssl].
After installation: ln -s /usr/local/openssl/bin/openssl /usr/bin

Now I'm having a problem with compiling openssh.

My configure command is

./configure --prefix=/usr/local/openssh-6.1p1 --with-ssl=/usr/local/openssl/lib --with-md5-passwords --with-tcp-wrappers --with-pam
checking openssl/opensslv.h usability... no
checking openssl/opensslv.h presence... no
checking for openssl/opensslv.h... no
configure: error: *** OpenSSL headers missing - pleae install first or check config.log ***
whereis openssl /usr/bin/openssl /usr/local/openssl /usr/share/man/man1/openssl.1ssl.gz
cd /usr/local/openssl
bin/ certs/ include/ lib/ man/ misc/ private/
nano config.log

PATH: /usr/local/openssl/bin

checking for openssl/opensslv.h
result: no
error: *** OpenSSL headers missing
Can someone help me please why compiling fails?
I even tried instead of --with-ssl=/usr/local/openssl/lib , --with-ssl=/usr/local/openssl

Thanks in advance
Old 10-05-2012, 12:58 PM   #2
Senior Member
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
I think you need openssl-devel, not completely sure though.
But if I remember correctly, the reason for me to install openssl-devel on a server some 6 months ago (which I know I did) was for compiling php with openssl.
1 members found this post helpful.
Old 10-06-2012, 07:41 AM   #3
Registered: Jul 2007
Location: Netherlands
Distribution: Archlinux x86_64
Posts: 48

Rep: Reputation: 20
In your self-compiled openssl install, the headers should be in /usr/local/openssl/include .
That folder shoudl have some 70+ files, and opensslv.h must be one of them.
If those files are not present, you have to look at your openssl install.

Assuming they are there, ./configure probably looks in the wrong place.
run ./configure --help , normally it lists an --Include option that allows you to set a specific folder to be searched for incude files.
set that option to point to /usr/local/openssl/include .

Edit :
pingu's answer would be applicable if you had used debian openssl packages.

Last edited by Lone_Wolf; 10-06-2012 at 07:43 AM.
1 members found this post helpful.
Old 10-06-2012, 07:59 AM   #4
LQ Newbie
Registered: Sep 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thanks Lone_Wolf,
that was the trick.

I set with-ssl-dir to the right folder an now it works



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
openssl problem when compiling/linking galapogos Programming 5 06-10-2008 12:54 PM
openssl og openssh? suse91pro Linux - Newbie 2 07-02-2007 01:05 AM
Is openssl used by openssh? servnov Linux - General 5 10-30-2005 01:31 PM
FC2 compiling openssl/openssh TSJoshB Fedora 4 07-04-2005 03:25 PM
problem compiling openssh josephswagner Linux - Software 1 03-27-2005 06:42 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:11 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration