Difference between revisions of "Talk:OS X Perl"

From Organic Design wiki
 
m (Caretaker: Format links, Format headings)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
-
+
=[http://perlhelp.web.cern.ch/PerlHelp/perltoc.html 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 ? [[User:Nad|Nad]] 08:53, 23 Jan 2006 (NZDT)

Latest revision as of 19:04, 3 November 2006

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)