Linux could not find metis.h
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.
Installing and using the ParMetis library
You need to provide the location of your ParMetis library to
the compiler, since you have choosen to install the library
not in the default library directories.
mpic++ test.cpp -I /My-ParMETIS-Directory/ -I /My-METIS-Directory/
Edit#2:
What I did to get your code compiling:
Download the ParMetis library from webpage to /tmp
cd /tmp/
wget http://glaros.dtc.umn.edu/gkhome/fetch/sw/parmetis/parmetis-4.0.3.tar.gzUnpack archive
tar -xf parmetis-4.0.3.tar.gz
Install ParMETIS into directory /tmp/parmetis
mkdir parmetis
cd parmetis-4.0.3/
make config prefix=/tmp/parmetis
make installInstall METIS into directory /tmp/metis
cd /tmp/
mkdir metis
cd parmetis-4.0.3/metis
make config prefix=/tmp/metis
make installCompile test.cpp which is located in /tmp/
cd /tmp/
mpic++ test.cpp -I /tmp/parmetis -I /tmp/metis
Related Topics
Code for Wait_Event_Interruptible
Format and Filter File to CSV Table
What's The Best Way to Move a Directory into Place in a Makefile Install
How to Rename Files in Zip Archive Without Extracting and Recompressing Them
Use Awk to Print $0 Using The Same Format for All Columns
Udp Broadcast Sendto Failed:"Network Is Unreachable" on Linux 2.6.30
How to Use Multiple Threads for Zlib Compression (Same Input Source)
Having Linux Persist Memory Changes to Disk
What's The Relation Between 32/64-Bit Application, Os and Processor
Is The Program 'Yes' Used for Anything Significant
Gitlab Ce Doesn't Add a Public Key to Authorized_Keys
How to Run Cassandra (Cqlsh) from Anywhere