[ctw] Re: Tiger and Activestate

  • From: Tom Shaw <tshaw@xxxxxxxx>
  • To: ctw@xxxxxxxxxxxxx
  • Date: Sat, 9 May 2009 11:57:23 -0400

At 11:21 AM -0400 5/9/09, Robert Wolff wrote:
Ok I am really missing the boat on this, I installed Activestate perl version 5.10 but the perl -v still says 5.86.

I can see the install is at /usr/local/ActivePerl-5.10, I find a lot of "Make sure to add /usr/local/ActivePerl-5.10/bin to your path." around but I am just not getting this.

Any suggestions, in small words.

MAC OS X Server 10.4.11

you should be able to get version by

/usr/local/ActivePerl-5.10/perl -v

But of course that means you have to type in the complete path every time you want run that perl. You can make this easier by changing your bash profile.

Simplest way is to change your bash profile is to put /usr/local/ActivePerl-5.10 as the first directory to be searched but that will break my assp startup plist and force you to edit it to make it work along with spamdb cron job script.

The alternative is to symlink it to look like the default installed perl. The following command

ls -al /usr/bin/perl*

should show you that you have something like /usr/bin/perl and an exact copy at /usr/bin/perl_the_default_perl_version. If you do not have a copy of your default make one with the mv command.

Now you replace the default with a symlink to your activestate by:

sudo ln -s  /usr/local/ActivePerl-5.10/perl /usr/bin/perl

Now, typing /usr/bin/perl should start activestate and perl -v will give you the activestate version

Tom

--
Tom Shaw - Chief Engineer, OITC
<tshaw at oitc.com>, http://www.oitc.com/ local wx: http://www.oitc.com/weather
US Phone Numbers: 321-984-3714, 321-729-6258(fax), 321-258-2475(cell/voice mail,pager)
Text Paging: http://www.oitc.com/Pager/sendmessage.html
AIM/iChat: trshaw@xxxxxxx

Fish more and Live longer
Circle The Wagons
manage: //www.freelists.org/list/ctw post: mailto:ctw@xxxxxxxxxxxxx
unsubscribe: mailto:ctw-request@xxxxxxxxxxxxx?subject=unsubscribe
search: //www.freelists.org/archives/ctw
faq: //www.freelists.org/wiki/the_faq

Other related posts: