Can't get MacPorts to work after the install
Timothy Goins
ohce86 at kitcarson.net
Fri Apr 2 05:40:08 PDT 2010
On Apr 2, 2010, at 5:48 AM, Ryan Schmidt wrote:
> On Apr 2, 2010, at 06:19, Yves S. Garret wrote:
>
>> I downloaded the source. I configured it and compiled it.
>>
>> % ./configure && make
>>
>> Then the install...
>>
>> % sudo make install
>>
>> Everything was as it should, then I modified the .zsh_profile file in order to insert to modify the PATH and it looks as it does below:
>>
>> #!/bin/zsh
>>
>> if [ -e ~/.zshrc ]; then
>> source ~/.zshrc
>> fi
>>
>> export PATH=/opt/local/bin:$PATH
>> export PATH=/opt/local/sbin:$PATH
>>
>> I start up a new shell and try running it:
>>
>> % sudo port -v selfupdate
>> sudo: port: command not found
>>
>> Didn't work. So I went back to here and downloaded the dmg file. I install it just like the installer orders me to. No indication whatsoever that the install somehow has not gone as it should.
>>
>> Now, here's what happens when I try to run MacPorts on the console:
>>
>> % sudo port -v selfupdate
>> Password:
>> sudo: port: command not found
>>
>> :-/
>>
>> What am I doing wrong?
>
> I'm not familiar with ZSH. I've used Bash for years, and TCSH before that. Verify that you're using the correct syntax for ZSH for modifying the PATH.
>
> Verify also that /opt/local/bin/port does in fact exist.
A cheesy workaround:
$ which port
/opt/local/bin/port
$ sudo /opt/local/bin/port -v selfupdate
>
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
More information about the macports-users
mailing list