我按照以下说明进行操作:https://help.ubuntu.com/community/WebKit
运行时出现错误./autogen.sh --prefix=/usr
,提示:
conftest.c:28:18: fatal error: glib.h: No such file or directory
compilation terminated.
答案1
您很可能没有按照提示安装开发库。运行此命令并重试:
sudo apt-get install subversion gtk-doc-tools autoconf automake libtool libgtk2.0-dev libpango1.0-dev libicu-dev libxslt-dev libsoup2.4-dev libsqlite3-dev gperf bison flex libjpeg62-dev libpng12-dev libxt-dev autotools-dev libgstreamer-plugins-base0.10-dev libenchant-dev libgail-dev
答案2
打开终端并输入
apt-cache search glib
它将显示一些软件包并使用以下命令安装 glib 包
sudo apt-get install packagename
ps:我要去我的 ubuntu 系统给出确切的命令