COSMOMC: compiling on Linux with gfortran

Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Post Reply
David A. Ventimiglia
Posts: 1
Joined: December 12 2008
Affiliation: Michigan State University

COSMOMC: compiling on Linux with gfortran

Post by David A. Ventimiglia » January 27 2009

Hi,

I'm trying to compile and run cosmomc (version from June 2008) using gfortran (GCC) v. 4.3.2 In ../cosmomc/camb/Makefile and in ../cosmomc/source/Makefile_nowmap I uncommented the section for gfortran and changed the compiler from gfc to gfortran. camb compiled ok, but with cosmomc I get:

Code: Select all

/usr/bin/ld: -f may not be used without -shared
In Makefile_nowmap I added -shared to FFLAGS (that's just a guess on my part). Now, I get:

Code: Select all

/usr/bin/ld: accelerate: No such file: No such file or directory
I'll probably switch to the Intel compiler anyway, but just as a general question, what is the best way to compile and run cosmomc on Linux? Thanks!

Cheers,
David

Post Reply