Crypt-SSLeay - Re: Cannot install Crypt::SSLeay on Solaris 5.10

Posted on Wed Sep 12 00:21:02 2007 by grinder in response to 6051 (See the whole thread of 3)
Re: Cannot install Crypt::SSLeay on Solaris 5.10

Christ. The formatting rules in the forum really bite. (At least the e-mail I received of your post had sane formatting).

Hello! > Trying to install Crypt::SSLeay on Solaris 5.10 platform. > I get following error... Yes. I have discovered that OpenSSL is installed differently on Solaris (include ddirectory is installed as a sibling directory instead of a child directory) as opposed to FreeBSD or Linux, for example. > I have checked that include dir: -I/usr/local/ssl/include/openssl > has all the files like ssl.h, etc. Any suggestions will be greatly > apprecieated Edit the Makefile directly (scary, I know). Find the line "INC = -I/usr/local/ssl/include/openssl" and replace it by "INC = -I/usr/local/ssl/include" In this way you will anchor the search from one directory upwards, and then the crypt_ssleay_version.h will follow the -I directive and locate the relative files at openssl/*.h. There's some differnces in behaviour between #include "file.h" and #include <file.h> compared to #include "dir/file.h" versus #include <dir/file.h> and it's showing here. # perl Makefile.PL ======================================================= Only one OpenSSL installation found at /usr/local/ssl Consider running 'perl Makefile.PL --default' the next time Crypt::SSLeay is upgraded to select this directory automatically thereby avoiding the following prompt. ======================================================= Which SSL install path do you want to use? [/usr/local/ssl] /usr/local/ssl BUILD INFORMATION ================================================ ssl library: OpenSSL 0.9.8 in /usr/local/ssl ssl header: openssl/ssl.h libraries: -L/usr/local/ssl/lib -lssl -lcrypto -lgcc include dir: -I/usr/local/ssl/include/openssl See how /openssl/ appears both in ssl header and include dir? The C compile winds up looking for /usr/local/ssl/include/openssl/openssl/ssh.h and then all bets are off. I will try to wrap the changes up soon and get a new version released. Thanks for the report and let us know how it goes.
Direct Responses: 6059 | Write a response