Paul Dean updated October 5 at 6:50 PM
What is Macports?
- Macports is a software repository that ports Linux open-source software to be compatible with Macs.
- Examples of such software are gmt, nedit, ghostscript and gv.
...
Installing GMT: An additional step is required for installing gmt4. Add the following line to your ~/.profile:
Code Block |
---|
export PATH=/opt/local/lib/gmt4/bin:$PATH |
Explanation: By default, Macports and most ports install in /opt/local/bin and /opt/local/sbin. To let the computer know where to look for Macports and installed ports, a path is created in ~/.profile as such:
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
This is automatically done for you when you install Macports.
However, gmt4 is installed in /opt/local/lib/gmt4/. Since this path isn't installed by default, you must manually create it in your ~/.profile so your computer knows where to look for it.
...
port command | Function | ||
---|---|---|---|
sudo port selfupdate | Sync local tree with Macports repository. Do this before installing or upgrading ports. | ||
sudo port install [port] | Install ports | ||
sudo port upgrade installed | Upgrade installed ports |
Uninstalling Macports
https://guide.macports.org/chunked/installing.macports.uninstalling.html
Resources
Official documentation can be found at http://www.macports.org/.
...