Darwin Ports Install

Discussion in 'macOS' started by Visi, Feb 21, 2008.

  1. Visi macrumors newbie

    Feb 21, 2008
    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?
  2. yeroen macrumors 6502a


    Mar 8, 2007
    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
  3. mademonkey macrumors newbie

    May 6, 2009
    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.

Share This Page