1834914 Members
2383 Online
110071 Solutions
New Discussion

Re: openssh

 
Anders Gullberg
Frequent Advisor

openssh

Hi everybody!
I have a problem to install openssh3.1 on 11.00.
I had install zlib and openssl.
When i run "./configure --prefix=/opt --with-rsh=/usr/bin/remsh --with-ssl-
dir=/opt/openssl/lib --with-zlib=/opt/zlib"
everything goes fine until "checking for working openssl directory"
It says that i dont have it installed.
When i check config.log it says "line 7827 error 4036:cant open include file 'openssl/rand.h'." That file exist under /opt/openssl/include/openssl/
Anyone got an idea????
8 REPLIES 8
John Carr_2
Honored Contributor

Re: openssh

Hi

try checking the file permissions

cheers
John.
Ceesjan van Hattum
Esteemed Contributor

Re: openssh

write a small testprogram:

#include
#include
main()
{
int x;
printf "Number of bytes=%d",RAND_query_egd_bytes();
}

No matter the output, does it compile correctly ?

Steve Darnell
Occasional Advisor

Re: openssh

It may be inelegant, but I have resorted to solving similar problems installing openssl/openssh by just doing a sym link to a standard include directory.
In your case, this might do the trick:
ln -s /opt/openssl/include/openssl /usr/include
Chris Wong
Trusted Contributor

Re: openssh

If you haven't seen Kevin Steves' whitepaper on Openssh on HP-UX, you might want to check it out:

http://www.atomicgears.com/papers/osshhpux.html

- Chris
Anders Gullberg
Frequent Advisor

Re: openssh

Hi Ceesjan,

I tried your test and its end like before
"error 4036: Cant open include file 'openssl/rand.h'"
Maybe corrupt?

Hi John,

There were no problems with the permissions, but thanks anyway.
Shannon Petry
Honored Contributor

Re: openssh

By your other post, it looks like you now have openssh running but did not resolve this question by assigning points or a magic answer!

The "proper" way to fix the problem you had/have is by using the configure script properly. type
> ./configure -h

You will see loads and gobs off good options to give to configure, Including the directory for openssl, zlib, as well as the prefix directory where you want the binaries installed.

When in doubt, use -h! Gnu-configure is wonderful :)

Regards,
Shannon
Microsoft. When do you want a virus today?
Sridhar Bhaskarla
Honored Contributor

Re: openssh

Anders,

I guess it looks at /usr/local/openssl by default. Create a line from /usr/local/openssl to /opt/openssl. Otherwise you can specify the path to your openssl directory from /opt/openssl as a configure option.

./configure --with-ssl-dir=/opt/openssl (not lib)

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Craig Rants
Honored Contributor

Re: openssh

I think that you did not configure the openssl bundle with shared option, thus there is no .sl lib file.

Here are my notes for performing this install

- Install Perl5 ( only required for initial compile )
gzip -d /tmp/perl-5.6.1-sd-11.00.depot.gz
swinstall -s `hostname`:/tmp/perl-5.6.1-sd-11.00.depot \*

- Compile openssl
cd /tmp
gzip -d < openssl-0.9.6.tar.gz | tar xvf -
cd openssl-0.9.6
export PATH=/opt/perl5/bin:$PATH
./config --openssldir=/usr/local/openssl shared
make
make test
make install
cd ..
sh shlib/hpux11-cc.sh (had to create/modify this script with openssl)
sh shlib/hpux10-cc.sh (had to create/modify this script with ssl)

- Compile zlib
cd /tmp
gzip -d < zlib-1.1.4.tar.gz | tar xvf -
cd zlib-1.1.4
./configure -s --prefix=/usr
make test
make install

- Compile openssh
cd /tmp
gzip -d < openssh-3.1p1.tar.gz | tar xvf -
cd openssh-3.1p1
(11 version)
./configure --prefix=/opt/openssh2 --sysconfdir=/opt/openssh2/etc --with-pam
--with-ssl-dir=/usr/local/openssl/lib --with-default-path=/bin:/usr/bin:/opt/openssh2/bin
(10 version)
./configure --prefix=/opt/openssh2 --sysconfdir=/opt/openssh2/etc
--with-ssl-dir=/usr/local/ssl/lib --with-default-path=/bin:/usr/bin:/opt/openssh2/bin
make
make install

Let me know if this helps.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut