Page 1 of 1

issues compiling CosmoMC and CAMB

Posted: February 10 2020
by Elizabeth Gould
When using the October 2019 version of CosmoMC, when I run the makefile, I get

Code: Select all

[egould@gra-login2 cmc003]$ make
cd ./source && make cosmomc BUILD=MPI
make[1]: Entering directory '/home/egould/CosmoMC/cmc003/source'
mkdir -p ReleaseMPI
cd ../camb/fortran && \
make --file=Makefile_main libcamb OUTPUT_DIR=ReleaseMPI \
    FORUTILSPATH=/home/egould/CosmoMC/cmc003/source/../camb/forutils
make[2]: Entering directory '/home/egould/CosmoMC/cmc003/camb/fortran'
make[3]: *** No rule to make target 'ReleaseMPI'.  Stop.
make[2]: *** [Makefile_main:144: libforutils] Error 2
make[2]: Leaving directory '/home/egould/CosmoMC/cmc003/camb/fortran'
make[1]: *** [Makefile:315: camb] Error 2
make[1]: Leaving directory '/home/egould/CosmoMC/cmc003/source'
make: *** [Makefile:17: cosmomc] Error 2
For CAMB, this is

Code: Select all

[egould@gra-login2 fortran]$ make
make[1]: *** No rule to make target 'Release'.  Stop.
make: *** [Makefile_main:144: libforutils] Error 2
I have checked that this does not happen for the case of the older version of CosmoMC I have used in the past.

Re: issues compiling CosmoMC and CAMB

Posted: February 11 2020
by Antony Lewis
Did you do a recursive clone from github? (you should)

Re: issues compiling CosmoMC and CAMB

Posted: March 18 2020
by Elizabeth Gould
The clone I just downloaded has an identical Makefile to the version I had downloaded before. I did download the most recent version from GetHub when I did this.