GiNaC Real Algebra package

How to install GiNaCRA on MacOS X

  1. Install Homebrew.
  2. Make sure, you have a GCC version greater than 4.4. If not, execute:

    brew install
    rm -v /usr/bin/{cc,gcc,c++,g++}
    ln -sv /usr/local/bin/gcc-4.x /usr/bin/cc
    ln -sv /usr/local/bin/gcc-4.x /usr/bin/gcc
    ln -sv /usr/local/bin/c++-4.x /usr/bin/c++
    ln -sv /usr/local/bin/g++-4.x /usr/bin/g++

    Note that 4.x is the GCC version installed by Homebrew. If the installation path of GCC is /usr you can omit the local from the instructions above.
  3. Install GiNaC and CMake with Homebrew:

    brew install ginac
    brew install cmake

    If you encounter problems installing GiNaC with Homebrew, install its dependencies and install GiNaC from source:

    brew install readline && brew install cln
    tar xvf ginac-*.tar.gz
    cd ginac-*
    mkdir build
    cd build
    make install

  4. Download GiNaCRA and perform the following steps to build and install:

    tar xvf ginacra-*.tar.gz
    cd ginacra-*
    mkdir build
    cd build
    cmake ..
    make install

We recommend to avoid the usage of MacPorts or Fink, and to remove these packages including all dependencies. Please use su or sudo only when absolutely necessary! Brew, for instance, should not require root privileges. Only make install could.


Contact: Ulrich Loup

Last Update:

Valid HTML 4.01 Transitional Valid CSS! Source code is styled by Jindent.