如何安装 libxcb

如何安装 libxcb

我正在尝试安装Awesome 的依赖,具体来说libxcb(使用 Ubuntu 16.04.1)。我所做的是运行:

cd ~/Downloads
apt-get source libxcb
sudo apt-get build-dep libxcb
cd libxcb-1.11.1/
dpkg-buildpackage -us -uc

这是正确的构建过程libxcb吗?现在我有一个很大的*.deb文件列表(见下文)。我应该通过哪一个安装sudo dpkg -i *.deb

~/Downloads$ ls -a
.                                                libxcb-render0-dev_1.11.1-1ubuntu1_amd64.deb
..                                               libxcb-res0_1.11.1-1ubuntu1_amd64.deb
awesome-4.0                                      libxcb-res0-dbg_1.11.1-1ubuntu1_amd64.deb
awesome-4.0.tar.xz                               libxcb-res0-dev_1.11.1-1ubuntu1_amd64.deb
libxcb-1.11.1                                    libxcb-screensaver0_1.11.1-1ubuntu1_amd64.deb
libxcb1_1.11.1-1ubuntu1_amd64.deb                libxcb-screensaver0-dbg_1.11.1-1ubuntu1_amd64.deb
libxcb_1.11.1-1ubuntu1_amd64.changes             libxcb-screensaver0-dev_1.11.1-1ubuntu1_amd64.deb
libxcb_1.11.1-1ubuntu1.diff.gz                   libxcb-shape0_1.11.1-1ubuntu1_amd64.deb
libxcb_1.11.1-1ubuntu1.dsc                       libxcb-shape0-dbg_1.11.1-1ubuntu1_amd64.deb
libxcb_1.11.1.orig.tar.gz                        libxcb-shape0-dev_1.11.1-1ubuntu1_amd64.deb
libxcb1-dbg_1.11.1-1ubuntu1_amd64.deb            libxcb-shm0_1.11.1-1ubuntu1_amd64.deb
libxcb1-dev_1.11.1-1ubuntu1_amd64.deb            libxcb-shm0-dbg_1.11.1-1ubuntu1_amd64.deb
libxcb1-udeb_1.11.1-1ubuntu1_amd64.udeb          libxcb-shm0-dev_1.11.1-1ubuntu1_amd64.deb
libxcb-composite0_1.11.1-1ubuntu1_amd64.deb      libxcb-sync1_1.11.1-1ubuntu1_amd64.deb
libxcb-composite0-dbg_1.11.1-1ubuntu1_amd64.deb  libxcb-sync1-dbg_1.11.1-1ubuntu1_amd64.deb
libxcb-composite0-dev_1.11.1-1ubuntu1_amd64.deb  libxcb-sync-dev_1.11.1-1ubuntu1_amd64.deb
libxcb-damage0_1.11.1-1ubuntu1_amd64.deb         libxcb-xevie0_1.11.1-1ubuntu1_amd64.deb
libxcb-damage0-dbg_1.11.1-1ubuntu1_amd64.deb     libxcb-xevie0-dbg_1.11.1-1ubuntu1_amd64.deb
libxcb-damage0-dev_1.11.1-1ubuntu1_amd64.deb     libxcb-xevie0-dev_1.11.1-1ubuntu1_amd64.deb
libxcb-doc_1.11.1-1ubuntu1_all.deb               libxcb-xf86dri0_1.11.1-1ubuntu1_amd64.deb
libxcb-dpms0_1.11.1-1ubuntu1_amd64.deb           libxcb-xf86dri0-dbg_1.11.1-1ubuntu1_amd64.deb
libxcb-dpms0-dbg_1.11.1-1ubuntu1_amd64.deb       libxcb-xf86dri0-dev_1.11.1-1ubuntu1_amd64.deb
libxcb-dpms0-dev_1.11.1-1ubuntu1_amd64.deb       libxcb-xfixes0_1.11.1-1ubuntu1_amd64.deb
libxcb-dri2-0_1.11.1-1ubuntu1_amd64.deb          libxcb-xfixes0-dbg_1.11.1-1ubuntu1_amd64.deb
libxcb-dri2-0-dbg_1.11.1-1ubuntu1_amd64.deb      libxcb-xfixes0-dev_1.11.1-1ubuntu1_amd64.deb
libxcb-dri2-0-dev_1.11.1-1ubuntu1_amd64.deb      libxcb-xinerama0_1.11.1-1ubuntu1_amd64.deb
libxcb-dri3-0_1.11.1-1ubuntu1_amd64.deb          libxcb-xinerama0-dbg_1.11.1-1ubuntu1_amd64.deb
libxcb-dri3-0-dbg_1.11.1-1ubuntu1_amd64.deb      libxcb-xinerama0-dev_1.11.1-1ubuntu1_amd64.deb
libxcb-dri3-dev_1.11.1-1ubuntu1_amd64.deb        libxcb-xkb1_1.11.1-1ubuntu1_amd64.deb
libxcb-glx0_1.11.1-1ubuntu1_amd64.deb            libxcb-xkb1-dbg_1.11.1-1ubuntu1_amd64.deb
libxcb-glx0-dbg_1.11.1-1ubuntu1_amd64.deb        libxcb-xkb-dev_1.11.1-1ubuntu1_amd64.deb
libxcb-glx0-dev_1.11.1-1ubuntu1_amd64.deb        libxcb-xprint0_1.11.1-1ubuntu1_amd64.deb
libxcb-present0_1.11.1-1ubuntu1_amd64.deb        libxcb-xprint0-dbg_1.11.1-1ubuntu1_amd64.deb
libxcb-present0-dbg_1.11.1-1ubuntu1_amd64.deb    libxcb-xprint0-dev_1.11.1-1ubuntu1_amd64.deb
libxcb-present-dev_1.11.1-1ubuntu1_amd64.deb     libxcb-xtest0_1.11.1-1ubuntu1_amd64.deb
libxcb-randr0_1.11.1-1ubuntu1_amd64.deb          libxcb-xtest0-dbg_1.11.1-1ubuntu1_amd64.deb
libxcb-randr0-dbg_1.11.1-1ubuntu1_amd64.deb      libxcb-xtest0-dev_1.11.1-1ubuntu1_amd64.deb
libxcb-randr0-dev_1.11.1-1ubuntu1_amd64.deb      libxcb-xv0_1.11.1-1ubuntu1_amd64.deb
libxcb-record0_1.11.1-1ubuntu1_amd64.deb         libxcb-xv0-dbg_1.11.1-1ubuntu1_amd64.deb
libxcb-record0-dbg_1.11.1-1ubuntu1_amd64.deb     libxcb-xv0-dev_1.11.1-1ubuntu1_amd64.deb
libxcb-record0-dev_1.11.1-1ubuntu1_amd64.deb     libxcb-xvmc0_1.11.1-1ubuntu1_amd64.deb
libxcb-render0_1.11.1-1ubuntu1_amd64.deb         libxcb-xvmc0-dbg_1.11.1-1ubuntu1_amd64.deb
libxcb-render0-dbg_1.11.1-1ubuntu1_amd64.deb     libxcb-xvmc0-dev_1.11.1-1ubuntu1_amd64.deb

答案1

你构建的方式libxcb是好的,但作为朱莉·佩尔蒂埃说你不需要从源代码构建它。

在这种情况下,一般方法是使用apt-cache search;apt-cache search libxcb将列出所有libxcb与 相关的软件包(以及其他一些碰巧提到的软件包libxcb)及其简短描述。然后您可以将它们与很棒的要求;假设您正在从源代码构建后者:

sudo apt-get install libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-xkb-dev

将安装所需的库和开发文件。

构建依赖关系现有的 Awesome 包可以作为开始处理其余依赖项的有用指南。

相关内容