bash reports "port command not found"
rrucker at mac.com
Fri Sep 19 08:13:18 PDT 2008
On Sep 19, 2008, at 11:08 AM, Kevin Walzer wrote:
> Richard Rucker wrote:
>>> What does "echo $PATH" show in Terminal?
>> Last login: Fri Sep 19 10:55:20 on ttys000
>> Carmel-4:~ RAR$ port list
>> -bash: port: command not found
>> Carmel-4:~ RAR$ echo $PATH
>> Carmel-4:~ RAR$
> OK, I think this is a bug in the MacPorts 1.6 installer--I've seen
> it reported here, but I am not sure where it's documented (apart
> from the list archives).
> Run this command in Terminal:
> open -e .profile
Last login: Fri Sep 19 11:09:44 on ttys000
Carmel-4:~ RAR$ open -e .profile
The file /Users/RAR/.profile does not exist.
BTW, Thanks for your prompt help!
> This will open the .profile file in Text Editor.
> Then, add this to the file:
> export PATH
> Close the file, open up a new Terminal window, and run "echo $PATH"
> again. It should show /opt/local/bin on your $PATH.
> As an alternative, you can always run the command "/opt/local/bin/
> port" in Terminal with the appropriate parameters, such as /opt/
> local/bin/port list. Adding the "/opt/local/bin" bits to $PATH just
> reduces the amount of typing you have to do.
> Kevin Walzer
> Code by Kevin
More information about the macports-users