Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

How to install Net::SSLeay using custom SSL libraries via Carton package manager?

by xcodejoy (Novice)
on Dec 11, 2019 at 13:47 UTC ( #11109972=perlquestion: print w/replies, xml ) Need Help??

xcodejoy has asked for the wisdom of the Perl Monks concerning the following question:

Hi guys!

I have various version of the SSL libraries in my $HOME:

$HOME/opt/LibreSSL/v1 $HOME/opt/LibreSSL/v... $HOME/opt/OpenSSL/v1 $HOME/opt/OpenSSL/v...

How to install Net::SSLeay with a determined SSL library using Carton package manager (via cpanfile) for a determined Perl project?

I have read that:

## https://metacpan.org/source/CHRISN/Net-SSLeay-1.88/README ## If your OpenSSL is installed in an unusual place, ## you can tell Net-SSLeay where to find it ## with the OPENSSL_PREFIX environment: ## OPENSSL_PREFIX=/$HOME/path/to/openssl

But, what about LIBRESSL_PREFIX? I didn't found the answer here:

## https://st.aticpan.org/source/CHRISN/Net-SSLeay-1.88/

"cpanfile" allows to set building options using such syntax:

https://metacpan.org/pod/distribution/Module-CPANfile/lib/cpanfile.pod

on configure => sub { ... };

Is it correct to use it for OPENSSL_PREFIX? And, what about LIBRESSL_PREFIX?

Replies are listed 'Best First'.
Re: How to install Net::SSLeay using custom SSL libraries via Carton package manager?
by Anonymous Monk on Dec 11, 2019 at 19:17 UTC

    But, what about LIBRESSL_PREFIX? I didn't found the answer here:

    Hi

    What happens if you simply give OPENSSL_PREFIX your path for libressl?

      I have installed last versions OpenSSL (1.1.1d) and LibreSSL (3.0.2) in my $HOME. Next, I've installed Net::SSLeay, IO::Socket::SSL, Mojolicious using plenv/carton for two test projects: the one using OpenSSL and other using LibreSSL; both works good!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://11109972]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2020-12-04 05:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (58 votes). Check out past polls.

    Notices?