Search code examples
linuxpathincludemetis

Linux could not find metis.h


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

fatal error: metis.h: No such file or directory

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?

I added this path to the $PATH variable. But still the same error. Please advise.


Solution

  • 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")
    

    should solve your problem.