'no rule to make target' with no reason

2019-08-07 05:32发布

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.

1条回答
Evening l夕情丶
2楼-- · 2019-08-07 05:51

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 \
查看更多
登录 后发表回答