Difference between revisions of "Installing CPAN on OpenWRT"

m
no edit summary
m
m
 
Line 5: Line 5:
<nowiki>*</nowiki>''Dependency Free*'' is very misleading as the following perl modules need to be installed;
<nowiki>*</nowiki>''Dependency Free*'' is very misleading as the following perl modules need to be installed;


opkg install perlbase-extutils perlbase-perlio perlbase-if perlbase-universal perlbase-getopt perlbase-data perlbase-pod perlbase-test perlbase-encoding perlbase-perlio perlbase-json-pp perlbase-english perl-test-harness make curl tar wget (the full WGET executable must be installed as the one built into BusyBox does not have the necessary capability, the same for TAR comes up in other situations, so may as well install it here).
opkg install perlbase-extutils perlbase-perlio perlbase-if perlbase-universal perlbase-getopt perlbase-data perlbase-pod perlbase-test perlbase-encoding perlbase-perlio perlbase-json-pp perlbase-english perl-test-harness
 
opkg install make curl tar wget (the full WGET executable must be installed as the one built into BusyBox does not have the necessary capability, the same for TAR comes up in other situations, so may as well install it here).


...and gave up trying to find all of the perlbase- modules and just installed all of them: opkg list | grep perlbase-| awk '{print $1}' | xargs opkg install
...and gave up trying to find all of the perlbase- modules and just installed all of them: opkg list | grep perlbase-| awk '{print $1}' | xargs opkg install


Also: opkg install perl-test-warn and opkg install perl-test-harness --force-overwrite (from https://github.com/Entware/Entware-ng/wiki/Self-installation-of-perl-modules)
Also: opkg install perl-test-warn and opkg install perl-test-harness --force-overwrite (from https://github.com/Entware/Entware-ng/wiki/Self-installation-of-perl-modules), perl-test-harness = perlbase-test perlbase-tap


curl -L <nowiki>https://cpanmin.us</nowiki> | perl - Test::More
curl -L <nowiki>https://cpanmin.us</nowiki> | perl - Test::More
Line 18: Line 20:


curl -L <nowiki>https://cpanmin.us</nowiki> | perl - App::cpanminus
curl -L <nowiki>https://cpanmin.us</nowiki> | perl - App::cpanminus
 
==Net::SSLeay==
perl-test-harness = perlbase-test perlbase-tap
 
 
== Net::SSLeay ==
Download perl-dev from Entware: https://bin.entware.net/armv7sf-k3.2/perl-dev_5.28.1-5_armv7-3.2.ipk
Download perl-dev from Entware: https://bin.entware.net/armv7sf-k3.2/perl-dev_5.28.1-5_armv7-3.2.ipk


Header files from Entware: http://pkg.entware.net/binaries/armv7/include/include.tar.gz
Header files from Entware: http://pkg.entware.net/binaries/armv7/include/include.tar.gz


=== Issue with ===
===Issue with===
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lssl


/usr/bin/ld: cannot find -lcrypto
/usr/bin/ld: cannot find -lcrypto


=== Solutions that don't work ===
===Solutions that don't work===
ln -s /usr/lib/libcrypto.so.1.1 /usr/lib/libcrypto.so
ln -s /usr/lib/libcrypto.so.1.1 /usr/lib/libcrypto.so


Line 43: Line 41:
<br />
<br />


=== Missing items ===
===Missing items===
libcrypto.so
libcrypto.so


Line 50: Line 48:
openssl.so
openssl.so


=== And if it is all solved ===
===And if it is all solved===
opkg install openssl-util gcc
opkg install openssl-util gcc


Line 56: Line 54:
<br />
<br />


== Manual Installation of CPAN ==
==Manual Installation of CPAN==
Download CPAN Module: CPAN-2.28.tar.gz
Download CPAN Module: CPAN-2.28.tar.gz


Line 68: Line 66:
<br />
<br />


== Script for listing installed perl modules ==
==Script for listing installed perl modules==
<nowiki>#</nowiki>!/usr/bin/perl -w
<nowiki>#</nowiki>!/usr/bin/perl -w


Line 83: Line 81:
}
}


== MailScanner ==
==MailScanner==
Log::Log4perl
Log::Log4perl