在 CentOS 上从源代码编译 Awesome:找不到库

在 CentOS 上从源代码编译 Awesome:找不到库

我正在尝试awesome在 上安装(v3.5.5)CentOS7。由于我找不到包含它的存储库,因此我从源代码编译它。但是,我在运行 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 吗?

答案1

GAH

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

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

相关内容