At the moment i am running git 1.7.5.4, perl 5.12.3 as well as python 2.7.1 on osx 10.7.3, which were all included in the basic system setup. Applying the "which" command the locations are:
/usr/bin/git
/usr/bin/perl
/usr/bin/python
I wanted to keep those versions untouched and upgrade and install the latest ones aside. If they are installed within '/usr/local/bin' and inside of '.bash_profile' '/usr/local/bin' is placed at the first position of 'export PATH=' and you are applying 'which' afterwards the location would be:
/usr/local/bin/git
Now the question is which version of git, perl and or python osx would be using. Basically i guess it would use the versions from '/usr/local/bin' too? Or are the absolute paths of '/usr/bin' been hardcoded within the parts of osx and xcode requiring them? Thanks r.
perlbrew
.--prefix
. Also,MacPorts
installs softwares under /opt/, it will not touch those that come with your system installation. I don't like MacPorts cause it's quite slow compared toHomeBrew
.