Just another Perl shrine | |
PerlMonks |
installing clean version of Perl on Mac Snow leopard problemsby Phantom123 (Initiate) |
on Apr 21, 2012 at 05:15 UTC ( [id://966305]=perlquestion: print w/replies, xml ) | Need Help?? |
Phantom123 has asked for the wisdom of the Perl Monks concerning the following question: needed to install a clean version of perl on my Mac computer running on Mac OS X Snow Leopard. first i installed macports. (www.macports.org) for snow leapord (using the dmg file): https://distfiles.macports.org/MacPorts/ (This file was what i used to install on my computer: MacPorts-1.9.2-10.6-SnowLeopard.dmg) Then next i tried to installed the perl source code for mac os x from the official site. http://www.perl.org/get.html#osx downloaded the file: perl-5-2.14.2.tar Next untar the downloaded file: tar xzvf perl-5-2.14.2.tar then typed the following command: sudo port install perl5and got this message:
(The above command actually worked for me on a Mac OS X Lion computer albeit i did get a couple of warnings.) so then i typed the commands given in the README file for installation:
This works fine and i see a clean version of perl installed in a sub-directory called localperl. The problem is that when i type which perl in the command line it keeps pointing to the native installation of perl. That is, on typing which perl in command line, i get /usr/bin/perlhow do i get it to point to the clean version of perl which i had installed since i wish to install a software which is dependent on Perl and also a few additional CPAN modules which i will need to install on the clean version of perl i have downloaded as well. As i understand i should retain the native Perl because some of my system files are dependent on it. Please help, Monks!
Back to
Seekers of Perl Wisdom
|
|