Skip Menu |

This queue is for tickets about the Crypt-SSLeay CPAN distribution.

Report information
The Basics
Id: 61619
Status: resolved
Priority: 0/
Queue: Crypt-SSLeay

People
Owner: nanis [...] runu.moc.invalid
Requestors: adam [...] npjh.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.58
Fixed in: (no value)



Subject: Specify the OpenSSL library directory via an environment variable
We use cpanm for installing CPAN modules, but I can't pass in where to find the OpenSSL libs/headers as we don't use the operating systems version. While I could circumvent this and do the perl Makefile.PL dance directly, I'd prefer to us an environment variable CRYPT_SSLEAY_LIBPATH. diff -r -u Crypt-SSLeay-0.58/Makefile.PL Crypt-SSLeay-0.58-adam/ Makefile.PL --- Crypt-SSLeay-0.58/Makefile.PL 2010-08-24 19:28:46.000000000 +0000 +++ Crypt-SSLeay-0.58-adam/Makefile.PL 2010-09-24 19:37:21.000000000 +0000 @@ -19,6 +19,7 @@ ); $OPT_DEFAULT ||= $ENV{CRYPT_SSLEAY_DEFAULT}; +$OPT_LIBPATH ||= $ENV{CRYPT_SSLEAY_LIBPATH}; # FIND POSSIBLE SSL INSTALLATIONS diff -r -u Crypt-SSLeay-0.58/SSLeay.pm Crypt-SSLeay-0.58-adam/SSLeay.pm --- Crypt-SSLeay-0.58/SSLeay.pm 2010-08-24 19:24:21.000000000 +0000 +++ Crypt-SSLeay-0.58-adam/SSLeay.pm 2010-09-24 20:31:38.000000000 +0000 @@ -162,6 +162,9 @@ make test make install +If you need to change the OpenSSL installation location, set the +C<CRYPT_SSLEAY_LIBPATH> environment variable. + On Windows systems, both Strawberry Perl and ActiveState (as a separate download via ppm) projects include a MingW based compiler distribution and C<dmake> which can be used to build both OpenSSL and C<Crypt-SSLeay>. If you Only in Crypt-SSLeay-0.58-adam/: test.config
On Fri Sep 24 16:36:30 2010, aflott wrote: Show quoted text
> We use cpanm for installing CPAN modules, but I can't pass in where to > find the OpenSSL libs/headers as we don't use the operating systems > version. While I could circumvent this and do the perl Makefile.PL > dance directly, I'd prefer to us an environment variable > CRYPT_SSLEAY_LIBPATH.
Good idea. Will be in the next development release (coming very soon). Thank you. -- Sinan
Hello: I ended up removing portions of Makefile.PL that dealt with guessing locations of OpenSSL header and library files. If you just set the appropriate environment variables for your build tools, (e.g., using GCC, CPATH for headers, and LIBRARY_PATH for libraries), things should work. Please try out 0.64 and let me know if it works for you. Thank you for your feedback. -- Sinan On Wed Sep 29 17:51:25 2010, NANIS wrote: Show quoted text
> On Fri Sep 24 16:36:30 2010, aflott wrote:
> > We use cpanm for installing CPAN modules, but I can't pass in where to > > find the OpenSSL libs/headers as we don't use the operating systems > > version. While I could circumvent this and do the perl Makefile.PL > > dance directly, I'd prefer to us an environment variable > > CRYPT_SSLEAY_LIBPATH.
> > Good idea. Will be in the next development release (coming very soon). > > Thank you. > > -- Sinan