Operating System - HP-UX
1845429 Members
2551 Online
110244 Solutions
New Discussion

Re: Problems installing openssh

 
Youlette Etienne_2
Regular Advisor

Problems installing openssh

I opted for the Openssh, since I can use ssh instead of telnet, rlogin, etc. Unfortunately, I am encountering the following installation problem. Help! In the meantime, I am reading up on .netrc

I have installed OpenSSL, egd, and zlib. However, when I start to install Openssh with the following command, I get the following error message:

./configure --with-openssl-dir=/usr/local/ssl-withentropy-pool=/dev/random

checking for HPUX trusted system password database... yes
configure: warning: This configuration is untested
checking for deflate in -lz... no
configure: error: *** zlib missing - please install first ***

So I re-ftp'd and reinstalled the zlib.tar.gz file again and received the same error. I have copied the commands and the results of installing zlib below. Can anyone help with this?

Thanks

# ./configure
Checking for gcc...
Building static library libz.a version 1.1.3 with cc.
Checking for unistd.h... Yes.
Checking for errno.h... Yes.
Checking for mmap support... Yes.
# make && make test
cc -O -DHAVE_UNISTD_H -DUSE_MMAP -c example.c
cc -O -DHAVE_UNISTD_H -DUSE_MMAP -c adler32.c
cc -O -DHAVE_UNISTD_H -DUSE_MMAP -c compress.c
cc -O -DHAVE_UNISTD_H -DUSE_MMAP -c crc32.c
cc -O -DHAVE_UNISTD_H -DUSE_MMAP -c gzio.c
cc -O -DHAVE_UNISTD_H -DUSE_MMAP -c uncompr.c
cc -O -DHAVE_UNISTD_H -DUSE_MMAP -c deflate.c
cc -O -DHAVE_UNISTD_H -DUSE_MMAP -c trees.c
cc -O -DHAVE_UNISTD_H -DUSE_MMAP -c zutil.c
cc -O -DHAVE_UNISTD_H -DUSE_MMAP -c inflate.c
cc -O -DHAVE_UNISTD_H -DUSE_MMAP -c infblock.c
cc -O -DHAVE_UNISTD_H -DUSE_MMAP -c inftrees.c
cc -O -DHAVE_UNISTD_H -DUSE_MMAP -c infcodes.c
cc -O -DHAVE_UNISTD_H -DUSE_MMAP -c infutil.c
cc -O -DHAVE_UNISTD_H -DUSE_MMAP -c inffast.c
ar rc libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o
cc -O -DHAVE_UNISTD_H -DUSE_MMAP -o example example.o -L. -lz
cc -O -DHAVE_UNISTD_H -DUSE_MMAP -c minigzip.c
cc -O -DHAVE_UNISTD_H -DUSE_MMAP -o minigzip minigzip.o -L. -lz
hello world
uncompress(): hello, hello!
gzread(): hello, hello!
gzgets() after gzseek: hello!
inflate(): hello, hello!
large_inflate(): OK
after inflateSync(): hello, hello!
inflate with dictionary: hello, hello!
*** zlib test OK ***
# /bin/su
# make install
cp zlib.h zconf.h /usr/local/include
chmod 644 /usr/local/include/zlib.h /usr/local/include/zconf.h
cp libz.a /usr/local/lib
cd /usr/local/lib; chmod 755 libz.a
cd /usr/local/lib; if test -f libz.sl.1.1.3; then
rm -f libz.sl libz.sl.1;
ln -s libz.sl.1.1.3 libz.sl;
ln -s libz.sl.1.1.3 libz.sl.1;
(ldconfig || true) >/dev/null 2>&1;
fi
If at first you don't succeed, change the rules!
2 REPLIES 2
RikTytgat
Honored Contributor

Re: Problems installing openssh

Hi,

I suppose the problem occurs because the libz file is in /usr/local/lib and that directory is not searched in for libraries.

Isn't there an option to 'configure' to specify the path to zlib?


Hope this helps,
Rik
Michael Windbigler
Occasional Advisor

Re: Problems installing openssh

If you did not already figure it out. You need to copy the zlib.h and zconf.h file to /usr/include and libz.a file to /usr/lib.