Re: Help setting Perl path
At 22:10 +0100 9/16/09, Mine wrote: >Content-Transfer-Encoding: 7bit >Content-Type: text/plain; > charset=US-ASCII; > delsp=yes; > format=flowed > >Hi, > >I have Perl 5.8.8 installed by MacPorts and a CPAN install of 5.10.1. >Is there a simple way switch between them hopefully from the Terminal, >so I can use 5.10.1 when using get_iplayer and 5.8.8 for other programs. > You must have links and aliases to perl that are making life difficult. Copy the first 5 lines of the get_iplayer script and post them. I'm particularly interested in a line, probably the first, that is something like: #!/usr/bin/perl Copy and paste some of the Terminal lines you have used with the error messages included and post them too. Is it just get_iplayer Or have you tried things like: /usr/local/bin/perl -w get_iplayer /usr/local/bin/perl5.10.1 -w get_iplayer Do a Finder "get info" on /usr/bin/perl and post what it says. In terminal, do these: ls -lF /usr/bin/perl* and post the answer. file /usr/bin/perl and post the answer. and . . . /usr/local/bin:/usr/local/lib:/opt/local/bin:/opt/ local/sbin:/usr/bin:/bin:/sbin:/usr/sbin seems to have acquired a space. in the middle of the line. That has to be an e-mail problem. Sigh. You can make a Finder alias or a UNIX link to the full path to the perl you want to use. Call it myperl and make it executable. man ln in Terminal for more on that. myperl get_iplayer -- --> In Christianity, man can have only one wife. This is known as monotony. <--
Help setting Perl path
Hi, I have Perl 5.8.8 installed by MacPorts and a CPAN install of 5.10.1. Is there a simple way switch between them hopefully from the Terminal, so I can use 5.10.1 when using get_iplayer and 5.8.8 for other programs. In a previous post, it was suggested that I create an environment.plist. Using the following instructions: mkdir $HOME/.MacOSX cat > $HOME/.MacOSX/environment.plist www.apple.com/DTDs/PropertyList-1.0.dtd"> PATH /usr/local/bin:/usr/local/lib:/opt/local/bin:/opt/ local/sbin:/usr/bin:/bin:/sbin:/usr/sbin type CONTROL D I assume this method is not temporary, but when I restarted my system, there was no change to the version of Perl being used. And to be honest, I didn't really understand what I was being told to do. I know for many getting get_iplayer to work on there system has been relatively easy, but I just can't get all the needed modules installed in my Perl 5.8.8. Thanks, Terrence