[CAMB]: Makefile gives "No rule to make target 'Martix_utils.o'" error

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Bradley Shapiro
Posts: 1
Joined: July 20 2017
Affiliation: Brown University

[CAMB]: Makefile gives \"No rule to make target ''Marti

Post by Bradley Shapiro » July 20 2017

I'm trying to set up CAMB (on a Mac, which may be relevant), but every time I run the makefile I get an error:

Code: Select all

No rule to make target `Matrix_utils.o', needed by `camb'.  Stop.
I haven't moved anything around, so Matrix_utils is in the same directory it came in, i.e. the same directory as Makefile and Makefile_main. So I'm not sure what the problem is. Any advice would be greatly appreciated.

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

Re: [CAMB]: Makefile gives \\\"No rule to make target '

Post by Antony Lewis » July 21 2017

Something to do with the upper case .F90? In any case you don't need MatrixUtils unless you compile bispectrum code defining FISHER.
Try compiling it manually first?

Shulei Ni
Posts: 1
Joined: September 21 2015
Affiliation: Central China Normal University

[CAMB]: Makefile gives \\\"No rule to make target ''''M

Post by Shulei Ni » March 05 2018

Hi, Antony. I have the same problem.
I want to compile bispectrum code, and I set "FISHER = Y " in Makefile.
I run "make all", and I get the same error.

Think you :)

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

Re: [CAMB]: Makefile gives \\\\\\\"No rule to make targ

Post by Antony Lewis » March 09 2018

In the Makefile change the line to

EXTCAMBFILES = $(OUTPUT_DIR)/Matrix_utils.o

Post Reply