Net::SSLeay install
joahallin opened this issue · comments
Package: Entware-ng-3x
This might not be the right forum but I've tried installing the perl modules Net::SSLeay and IO::Socket::SSL using the method outlined in the Entware-ng wiki. This doesn't quite work.
There is a warning message when installing Net::SSLeay:
Warning (mostly harmless): No library found for -lssl
Warning (mostly harmless): No library found for -lz
However, the installation seems to go through and testing afterwards seems fine:
perl -e "use Net::SSLeay"
Proceeding then by installing IO::Socket::SSL seems to go through but when testing it fails like this:
perl -e "use IO::Socket::SSL"
perl: symbol lookup error: /opt/lib/perl5/5.24/auto/Net/SSLeay/SSLeay.so: undefined symbol: SSL_library_init
Is the openssl library missing? I don't seem to have that library, only libgnutls-openssl (which might be unrelated). This might not be the issue though?
Please assist.
Platform:
QNAP 215-Pro, Linux server 4.2.8 #1 SMP Thu Jul 27 01:09:44 CST 2017 x86_64 GNU/Linux, QTS 4.3.3.0262 (2017/07/27), Entware-3x_0.99std
- It is only a warning
- All libraries needed for compilation should be installed (ordinary version, no dev versions in enware). Please check that you have installed libopenssl and zlib packages.
- You may need to patch installation files in some cases.
Both libopenssl and zlib are installed according to opkg. Why do I get the warning message -lssl and -lz then? Some path problem? I downloaded the latest versions of Net::SSLeay and IO::Socket::SSL from cpan.
Any other hints that you can provide?
Post https://forum.qnap.com/viewtopic.php?p=606772#p606772 may help
For those trying to install Net::SSLeay this CPAN line worked for me
o conf makepl_arg 'LIBS="-L/opt/lib -lcrypto -lssl"'