'没有规则可以确定目标'没有理由 [英] 'no rule to make target' with no reason

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

问题描述

我正在安装以下程序: 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:***'BQConstrainQ.o'不需要创建目标'/main/TTMParticle.h'的规则.停止.

我知道这可能是由于/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 .它提到:

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天全站免登陆