[MacPorts] #15104: Setting Path Variables in Leopard

MacPorts trac at macosforge.org
Tue Apr 22 13:12:33 PDT 2008


#15104: Setting Path Variables in Leopard
--------------------------------------+-------------------------------------
  Reporter:  autumn.ahlers at gmail.com  |       Owner:  macports-tickets at lists.macosforge.org
      Type:  enhancement              |      Status:  new                                  
  Priority:  Normal                   |   Milestone:                                       
 Component:  ports                    |     Version:  1.6.0                                
Resolution:                           |    Keywords:                                       
--------------------------------------+-------------------------------------
Comment (by autumn.ahlers at gmail.com):

 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 only works temporarily for the
 session but does not get saved.  I had to export the path every session to
 get "port" to work.

 Thanks for all the hard work !

-- 
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/15104#comment:1>
MacPorts </projects/macports>
Ports system for Mac OS


More information about the macports-tickets mailing list