Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Installing Net::SSLeay on Linux

by PodMaster (Abbot)
on Mar 07, 2006 at 19:54 UTC ( #535016=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Installing Net::SSLeay on Linux
in thread Installing Net::SSLeay on Linux

Examine Makefile.PL, you'll see this

# See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. my %configParams = ( NAME => 'Net::SSLeay', VERSION_FROM => 'SSLeay.pm', # finds $VERSION DIR => [ 'Net-SSLeay-Handle-0.50' ], DEFINE => '-DPERL5 -DOPENSSL_NO_KRB5', # perl-5.8/gcc-3.2 n +eeds first, RH9 latter DISTNAME => 'Net_SSLeay.pm', dist => { COMPRESS => 'gzip', SUFFIX => 'gz', }, LIBS => ["-L$openssl_path -L$openssl_path/lib -L$openssl_path/o +ut32dll $libs"], INC => "-I$openssl_path/include -I$openssl_path/inc32 -I/usr/k +erberos/include", OPTIMIZE => $optimize, # Uncomment (and edit) following for debugging with gdb # LIBS => ['-L/usr/src/openssl-0.9.3a -lssl -lcrypto'], # INC => '-I/usr/src/openssl-0.9.3a/include', # OPTIMIZE => '-g', %more_params, ); WriteMakefile(%configParams); # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. #WriteMakefile( # 'NAME' => 'Net::SSLeay::Handle', # 'VERSION_FROM' => 'Handle.pm', # finds $VERSION #);
You want to focus on INC/LIBS,
LIBS => ["-L$openssl_path -L$openssl_path/lib -L$openssl_path/o +ut32dll $libs"], INC => "-I$openssl_path/include -I$openssl_path/inc32 -I/usr/k +erberos/include",
$openssl_path is the path you're supposed to pass, and its supposed to contain $libs
$libs = $rsaref ? "-lssl -lcrypto -lRSAglue -lrsaref" : "-lssl -lcrypt +o";
What this means is that "ssl.$Config{dlext}", "crypto.$Config{dlext}" (%Config from use Config;) are supposed to be located somewher in $openssl_path, $openssl_path/lib, $openssl_path/out32dll, because thats where the compiler/linker are going to look (perl -V:cc -V:ld).

Feel free to edit the Makefile.PL LIBS/INC entries appropriately.

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.


Comment on Re^3: Installing Net::SSLeay on Linux
Select or Download Code
Re^4: Installing Net::SSLeay on Linux
by philosophia (Sexton) on Mar 07, 2006 at 19:59 UTC
    how can i set $OPENSSL_PATH if it's currently undefined on my system?

    echo $OPENSSL_PATH gives me nothing.
    i was also able to find Makefile.PL's for other installed perl modules, ie.,

    /root/.cpan/build/Archive-Zip-1.16/Makefile.PL
    /root/.cpan/build/Crypt-CipherSaber-1.00/Makefile.PL
    /root/.cpan/build/Test-Warn-0.08/Makefile.PL
    /root/.cpan/build/Test-Exception-0.21/Makefile.PL

    etc., but none that seemed specific to Net::SSLeay
      What are you talking about? Net-SSLeay's Makefile.PL prompts you for it. Edit Makefile.PL.

      MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
      I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
      ** The third rule of perl club is a statement of fact: pod is sexy.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://535016]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2014-09-22 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (192 votes), past polls