Você está na página 1de 3

[How To]: Installing MacPorts on Mac OS X – Jackson's Blog 22/09/17 8:05 p.m.

JACKSON'S BLOG

MARCH 27, 2015MAY 16, 2015 JACKSON ISAAC FOSS, MAC OS X, OPEN SOURCE

[How To]: Installing MacPorts on Mac OS X

i
Rate This

Hola Amigos,

I have blogged about installing brew package manager previously. Today I am going to show how to
install MacPorts.

What is MacPorts?

MacPorts is an open source package manager for Mac OS X. It makes fetching, compiling and
installing open source packages on Mac OS X easy.

It is recommended that you use only one package manager as there can be package conflicts. But I
have been using MacPorts along with brew without any problems, unless you purposefully try to
break the system.

Also MacPorts depends on Xcode and xcode command line tools. You can download these from App
Store (https://itunes.apple.com/us/app/xcode/id497799835) or from the Apple Developers website
(https://developer.apple.com/downloads/index.action).

You can either download xcode command line tools from Apple Developer website itself or run the
following command after install Xcode:

1 xcode'select+''install

Installing MacPorts via Installer:

https://jacksonisaac.wordpress.com/2015/03/27/installing-macports-on-mac-os-x/ Page 1 of 3
[How To]: Installing MacPorts on Mac OS X – Jackson's Blog 22/09/17 8:05 p.m.

To install MacPorts (stable version), you can download the dmg from here
(https://www.macports.org/install.php).

Yosemite (https://distfiles.macports.org/MacPorts/MacPorts-2.3.3-10.10-Yosemite.pkg)
Mavericks (https://distfiles.macports.org/MacPorts/MacPorts-2.3.3-10.9-Mavericks.pkg)
Mountain Lion (https://distfiles.macports.org/MacPorts/MacPorts-2.3.3-10.8-
MountainLion.pkg)

Users having older version of Mac OS X can visit their Download page for detailed steps.

Installing MacPorts from source:

1) Clone the MacPorts source via svn (Subversion):

Run the following command in your Terminal.App:

1 svn+checkout+https://svn.macports.org/repository/macports/trunk+(https://svn.ma

This will fetch the source of MacPorts into a folder named ‘macports-trunk’.

You can fetch the source in another folder by running in Terminal.App:

1 svn+checkout+https://svn.macports.org/repository/macports/trunk+(https://svn.ma

Note: Replace FOLDER_NAME with your desired folder name.

Considering that our MacPorts source is cloned in macports-trunk folder

If you have already cloned the source code then run the following code inside the macports-trunk
directory (in Terminal.App):

1 svn+up

Now to compile and install MacPorts, run the following sequence of commands in Terminal.App:

1 ./configure+''enable'readline
2 make
3 sudo+make+install

Run the following command to update your ports (MacPorts base sources)

1 sudo+port+'d+selfupdate

You can use MacPorts (interactive mode of MacPorts) by running

1 port

https://jacksonisaac.wordpress.com/2015/03/27/installing-macports-on-mac-os-x/ Page 2 of 3
[How To]: Installing MacPorts on Mac OS X – Jackson's Blog 22/09/17 8:05 p.m.

To install a package using MacPorts you can run

1 sudo+port+install+package_name

Hope this helps you installing open source packages on your Mac.

Let the Windows be open, and feel the Freedom.

Advertisements
TAGGED BUILD MACPORTS FROM SOURCE, INSTALL MACPORTS ON MAC
OS X, INSTALL MACPORTS ON OS X, INSTALL OPEN SOURCE PACKAGES ON
OS X, MACPORTS, PACKAGE MANAGER FOR MAC OS X, PORT, PORTFILES, THE
MACPORTS PROJECT

Published by Jackson Isaac

Google Summer of Code 2017 Admin with The MacPorts Project. Data Scientist Alumnus at Amrita
Vishwa Vidyapeetham, India and TU Munich, Germany. View all posts by Jackson Isaac

One thought on “[How To]: Installing MacPorts on Mac


OS X”

1. Pingback: Jackson's Blog | Download Youtube videos on Mac OS X through Terminal.App

BLOG AT WORDPRESS.COM.

https://jacksonisaac.wordpress.com/2015/03/27/installing-macports-on-mac-os-x/ Page 3 of 3

Você também pode gostar