Supplimentary Perl 5.8
I had a script written recently, that requires a perl 5.8 module threads.pm
my dedicated server is running perl 5.6 but with being an ensim control system, which isnt compatible with perl 5.8 I couldnt install 5.8 as the main perl executable, so a programmer installed it at
as a secondary location however the script still throws up
must have perl 5.8 its still only seeing 5.6 even though the path to perl is still #!/usr/local/bin/perl5.8.0 at the top of the scripts
Run strace ./script to see which perl binary it is opening. Also try adding this line to your perl script:
use lib "/usr/lib/perl5/5.8.0/i686-linux/";
Or it might be 586 or whatever directory you have your 5.8 modules in.
Just install you specific perlversions under /opt/perl-version and then symlink under /usr/bin/perl to the perversion you want to run with. Then you can still have #!/usr/bin/perl in your scripts and just switch easylie between many versions. You dont need to update your PATH-variable either.