构建很棒的 WM,缺少依赖项

Ren*_*ena 5 dependencies window-manager build awesome 11.04

尝试在 11.04 上编译 Awesome Window Manager,我已经完成了apt-get build-dep awesome但仍然收到有关缺少依赖项的错误:

$ make
运行 cmake…
-- 猫 -> /bin/cat
-- ln -> /bin/ln
-- grep -> /bin/grep
-- git -> /usr/bin/git
-- 主机名 -> /bin/主机名
-- asciidoc -> /usr/bin/asciidoc
-- xmlto -> /usr/bin/xmlto
-- gzip -> /bin/gzip
-- lua -> /usr/bin/lua
-- luadoc -> /usr/bin/luadoc
-- 转换 -> /usr/bin/convert
-- 检查模块 'glib-2.0;cairo;x11;oocairo;oopango;xcb-randr;xcb-xtest;xcb-xinerama;xcb-util>=0.3.8;xcb-keysyms>=0.3.4;xcb- icccm>=0.3.8;xcb-image>=0.3.0;cairo-xcb;libstartup-notification-1.0>=0.10;xproto>=7.0.15;libxdg-basedir>=1.0.0'
-- 未找到包“oocairo”
-- 未找到包“oopango”
-- 未找到包“xcb-util>=0.3.8”
-- 未找到包 'xcb-icccm>=0.3.8'
/usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 处的 CMake 错误(消息):
  未找到所需的包

我在 repos 中没有看到这些库的任何迹象。

我尝试了http://ubuntuforums.org/showthread.php?t=960841 上的说明,但也失败了:

$ cd util && ./autogen.sh && make && sudo make install
autoreconf: 进入目录`.'
autoreconf:configure.ac:不使用 Gettext
autoreconf: 运行: aclocal -I m4
autoreconf:configure.ac:跟踪
autoreconf:configure.ac:不使用 Libtool
autoreconf:运行:/usr/bin/autoconf
autoreconf: configure.ac: 不使用 Autoheader
autoreconf: 运行: automake --add-missing --copy --no-force
configure.ac:5:安装`./install-sh'
configure.ac:5:安装`./missing'
src/Makefile.am:1:使用了 Libtool 库,但未定义“LIBTOOL”
src/Makefile.am:1:定义`LIBTOOL'的常用方法是添加`AC_PROG_LIBTOOL'
src/Makefile.am:1: 到 `configure.ac' 并再次运行 `aclocal' 和 `autoconf'。
src/Makefile.am:1: 如果 `AC_PROG_LIBTOOL' 在 `configure.ac' 中,请确保
src/Makefile.am:1:它的定义在aclocal的搜索路径中。
src/Makefile.am: 安装`./depcomp'
src/Makefile.am:13: 使用了 `xcbinclude_HEADERS' 但未定义 `xcbincludedir'
Makefile.am:6: 使用了‘pkgconfig_DATA’但未定义‘pkgconfigdir’
autoreconf:automake 失败,退出状态:1

我需要做什么才能编译?

小智 2

看来你需要安装libxcb-icccm1-dev包。


Ami*_* KK 0

你不需要编译,无论如何就像@enzotib所说,你只应该这样做

apt-get source <package>
Run Code Online (Sandbox Code Playgroud)

只需使用

sudo aptitude install awesome
Run Code Online (Sandbox Code Playgroud)