You’ll also want to upgrade the installed ports (which can also take a while), as follows: sudo port upgrade outdatedĪfter this, you’ll want to make sure MacPorts knows where to look for its files, which are in the /opt directory. When it’s finished, run the following command to update Macports to the latest release (warning: this step can take a while, because it has to compile a bunch of code): sudo port -v selfupdate Choose the version that corresponds to your operating system, and install the package. Next, you’ll need the Macports package installation manager, available here. Scroll to the end using the spacebar and type ‘agree’ to accept the license. Run the following command to agree to the XCode license: sudo xcodebuild -license Then, open the Terminal applications (found at /Applications/Utilities/) and run the following command, which installs some command line tools you’ll need: xcode-select -install Make sure you’re comfortable using the command line. Some of the commands will take a while to run, so it’s best to try and multitask while this is going on.įirst, install XCode from the App Store. Remember, this is a fairly involved process that takes tinkering under the hood of your Mac. Some steps in that process changed in Yosemite, so here are the steps. Last year I wrote up a how-to guide installing a .ptx viewer on a Mac for Mavericks and previous versions of OS X.