You’ll need a Fortran 90 compiler, a UNIX environment with the bash shell, the [t]csh shell, and, if you have a parallel machine, an MPI library. Optionally, if you plan to use the provided plotting utilities, you should install xmgrace and gnuplot.
These dependencies can be installed automatically by the ‘install’ script, so go to A2 below. Keep reading if you would rather do this by hand.
Here are full setup commands for popular Linux distributions, which you can copy and paste into your terminal:
- Ubuntu 10.04+, Linux Mint 9+:
sudo apt-get install make gcc gfortran g++ tcsh openmpi-bin libopenmpi-dev grace gnuplot
- Debian Lenny+ (5.0+):
su -c "apt-get install make gcc gfortran g++ tcsh openmpi-bin libopenmpi-dev grace gnuplot"
- Fedora 9+, CentOS:
su -c "yum install make gcc gcc-gfortran gcc-c++ tcsh openmpi openmpi-devel grace gnuplot"
- openSUSE 11.3+:
sudo zypper install make gcc gcc-fortran gcc-c++ tcsh openmpi openmpi-devel xmgrace gnuplot
- Mandriva 2010.2+:
su -c "gurpmi make gcc gcc-gfortran gcc-c++ tcsh openmpi grace gnuplot"
su -c "emerge make gcc tcsh openmpi grace sci-visualization/gnuplot"
- Arch Linux:
su -c "pacman -S make gcc gcc-fortran tcsh openmpi grace gnuplot"
This distribution has no official package manager with automated dependency resolution. Slackware users, have fun. Both of you.
- For openSUSE (up to at least version 11.3), after installing the packages above and before trying to compile the code, you may need to log out and back in for changes to take effect.
- As a bleeding-edge rolling-release distro, Arch Linux as of May 2011 is the first to hit a compilation problem with the default gfortran 4.6.0. This will get fixed eventually on gfortran’s side, or worked around on ours.
- Installing OpenMPI under Ubuntu 10.10 and 11.04 will pull a package called
blcr-dkmsas a ‘recommends’, but it does not compile against the Linux kernel versions distributed in either of these releases. Ignore the error message after installing the above packages, and run
sudo apt-get remove --purge blcr-dkmsto remove the problematic package. It is not needed for normal operation. Ubuntu bug: https://bugs.launchpad.net/bugs/700036
After this, go to A2 below. Your
CASINO_ARCH is ‘
linuxpc-gcc‘ for the non-parallel version and ‘
linuxpc-gcc-parallel‘ for the parallel one. Fedora 12 and later versions on multi-core systems should use ‘
← Frequently Asked Questions