Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Visi

macrumors newbie
Original poster
Feb 21, 2008
1
0
Having an issue using Darwin Ports 1.5 on my Leopard install.

I recently downloaded the Darwin Ports package from the website and ran it, the install reads that everything installed correctly, and the website informed me that once the process was complete, I should run sudo port -d selfupdate, however, all I'm getting is an error that reads "sudo: ports: command not found".

Has anyone had a similar issue or any advice to pass on about it?
 

yeroen

macrumors 6502a
Mar 8, 2007
944
2
Cambridge, MA
I'm assuming Darwin Ports has been installed in /opt/local. If so, you need to put the /opt/local path in your $PATH environment variable.

You can set this permanently in your login shell, by typing:

echo export PATH=$PATH:/opt/local/bin >> ~/.bash_profile
source ~/.bash_profile
 

mademonkey

macrumors newbie
May 6, 2009
1
0
If you were running a terminal when you installed darwinports, you have to start a new terminal to use the 'port' command.

This is because the PATH variable has not been updated for any sessions in the terminal that were already running.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.