How To Install CCA Mac


Installing CCA Tools on Mac OS X

The CCA tools have been successfully built and installed on both OS X v10.4 (Tiger) and v10.5 (Leopard). Below we describe how to install CCA on Leopard. However, the installation on Tiger should be similar (and, in fact, probably easier).

Before starting, please read over the generic install instructions.

OS X v10.5.x

Some extra steps must be taken to install on Mac OS X:

  • Ensure the correct Java version is being used. You can accomplish this be setting the environment variable JAVA_HOME to the location of the correct version of Java, and adding its bin directory to your path.
  • Configure with babel version 1.2.1, and use the nightly builds.
  • Use version 4.0.1 of the GNU compilers

The following script gives an example of how this is done. <geshi lang=bash>

  1. !/bin/sh


export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home

CC=/usr/bin/gcc-4.0 CXX=/usr/bin/g++-4.0 F77=/usr/bin/gfortran F90=/usr/bin/gfortran PYTHON=/usr/bin/python JAVA=$JAVA_HOME/bin/java

./ --configure \

             prefix=$PREFIX \
             cc=$CC \
             cxx=$CXX \
             f77=$F77 \
             f90=$F90 \
             python=$PYTHON \
             java=$JAVA babel_version=1.2.1 nightly=True

./ </geshi>


Fatal error when building babel. The build process fails when building babel with errors that look like, <geshi> cc1: error: unrecognized command line option "-Wno-long-double" </geshi> Use an older version of gcc. Although this looks as though it is a problem with the c compiler, it is actually a problem with the Python distutils module. distutils adds its own set of compile flags and unfortunately, there is no way to override this. Setting CFLAGS, will only add flags, not replace them. The easiest solution is to use another version of gcc. If you are using version 4.2, try 4.0. You should use whatever version of gcc built the Python you are using. Notice that in my install script I specify /usr/bin/gcc-4.0.