[Linux-disciples] path conflict

Jamie Forrest jamie at jamieforrest.com
Sun Nov 20 00:14:01 EST 2011


I have a strange, circular path conflict going on (OS X). Lion comes
preinstalled with a version of postgresql in /usr/bin but I need to be
using the one that I installed in /usr/local/bin. However, the
/usr/local/bin directory also contains a default version of Python
(again, not the version I want to be using). So, if I add
/usr/local/bin to the head of my PATH variable in order to get psql
working properly, that also causes the wrong Python to be run.

How do I get around this? Postgres and Python both come with lots of
executables so I'd rather not have to delete or mv all these out of
the directories. Any ideas?

Thanks!
Jamie


More information about the Linux-disciples mailing list