Sas*_*nko 6 programming gcc 12.04 webkit application-development
我尝试使用本手册从源安装 webkit 应用程序:
https://help.ubuntu.com/community/WebKit
当我输入:
./autogen.sh --prefix=/usr
Run Code Online (Sandbox Code Playgroud)
出现以下错误:
checking for _FILE_OFFSET_BITS value needed for large files... 64
configure: error: Compiler GCC >= 4.7 or Clang >= 3.0 is required for C++ compilation
Run Code Online (Sandbox Code Playgroud)
当我输入:
gcc --version
Run Code Online (Sandbox Code Playgroud)
它回应:
gcc (Ubuntu/Linaro 4.7.2-11precise2) 4.7.2
Run Code Online (Sandbox Code Playgroud)
因此该错误与 gcc 版本无关。为什么执行失败?
编辑:通过将 g++ 更新到 4.7 解决了以前的问题。但进一步发生以下错误:
checking for GAIL... no
configure: error: Package requirements (gail-3.0 >= 3.0) were not met:
No package 'gail-3.0' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables GAIL_CFLAGS
and GAIL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Run Code Online (Sandbox Code Playgroud)
我有 apt-get install gail-3.0,但错误仍然存在。
编辑: 也做了:
apt-get install gail-3.0-dev
apt-get build-dep webkit
Run Code Online (Sandbox Code Playgroud)
但进一步丢失的软件包显示:错误:未满足软件包要求(libsoup-2.4 >= 2.40.0):
Requested 'libsoup-2.4 >= 2.40.0' but version of libsoup is 2.38.1
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBSOUP_CFLAGS
and LIBSOUP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Run Code Online (Sandbox Code Playgroud)
问题中提到的 PPA 对于 12.04 来说已经过时了,因此您必须禁用它并找到有关从源代码构建 webkit 的其他说明。此外,还必须有人编辑维基。
看起来 webkit 现在已经在libwebkitgtk-3.0-0. 试试这些:
sudo apt-get build-dep libwebkitgtk-3.0-0
apt-get source libwebkitgtk-3.0-0
cd webkit-*
dpkg-buildpackage
Run Code Online (Sandbox Code Playgroud)
如果它有效的话我会编辑维基。
| 归档时间: |
|
| 查看次数: |
5048 次 |
| 最近记录: |