I developped a script in Perl that uses 2 extra libraries, Net::SSH::Perl and Spreadsheet::WriteExcel, which I installed easily using CPAN
on my Debian laptop.
Ultimatly, my goal is to deploy this script on a solaris server. However, this server is not connected to internet and thus cannot auto install missing dependencies.
So far, I tried using PP, which allowed me to run this script on another Ubuntu computer without needing to install manually the extra libraries, but returned an error : Cannot find /lib64/ld-linux-x86-64.so.2
on Solaris.
As I suspected this was due to the differences between both architectures, I packed my script with a ./lib
folder containing all dependencies (the ./lib
was obtained by doing pp -B -p -o script.par myscript.pl
and extracting the resulting ./lib
folder).
Following the leads I found in this question, I tried with use lib "./lib
and with BEGIN { unshift @INC, "lib"; }
at the start of my script, but I got an error saying I didn't include my libraries when I ran it.
Is there a way to port those libraries ? Is there another approach ?