Selinux

在 CentOS 上從原始碼編譯 Awesome:找不到庫

  • August 23, 2014

我正在嘗試awesomeCentOS7. 由於我找不到承載它的儲存庫,所以我從原始碼編譯它。但是,我在執行 make 時收到此錯誤:

-- checking for modules 'glib-2.0;gdk-pixbuf-2.0;cairo;x11;xcb-cursor;xcb-randr;xcb-xtest;xcb-xinerama;xcb-shape;xcb-util>=0.3.8;xcb-keysyms>=0.3.4;xcb-icccm>=0.3.8;cairo-xcb;libstartup-notification-1.0>=0.10;xproto>=7.0.15;libxdg-basedir>=1.0.0'
--   package 'xcb-cursor' not found
--   package 'libxdg-basedir>=1.0.0' not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:279 (message):
 A required package was not found
Call Stack (most recent call first):
 /usr/share/cmake/Modules/FindPkgConfig.cmake:333 (_pkg_check_modules_internal)
 awesomeConfig.cmake:134 (pkg_check_modules)
 CMakeLists.txt:15 (include)


CMake Error at awesomeConfig.cmake:153 (message):
Call Stack (most recent call first):
 CMakeLists.txt:15 (include)


-- Configuring incomplete, errors occurred!
make: *** [cmake] Error 1

但是,我已經安裝(再次從原始碼)這兩個庫:

[awesome-3.5.5]$ ls /usr/local/lib/*cursor*
/usr/local/lib/libxcb-cursor.a   /usr/local/lib/libxcb-cursor.so.0
/usr/local/lib/libxcb-cursor.la  /usr/local/lib/libxcb-cursor.so.0.0.0
/usr/local/lib/libxcb-cursor.so
[awesome-3.5.5]$ ls /usr/lcoal/lib/*libxdg-basedir*
/usr/local/lib/libxdg-basedir.a   /usr/local/lib/libxdg-basedir.so.1
/usr/local/lib/libxdg-basedir.la  /usr/local/lib/libxdg-basedir.so.1.2.0
/usr/local/lib/libxdg-basedir.so

我將 ldconfig 配置為包含 /usr/local/lib,更新了記憶體…

ldconfig -p | grep xcb-cursor
   libxcb-cursor.so.0 (libc6,x86-64) => /usr/local/lib/libxcb-cursor.so.0
   libxcb-cursor.so (libc6,x86-64) => /usr/local/lib/libxcb-cursor.so

ldconfig -p | grep xdg-basedir
   libxdg-basedir.so.1 (libc6,x86-64) => /usr/local/lib/libxdg-basedir.so.1
   libxdg-basedir.so (libc6,x86-64) => /usr/local/lib/libxdg-basedir.so

我怕我被難住了…

會不會是 SELinux?

GAH

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

突然 (c)make 可以找到包…

引用自:https://unix.stackexchange.com/questions/151642