Talk:OS X Perl

From Organic Design
Jump to: navigation, search

Active perl users guide

OS X Configuration

The Apple Installer package installs ActivePerl in /usr/local/ActivePerl-5.8. To run the perl interpreter and PPM package manager (without having to enter the full path), add /usr/local/ActivePerl-5.8/bin to your PATH environment variable. For example:

   $ export PATH=/usr/local/ActivePerl-5.8/bin:$PATH
 

To permanently add the directory to your PATH, add it to the .profile or .bash_profile file in the user's home directory. For example:

   PATH=/usr/local/ActivePerl-5.8/bin:$PATH
   export PATH
   

Alternatively, symbolic links to the binaries can be created in any bin directory currently in the PATH. For example:

   PATH=/Users/<username>/bin:$PATH
   $ ln -s /usr/local/ActivePerl-5.8/bin/perl /Users/<username>/bin/perl
   $ ln -s /usr/local/ActivePerl-5.8/bin/ppm /Users/<username>/bin/ppm

How does this affect scripts which start with the standard #!/usr/bin/perl ? Nad 08:53, 23 Jan 2006 (NZDT)