FreeBSD Upgrade Perl 5.8.x to 5.10.x

www.lau‮irutt‬.com
FreeBSD Upgrade Perl 5.8.x to 5.10.x

To upgrade Perl from version 5.8.x to 5.10.x on a FreeBSD system, you can use the pkg command to install the newer version of Perl.

Here is the general process for upgrading to Perl 5.10.x on FreeBSD:

  1. Install the Perl 5.10.x package: First, you need to install the Perl 5.10.x package using the pkg command. You can do this by running the following command:
pkg install perl5.10

This will install Perl 5.10.x and all its dependencies.

  1. Configure Perl 5.10.x: After Perl 5.10.x has been installed, you need to configure it. You can do this by editing the /usr/local/etc/perl5.10.2/config.sh file and adjusting the settings as needed.

  2. Test Perl 5.10.x: After configuring Perl 5.10.x, you can test it by running a Perl script. For example, create a file named test.pl with the following content:

#!/usr/local/bin/perl5.10.2

print "Hello, World!\n";

Then, make the script executable by running the following command:

chmod +x test.pl

Finally, run the script by running the following command:

./test.pl

This should output "Hello, World!" to the console.

Created Time:2017-10-28 20:40:36  Author:lautturi