LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
Problem compiling openssh - OpenSSL missing


Hello,

first of all thanks for helping in http://www.linuxquestions.org/questi...le-4175429633/

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

Code:
./configure --prefix=/usr/local/openssh-6.1p1 --with-ssl=/usr/local/openssl/lib --with-md5-passwords --with-tcp-wrappers --with-pam
Error:
Code:
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 ***
Code:
whereis openssl /usr/bin/openssl /usr/local/openssl /usr/share/man/man1/openssl.1ssl.gz
Code:
cd /usr/local/openssl
ls
bin/ certs/ include/ lib/ man/ misc/ private/
Code:
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
peng
 
Old 10-05-2012, 12:58 PM   #2
pingu
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
Lone_Wolf
Member
 
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
peng12
LQ Newbie
 
Registered: Sep 2012
Posts: 12

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

Greetings
 
  


Reply


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


All times are GMT -5. The time now is 12:35 AM.

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