How to install METIS on ubuntu

Viewed 9644

I want to install the METIS package on ubuntu.

I tried the instructions on the install.txt file which says to use

$ make install 

which I did, after installing make as well.

I also tried the

sudo apt-get install metis

which installed it successfully but

when trying to use it in both cases I get

metis.h: No such file in directory compilation terminated

In case anyone asks I use g++ -I/path/to/file myprogram.cpp to specify the path where metis.h is.

I believe I haven't done something correct in the installation but I can't determine what it is.

Can someone help me with the installation process?

3 Answers

You may append your metis installation path to the environment variable CPLUS_INCLUDE_PATH. For example, in your ~/.bashrc, add:

export CPLUS_INCLUDE_PATH=$HOME/metis/include:$CPLUS_INCLUDE_PATH

then,

source ~/.bashrc

Please see more in the question Linux could not find metis.h.

Related