Installation on OSX 10.11.6 (el capitan)

Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Post Reply
Claudio Nahmad
Posts: 3
Joined: January 14 2017
Affiliation: Facultad de Ciencias UNAM
Contact:

Installation on OSX 10.11.6 (el capitan)

Post by Claudio Nahmad » January 14 2017

Hello.

I am currently installing CosmoMC on a iMac with OSX el capitan. The first step was to install CAMB, to do this i downloaded gcc5.2 from https://gcc.gnu.org/wiki/GFortranBinaries#MacOS and installed it with the automatic installation. Following this i downloaded CAMB from the github repository and installed it with "make". Everything fine.

Next thing is installing CosmoMC, so i downloaded it from the website https://github.com/cmbant/CosmoMC unpacked and typed "make" in the terminal. The following error appears:

Code: Select all

cd ./source && make cosmomc BUILD=MPI
mkdir -p ReleaseMPI
cd ../camb && \
	/Applications/Xcode.app/Contents/Developer/usr/bin/make --file=Makefile_main libcamb OUTPUT_DIR=ReleaseMPI \
	RECOMBINATION=recfast EQUATIONS=equations_ppf NONLINEAR=halofit_ppf
mkdir -p ReleaseMPI
mpif90 -cpp -O3 -ffast-math -ffree-line-length-none -fopenmp -fmax-errors=4 -DMPI -JReleaseMPI -IReleaseMPI/ -c constants.f90 -o ReleaseMPI/constants.o
make[2]: mpif90: No such file or directory
make[2]: *** [ReleaseMPI/constants.o] Error 1
make[1]: *** [camb] Error 2
make: *** [cosmomc] Error 2
My entry might be easy to resolve, but i'm sorry i'm new to this. Thank you in advance.

Antony Lewis
Posts: 1364
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: Installation on OSX 10.11.6 (el capitan)

Post by Antony Lewis » January 15 2017

To start with you need GCC6 and mpi.

Or use CosmoBox (http://cosmologist.info/CosmoBox/)

Post Reply