MacPorts/GNU Software for Macs

The Mac installer for MacPorts can be downloaded here.

Setting the $PATH Variable

First you may need to set your $PATH variable. Do this by adding the following to your .bash_profile file in your home directory

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

Installed packages

Troubleshooting

MacPorts - XCode not Installed?

If you get the following error:

checking for gcc... /usr/bin/gcc-4.0
checking for C compiler default output file name... 
configure: error: C compiler cannot create executables
See `config.log' for more details.

it is possible that you do not have XCode installed, or not the most up-to-date version installed.

MacPorts - no awk program found

If you get an error like this (I got this when trying to install subversion):

configure: error: No awk program found

Error: The following dependencies failed to build: apr-util sqlite3 gawk gettext ncurses ncursesw gmake readline cyrus-sasl2 openssl zlib neon serf
Error: Status 1 encountered during processing.

To solve this I simply reran the command. It worked fine the second time… don't know why though :-/

Setting Up locate

The locate tool is great for finding files on the command line. If you get the following error:

 
locate: `/var/db/locate.database': No such file or directory

you will need to do the following:

sudo /usr/libexec/locate.updatedb

This may take a few minutes to build your locate database (solution found here).

public/macports.txt · Last modified: 2008/09/25 11:37 by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki