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: mpif90: No such file or directory make: *** [ReleaseMPI/constants.o] Error 1 make: *** [camb] Error 2 make: *** [cosmomc] Error 2