ActivePerl on MAC OS 10.7

Posted by ilib@cln.ru on 2011-10-04 13:45

I recently downloaded and installed activeperl on my mac because I failed to install required module into native perl distribution (there is no make utility). But now I cannot realize how to make Activeperl to run as default perl.

which perl always returns /usr/bin/perl though I added /usr/local/ActivePerl-5.12/bin to /private/etc/paths file
and when I run a perl script it reports that modules (for example Text::CSV_XS) not found

Any help is highly appreciated

grahams
ActiveState Staff
Mon, 2011-11-21 10:50

ActivePerl is not intended to replace the existing Apple Perl.

Replacing the default Apple Perl WILL break several important Apple Tools, and usually the only way to repair the mess is to re-install OS X.

There are several methods for adding ActivePerl to the PATH variable which are discussed in the installation guide:
http://docs.activestate.com/activeperl/5.12/install.html#os%20x%20config...

The symlink method needs to be used with care, so that any possibility of interfering with the operation of the default Apple Perl is avoided.

herbaware | Sat, 2012-04-21 04:39

Evidently Apple has a safety which makes it tough to break things. I am so glad that I found this.