Search code examples
cmakemacports

Problem installing cmake with MacPorts


I'm using MacPorts to try to install cmake, and its giving me this. I've looked online for help on this, to no avail. Any ideas on how to get this to go away?

Running OSX 10.6.6 (2.4 Ghz i5, 4GB)

$ sudo port install cmake
--->  Computing dependencies for cmake
--->  Building cmake
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for cmake is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
$ 

Solution

  • I had the same problem on a MacBook Pro with Snow Leopard. I read on a Mac OS Forge thread about MacPorts that I should install the Java for Mac OS X 10.6 Update 3 Developer Package so I did just that, also re-installed xcode from the Snow Leopard installation DVD, then did:

    $sudo port clean cmake
    

    then tried installing cmake again and it worked!

    I don't know what was the exact problem so if installing the Java Update Developer Package doesn't do the trick please try all of the above..