Installing Crypt::SSLeay

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Installing Crypt::SSLeay

Postby randor » 10. September 2012 17:06

Hello,

I am trying to install Crypt::SSLEay perl mod into perl but I am getting an error:

Code: Select all
root@ubuntu:/opt/lampp# cpan -i Crypt::SSLeay
CPAN: Storable loaded ok (v2.27)
Reading '/root/.cpan/Metadata'
  Database was generated on Mon, 10 Sep 2012 01:39:03 GMT
Running install for module 'Crypt::SSLeay'
Running make for N/NA/NANIS/Crypt-SSLeay-0.64.tar.gz
CPAN: Digest::SHA loaded ok (v5.71)
CPAN: Compress::Zlib loaded ok (v2.055)
Checksum for /root/.cpan/sources/authors/id/N/NA/NANIS/Crypt-SSLeay-0.64.tar.gz ok
CPAN: File::Temp loaded ok (v0.22)
CPAN: Parse::CPAN::Meta loaded ok (v1.4404)
CPAN: CPAN::Meta loaded ok (v2.112150)
CPAN: Module::CoreList loaded ok (v2.49_02)

  CPAN.pm: Building N/NA/NANIS/Crypt-SSLeay-0.64.tar.gz

The test suite can attempt to connect to public servers to ensure that the
code is working properly. If you are behind a strict firewall or have no
network connectivity, these tests may fail (through no fault of the code).
Do you want to run the live tests (y/N)? [N] n
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lssl32
Note (probably harmless): No library found for -lssleay32
Note (probably harmless): No library found for -leay32
Writing Makefile for Crypt::SSLeay
Writing MYMETA.yml and MYMETA.json
cp lib/Crypt/SSLeay/X509.pm blib/lib/Crypt/SSLeay/X509.pm
cp lib/Net/SSL.pm blib/lib/Net/SSL.pm
cp SSLeay.pm blib/lib/Crypt/SSLeay.pm
cp lib/Crypt/SSLeay/CTX.pm blib/lib/Crypt/SSLeay/CTX.pm
cp lib/Crypt/SSLeay/MainContext.pm blib/lib/Crypt/SSLeay/MainContext.pm
cp lib/Crypt/SSLeay/Conn.pm blib/lib/Crypt/SSLeay/Conn.pm
cp lib/Crypt/SSLeay/Err.pm blib/lib/Crypt/SSLeay/Err.pm
/usr/bin/perl /usr/share/perl/5.14/ExtUtils/xsubpp  -typemap /usr/share/perl/5.14/ExtUtils/typemap -typemap typemap  SSLeay.xs > SSLeay.xsc && mv SSLeay.xsc SSLeay.c
cc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"0.64\" -DXS_VERSION=\"0.64\" -fPIC "-I/usr/lib/perl/5.14/CORE"   SSLeay.c
SSLeay.xs:35:25: fatal error: openssl/ssl.h: No such file or directory
compilation terminated.
make: *** [SSLeay.o] Error 1
  NANIS/Crypt-SSLeay-0.64.tar.gz
  /usr/bin/make -- NOT OK
CPAN: YAML loaded ok (v0.84)
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible



I am 95% sure it has to do with this line: "SSLeay.xs:35:25: fatal error: openssl/ssl.h: No such file or directory" But I have no idea as to what would cause it or how to fix it. Any help on this? I know its more a perl thing but just curious if anyone else has gotten this error??

Thank you
randor
 
Posts: 13
Joined: 07. September 2012 17:45
XAMPP Version: 5.6.3
Operating System: Ubuntu

Re: Installing Crypt::SSLeay

Postby randor » 10. September 2012 17:25

Actually, I solved it..

After more research I finally found this:

In summary, if you need to install this module, you’ll need OpenSSL headers (which don’t get installed by default). So install them…
apt-get install libssl-dev


did that and it worked..
randor
 
Posts: 13
Joined: 07. September 2012 17:45
XAMPP Version: 5.6.3
Operating System: Ubuntu

Re: Installing Crypt::SSLeay

Postby JonB » 10. September 2012 19:16

Good job.

On Windows, the 1.8.0 situation is a bit uglier for Crypt::SSLeay - 'no comment for now' :evil:

Fortunately - Strawberry Perl standalone already has the support built-in as installed.

Good Luck with your project.
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.8.3-2
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Installing Crypt::SSLeay

Postby JonB » 12. September 2012 16:09

Just tested on LAMPP , the same is true on Fedora/Centos/RHEL = you need the openSSL development library or Crypt:SSLeay will fail on the missing openssl.h.

Code: Select all
[root@localhost /]# yum install openssl-devel


Thanks for the tip.
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.8.3-2
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 4 guests