1845939 Members
5122 Online
110250 Solutions
New Discussion

SSH compiling error

 
SOLVED
Go to solution
Yu Ting LIU
Advisor

SSH compiling error

Hi,

I am compiling SSH-3.1P1 (downloading from ftp.openssh.org) on a HP-UX 10.20 workstation. Before that I have compiled/installed zlib-1.1.3 and openssl-0.9.6a on this workstation. The commands I compiled SSH is:

# ./configure --with-zlib=/usr/local/lib
# make
...
cpp: "compress.c", line 19: error 4036: Can't open include file 'zlib.h'.
*** Error exit code 1

Anybody knows what might be the problem?

Thanks in advance!
Yu Ting
4 REPLIES 4
Sridhar Bhaskarla
Honored Contributor

Re: SSH compiling error

Hi Yu,

You would need to specify full path to your zlib's directory. For ex.,

./configure --prefix=/usr/local/openssh --with-zlib=/usr/local/zlib --with-ssl-dir=/usr/local/openssl

and then try.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Yu Ting LIU
Advisor

Re: SSH compiling error

But my zlib files are not under /usr/local. It scattered under /usr/local. For example libz.a is under /usr/local/lib and zlib.h is under /usr/local/include...

Regards!
Yu Ting
Sridhar Bhaskarla
Honored Contributor
Solution

Re: SSH compiling error

Hmmm.. Not a very good idea. Recompiling zlib doesn't take a long time. Specify a target directory for zlib and recompile. For ex.,

./configure --prefix=/usr/local/zlib

for zlib and recompile it. That would be my preference.

Or

try specifying /usr/local instead of /usr/local/lib in your configure for ssh and see if it improves anything.

./configure --with-zlib=/usr/local

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Yu Ting LIU
Advisor

Re: SSH compiling error

Thanks a lot! OpenSSH Compiling is successful now.

Regards!
Yu Ting