setting up macport path in leopard

May 13, 2008 20:55

#15104: Setting Path Variables in Leopard
-------------------------------------+--------------------------------------
Reporter: autumn.ahlers@... | Owner: macports-tickets@...
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.6.0
Keywords: |
-------------------------------------+--------------------------------------
After pulling my hair out trying to save my Path Variables for MacPorts, I
found that Leopard uses a completely different method for saving Path
Variables. The method described in the wiki does not work under Leopard.
To save a Path Variable in Leopard, one must type out the MacPorts path in
a Text Editor (i.e. "TextEdit") and save the file to /etc/path.d/
For example, I have a plain text file named "MacPorts" located in
/etc/path.d/ that simply reads:

/opt/local/sbin
/opt/local/bin

Works like a charm! This should definitely be included in the "how-to"
wiki.
Exporting the path to the
{{{
.profile
}}}
does not work. I had to export the path every session to get "port" to
work.

Thanks for all the hard work !

nerd, mac

Previous post Next post
Up