MacOS – Mountain Lion Figlet through MacPorts error

macosmacportsterminal

I've just installed Mountain Lion, Xcode 4.4.1 + command line tools, and MacPorts for ML.

It's working for other packages but I can't get figlet to install.

When I use sudo port install figlet in the terminal it stops quickly and outputs:

--->  Building figlet
Error: org.macports.build for port figlet returned: command execution failed
Please see the log file for port figlet for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_figlet/figlet/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port figlet failed

Best Answer

I figured this out by cleaning the port with

sudo port clean figlet

then installing using

sudo port install figlet

According to the Macports ProblemHotList, this error is typical of existing packages that have stored compiler locations that aren't current. Cleaning the package and reinstalling assures the package is rebuilt with the current compiler collection settings for MacPorts.