Change your directory to /usr/local/src

perl install shell directory change

 

Head over to cpan.org and download the latest stable release of Perl

cpan.org perl 5.18 download

 

Copy the download link and issue the following at shell to start pulling the archive

You’ll need wget so install it if you don’t have it already

Issue the following command to extract the archive, make sure you replace the file name with the one you downloaded

Move inside the newly extracted directory

Initiate Configure before the install

Note: Configure failed saying it couldn’t find C, straight forward fix. Let’s throw the kitchen sink at it

Re run Configure and this time it should complete without complaint

To install issue the following

Issue the following after make install completes to verify that perl has indeed updated successfully

You should see something like the following

perl install 5.18.2