mtrn
mtrn

Reputation: 11

'no rule to make target' with no reason

I was installing this program: THERMUS, that, as i know should install fine. I/m installing this program through ubuntu console. But when i run make all i got this message:

make: ***No rule to make target '/main/TTMParticle.h', needed by 'BQConstrainQ.o'. Stop.

I know that it could be caused by the fact that file TTMParticle.h doesn't exist in /main/, but i checked - it's there.

Upvotes: 1

Views: 574

Answers (1)

Reinier Torenbeek
Reinier Torenbeek

Reputation: 17383

Your environment variable THERMUS is not properly set. The build instructions mention:

3 . Set an environment variable `THERMUS' to point at the top-level directory containing the THERMUS code

It does not mention that you have to do export THERMUS to make that variable available to other processes, like make, so you might have forgotten that -- or not have set THERMUS at all. Without actually having tried it, I think the fastest way to get rid of this message is to run make as follows:

THERMUS=.. make all

To track down the issue, check out the file functions/makefile where you problem occurs. It mentions:

SEP_CLASSESH    = $(THERMUS)/main/TTMParticle.h \

and later contains the dependency

$(FNCSO):   $(FNCSS) $(SEP_CLASSESH)

which is the line that causes the actual error, because

FNCSO           = BQConstrainQ.o \

Upvotes: 1

Related Questions