So a customer asked to use the latest version of Perl on one of our web servers. Its Running FreeBSD 8.0 with Apache2.2 and Perl 5.10. The FreeBSD ports collection does not upgrade 5.10 to 5.12 with a normal upgrade so I executed the following commands to make it work. Assuming the server has ‘portupgrade’ installed first.
# Stage 1, make the package database up to date and safe. pkgdb -Ff # Stage 2 Replace 5.10 with 5.12 env DISABLE_CONFLICTS=1 portupgrade -o lang/perl5.12 -f perl-5.10.\* # Stage 3 Update any dependancies portupgrade -fr perl
you can test by doing:
# perl -v This is perl 5, version 12, subversion 4 (v5.12.4) built for amd64-freebsd Copyright 1987-2010, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page.