Linux could not find metis.h

偶尔善良 提交于 2019-12-01 12:04:47
Soeren

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.

You may change the environment variable CPLUS_INCLUDE_PATH. For example, add this kind of statement in your ~/.bashrc:

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

then,

source ~/.bashrc

As for dynamic link library(when you install other library such as libevent locally), you may want to change the following two environment variables:

export LIBRARY_PATH=$HOME/libevent/lib:$LIBRARY_PATH

export LD_LIBRARY_PATH=$HOME/libevent/lib:$LD_LIBRARY_PATH

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!