Skip to content
Bob Fischer edited this page Nov 18, 2015 · 2 revisions

Instructions

  1. Download latest MacPorts srce (.tar.gz version) to ~/Downloads: https://www.macports.org/install.php#source

  2. Edit the file new_macports. Set the variable MACPORTS_DOWNLOAD to the name of the file just downloaded:

    MACPORTS_DOWNLOAD='MacPorts-2.3.4.tar.gz'
    
  3. Run the new_macports script to create a new user-level installation of MacPorts, in a particular location. For example:

    new_macports $HOME/macports/gcc49-python3
    
  4. Set up your environment in your .profile:

    export MACPORTS=$HOME/macports/gcc49-python3
    export PORT=$MACPORTS/bin/port
    export PATH=$MACPORTS/bin:$PATH
    
  5. Run one of the scripts in setup/ to fill your new MacPorts installation with stuff. The script sets its own MACPORTS variable, and that is what it will fill with software. Edit if needed.

Clone this wiki locally