Perl Installation on Macintosh Platform

PERLServer Side ProgrammingProgramming Scripts

In order to build your own version of Perl, you will need 'make', which is part of the Apple developer tools usually supplied with Mac OS install DVDs. You do not need the latest version of Xcode (which is now charged for) in order to install make.

Here are the simple steps to install Perl on Mac OS X machine.

  • Open a Web browser and go to https://www.perl.org/get.html.

  • Follow the link to download the zipped source code available for Mac OS X.

  • Download the perl-5.x.y.tar.gz file and issue the following commands at $ prompt.

$tar -xzf perl-5.x.y.tar.gz
$cd perl-5.x.y
$./Configure -de
$make
$make test
$make install

This will install Perl in a standard location /usr/local/bin and its libraries are installed in /usr/local/lib/perlXX, where XX is the version of Perl that you are using.

raja
Published on 28-Nov-2019 11:46:16
Advertisements