Skip to content

Instantly share code, notes, and snippets.

@lnrsoft
Created September 27, 2018 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lnrsoft/508d16e4a57b4eeca21a41d3120ef3e1 to your computer and use it in GitHub Desktop.
Save lnrsoft/508d16e4a57b4eeca21a41d3120ef3e1 to your computer and use it in GitHub Desktop.
Install MacPort on MacOS Mojave
$ sudo xcode-select –install
$ cd ~/Desktop
$ mkdir macports
$ cd macports
$ curl -O https://distfiles.macports.org/MacPorts/MacPorts-2.5.3.tar.gz
$ tar -xzvf MacPorts-2.5.3.tar.gz
$ cd MacPorts-2.5.3
$ ./configure
$ make
$ sudo make install
$ echo ‘export PATH=/opt/local/bin:/opt/local/sbin:$PATH’ >> ~/.profile
$ source ~/.profile
$ sudo port -v selfupdate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment