没有规则就没有目标 [英] 'no rule to make target' with no reason

查看:85
本文介绍了没有规则就没有目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在安装以下程序: THERMUS ,据我所知应该安装得很好.我通过ubuntu控制台安装此程序.但是当我运行make all时,我收到了以下消息:

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.

我知道这可能是由于/main/中不存在文件TTMParticle.h引起的,但是我检查了-它在那里.

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.

推荐答案

您的环境变量THERMUS设置不正确. 构建说明提及:

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

3.将环境变量"THERMUS"设置为指向顶层 包含THERMUS代码的目录

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

它没有提到您必须执行export THERMUS将该变量提供给其他进程(例如make)使用,因此您可能已经忘记了这一点,或者根本没有设置THERMUS.在没有实际尝试的情况下,我认为摆脱此消息的最快方法是按以下方式运行make:

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


要找出问题所在,请签出出现问题的文件functions/makefile.它提到:


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

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

并随后包含依赖项

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

这是导致实际错误的行,因为

which is the line that causes the actual error, because

FNCSO           = BQConstrainQ.o \

这篇关于没有规则就没有目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆