Installation on OSX 10.11.6 (el capitan)

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

Installation on OSX 10.11.6 (el capitan)

Post by Claudio Nahmad » January 14 2017


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 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 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/ --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: 1618
Joined: September 23 2004
Affiliation: University of Sussex

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 (

Post Reply