我正在运行 Elementary OS (Ubuntu),需要构建并安装邮件客户端 Geary。
我已经下载并解压了它并安装了大部分“丢失”的依赖项。但剩下的人寥寥无几。
我已经在终端中输入:
./configure
,这会导致缺少依赖项错误:
cmake version 2.8.7
-- The C compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Icon cache will be updated
-- Desktop database will be updated
-- Generated desktop file will be checked for errors
-- xgettext found
-- Found Vala: /usr/local/bin/valac
-- checking for a minimum Vala version of 0.20.1
-- found Vala, version 0.22.1
-- Unity messaging menu support: OFF
-- Unity launcher support: ON
-- Targeting WebKitGTK 1.10.0 to 2.0.4
-- Vala fatal warnings: ON
-- checking for modules 'gthread-2.0;glib-2.0>=2.32.0;gio-2.0>=2.28.0;gtk+-3.0>=3.6.0;gee-0.8>=0.8.5;libnotify>=0.7.5;libcanberra>=0.28;sqlite3>=3.7.4;gmime-2.6>=2.6.0;libsecret-1>=0.11;libxml-2.0>=2.7.8;unity;webkitgtk-3.0>=1.10.0;webkitgtk-3.0<=2.0.4'
-- package 'gtk+-3.0>=3.6.0' not found
-- package 'gee-0.8>=0.8.5' not found
-- package 'libsecret-1>=0.11' not found
-- package 'webkitgtk-3.0>=1.10.0' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal)
src/CMakeLists.txt:475 (pkg_check_modules)
-- Reference tracking: OFF
-- GSettings schemas will be compiled.
-- GSettings schemas will be compiled in-place.
-- GSettings schemas will be installed into /usr/local/share/glib-2.0/schemas/
Creating POT file
-- Found Valadoc: /usr/bin/valadoc
-- Configuring incomplete, errors occurred!
Unable to prepare build directory.
所以我试图一个一个地安装每个依赖项,但第一次失败了。第一个是Gtk。我已经下载并解压了它,然后我按照教程并尝试:
~/gtk+-3.8.8$ make
和
sudo make install
或make install
但是,它告诉我:
make: *** No targets specified and no makefile found. Stop.
所以我不能 make
Gtk/can' 安装所需的依赖项。到目前为止,我已经从 google 上阅读了 8 个不同的网站,他们都说同样的事情,但没有真正的解决方案,也没有任何效果。
所以我被困住了。
是否有不同的或更自动的方式来安装这些依赖项?或者我总是需要在终端中手动下载并配置/制作/安装它们?似乎这在我安装的所有内容中变得越来越常见,总是缺少依赖项,并且解决方案通常要求我安装其他也需要依赖项的东西。谈论递归!
如何安装终端要求的这些依赖项?
最佳答案
一般来说,除非您知道自己在做什么或者确实需要特定版本的依赖项,否则您应该使用发行版中的包,而不是尝试从 tarball 构建和安装。具体来说,您需要gtk+-3.0、gee-0.8、libsecret-1和webkitgtk-3.0的开发包,因此:
sudo apt-get install libgtk-3-dev libgee-0.8-dev libsecret-1-dev libwebkitgtk-3.0-dev
至于为什么投反对票,不知道为什么最初的投反对票,但我的原因是因为这并不真正属于SO; askubuntu.com或superuser.com会更合适。此外,它是pretty easy to find the answer对于这个问题,所以我怀疑你做了很多研究。
关于linux - 无法为 Linux 构建和安装 Geary,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20459539/