Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Can't get openssh to compile' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Can't get openssh to compile
Authored by: Brad Puett on Mar 11, '02 01:45:50PM

I believe I have found the answer to oeyvind (as well as my) problem.

Here's the solution:

Do everything just like it says in the Stepwise article


instead of using the following line (which is the last
line in the instructions to compile the OpenSSL library):

sudo cp -r include/openssl /usr/local/include/openssl

Use this line instead:

sudo cp -RL include/openssl /usr/local/include/openssl

Here's the secret from the man page for cp:

"Historic versions of the cp utility had a -r option. This
implementation supports that option; however, its use
is strongly discouraged, as it does not correctly copy
special files, symbolic links or fifo's."

The problem was that, by using the -r option of the cp
command, you (and I) were copying the soft links as is
(example: asn1.h -> ../../crypto/asn1/asn1.h),
which meant it was trying to find the crypto directory in
the /usr/local directory, which was never going to happen.

By using the -RL option, it will copy over the actual files,
instead of making realtive pointers to them
(example: asn1.h)

Try it and let me know how it turns out!

I'll send this solution to Stepwise late this afternoon ...

[ Reply to This | # ]