[Linux-disciples] path conflict
Chung-chieh Shan
ccshan at post.harvard.edu
Sun Nov 20 00:30:05 EST 2011
On 2011-11-20T00:14:01-0500, Jamie Forrest wrote:
> 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?
You can make a new directory, use symbolic links to make the Postgres
files you want appear in this new directory, and add the new directory
to your PATH instead of adding /usr/local/bin.
--
Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig
#occupykenssig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20111120/d7c8ad28/attachment.pgp
More information about the Linux-disciples
mailing list