make fontconfig 時出現No package ‘libxml-2.0′ found的解決方法

這裏顯示一個錯誤信息:
checking for LIBXML2… configure: error: Package requirements (libxml-2.0 >=web

2.6) were not met:ide

No package ‘libxml-2.0′ foundui

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.spa

Alternatively, you may set the environment variables LIBXML2_CFLAGS
and LIBXML2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.orm

可是咱們在上面其實已經安裝上 libxml2 了的這裏只是一個 環境變量沒有設置好而已。xml

解決辦法: 肯定 /usr/local/libxml2/lib/pkgconfig 目錄下有 libxml-2.0.pcci

export PKG_CONFIG_PATH=/usr/local/libxml2/lib/pkgconfig:$PKG_CONFIG_PATHrem

再次生成 makefile , 這樣就成功了it

相關文章
相關標籤/搜索