Linux找不到metis.h [英] Linux could not find metis.h
问题描述
我正在尝试安装Metis.由于我在公共服务器上工作,因此无法以root用户身份安装它.所以我已经在我的帐户/home/jd/metis中安装了metis.
I am trying to install Metis. Since I am working on a public server, I couldn't install it as a root user. So I have installed metis in my account /home/jd/metis.
当我尝试执行某项操作时,我会得到
When I try to execute something, I get
严重错误:metis.h:没有这样的文件或目录
fatal error: metis.h: No such file or directory
我猜系统会在/usr/local/include下寻找metis.h,但在那里找不到.如何使linux在/home/jd/metis/include目录下查找metis.h?
I guess the system looks for metis.h under /usr/local/include but couldnt find it there. How do I make linux look for metis.h under /home/jd/metis/include directory?
我将此路径添加到$ PATH变量中.但是还是一样的错误. 请告知.
I added this path to the $PATH variable. But still the same error. Please advise.
推荐答案
我的建议是使用cmake.在这个问题中:在unbuntu上安装metis ,我写下来我的cmake文件.命令
My advice is to work with cmake. In this question:install metis on unbuntu, I wrote down my cmake file. The command
include_directories("/home/jd/metis/include")
应该解决您的问题.
这篇关于Linux找不到metis.h的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!