"port" command doesn't work after restart

Kevin Walzer kw at codebykevin.com
Tue Sep 11 10:55:23 PDT 2007

Benton Greene wrote:
> I just joined this list, so I don't know if this has been discussed before,
> but every time I restart my computer, the macports libraries can no longer
> be seen by the terminal, and I have to run "export
> PATH=/opt/local/bin:/opt/local/sbin:$PATH" again.  I checked this with the
> "env" command.  Short of creating a login item to run that script every time
> I turn my computer on, is there a fix for this?
> Thanks,
> --Benton

Yes. Edit ~/.profile or ~/.bashrc to add /opt/local/bin to your path, 
and then MacPorts will be included whenever you launch a new shell.

Kevin Walzer
Code by Kevin

More information about the macports-users mailing list