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

Visi

macrumors newbie
Original poster
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?
 
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
 
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.