Friday September 10 , 2010
Text Size
   



Updating Perl

How to update Perl on your box with setuidgid

Uninstalling the current version of Perl

Go to


# cd /usr/ports/lang/perl5.10

and run the following command


# make deinstall

If you get a message that says

===> Deinstalling for lang/perl5.10
===> perl not installed, skipping

This is okay. Otherwise the current version of perl thats installed will be uninstalled, if any.

Installing perl with setuidgid

We need to edit the /etc/make.conf file to enable setuid perl. Follow the next step to do so:


# echo "ENABLE_SUIDPERL=true" >> /etc/make.conf

Now that we have told /etc/make.conf to enable setuid perl and uninstalled it, we can now go ahead and install perl 5.8.8 which is current as of Feb 2007 Now run the following and Iwould suggest doing this in a screen session as this can take some time.


# cd /usr/ports/lang/perl5.10
# make install clean

All done with Perl!