提示信息大概是這個樣子
The required package $PACKAGE_NAME was not found on your system.
*** Please install $PACKAGE_NAME (atleast version $version) or adjust
*** the PKG_CONFIG_PATH environment variable if you
*** installed the package in a nonstandard prefix so that
*** pkg-config is able to find it.
按照提示首先
1. 把這個包裝上,一般yum install $PACKAGE_NAME
應該會有
2. 如果確實裝上了,修改PKG_CONFIG_PATH。
export PKG_CONFIG_PATH=/usr/share/pkgconfig:/usr/lib/pkgconfig
如果是64位系統可能還需要加上/usr/lib64/pkgconfig/
重新啓動命令行。或者執行source /etc/profile
,只對單個命令行有效
關於pkg-config:【Linux技術】linux之configure,pkg-config和PKG_CONFIG_PATH