webkit building error:configure: error: Compiler GCC >= 4.7 or Clang >= 3.0 is required for C compil

I tried to install the webkit applicaion from sources using this manual:

https://help.ubuntu.com/community/WebKit

When I type:

./autogen.sh --prefix=/usr

the following error occurs:

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

When I type:

gcc --version

It responds:

gcc (Ubuntu/Linaro 4.7.2-11precise2) 4.7.2

Hence the error does not concern gcc version. Why the execution fails?

Edited: Previous problem is solved by updating g++ to 4.7. But the following error occurs further:

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.

I have apt-get install gail-3.0, but the error remains.

Edited:Also did:

apt-get install gail-3.0-dev
apt-get build-dep webkit

But further missing packages revealed: error: Package requirements (libsoup-2.4 >= 2.40.0) were not met:

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.
share improve this question
 
My guess is your G++ is older than your gcc –  hbdgaf Mar 17 at 22:40
 
3 
apt-get install gail-3.0-dev. Why don't you just apt-get build-dep whatever package contains webkit instead of fighting with this? –  hbdgaf Mar 18 at 5:27
1 
Agreed with @AbrahamVanHelpsing. Please read through the help document you linked to, it gives you a list of what to do, including what you need to install. –  Thomas W. Mar 18 at 6:20
2 
show 8 more comments

The PPA mentioned in the question is greatly outdated for 12.04 hence you have to disable it and find another instructions on building webkit from source. Additionally, someone has to edit the wiki.

Looks like webkit is now in libwebkitgtk-3.0-0. Try these:

sudo apt-get build-dep libwebkitgtk-3.0-0
apt-get source libwebkitgtk-3.0-0
cd webkit-*
dpkg-buildpackage

I'll edit the wiki if it works.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值