Installing FormCalc 8.4 on Mac OS X 10.10 (with Mathematica 10)

http://en.misho-web.com/phys/feynlecture.html


Download FeynArts 3.9 from http://www.feynarts.de/ .
It works.


Download FormCalc 8.4 from http://www.feynarts.de/formcalc/ .
Suppose I put it at the following.

/Users/odakin/Downloads/FormCalc-8.4/


In the following, the only non-trivial part is the one marked by the red color.


PS: My friend reports me that the installation works without this modification if one starts up Mathematica Kernel before it.


In the README file, it is instructed to perform the following, in the above directory.

./compile

The following error message appears.

I can't seem to run the Mathematica Kernel.

Maybe you have a buggy Mathematica installation or you're
out of licenses.

Please make sure you can start the Mathematica Kernel without
additional flags (such as -pwfile) and re-run ./compile.

I found that this can be evaded by double-clicking (or choosing Open after right-clicking) the "compile" file.


After double-clicking it, the following error message appears:

Compiling for system type MacOSX-x86-64
make: Nothing to be done for `all'.
/Users/odakin/Downloads/FormCalc-8.4/compile: line 140: ..//Users/odakin/Downloads/FormCalc-8.4/drivers/configure: No such file or directory

In the "compile" file, I have changed the line 26

SRC="${SRC:-`dirname $0`}"

into the following.

SRC="${SRC:-`dirname $0`}"
cd $SRC
SRC='.'


After double-clicking it, the following error message appears.

looking for fortran... no ifort pgf90 xlf gfortran g95 f90 in your path

To install fortran, I first installed MacPorts, following https://www.macports.org/install.php . Then I performed the following.

port search gcc

I found that gcc5 is the latest non-BETA version. I did the following.

sudo port install gcc5

I did the following in /opt/local/bin/ .

sudo ln -s g++-mp-5 g++
sudo ln -s gcc-mp-5 gcc
sudo ln -s gfortran-mp-5 gfortran


After double-clicking the "compile" file, I got the following.

/opt/local/bin/as: assembler (/opt/local/bin/clang) not installed
make: *** [.././drivers/util//system/Error.o] Error 1

I did the following.

port search clang

I found that clang-3.7 is the latest. I did the following.

sudo port install clang-3.7

I did the following in /opt/local/bin/ .

ln -s clang-mp-3.7 clang

Double-click it again. Finally it works!