checking for C compiler default output file name... configure: error: C compiler cannot create executables
解决办法是终端运行
sudo apt-get install libc6-dev
C编译器的问题。
checking for CORE... configure: error: Package requirements (libgnomeui-2.0
No package 'libgnomeui-2.0' found
No package 'gtk+-2.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 CORE_CFLAGS
and CORE_LIBS to avoid the need to call pkg-config.
解决办法
01.sudo apt-get install libgnomeui-dev
02.安装gtk+-2.0
进行了第一步后,因为我知道要安装GTK+很麻烦,所以我继续./configure看看会怎样,结果肯定是出错的,不过就有点意外
hecking for APPLET... configure: error: Package requirements (libpanelapplet-2.0) were not met:
No package 'libpanelapplet-2.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 APPLET_CFLAGS
and APPLET_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
解决办法:
sudo apt-get install gnome-panel
GTK+的错误倒是不提示了。
再试试./configure,想不到没有错误通过了,再make的时候就错了,那就装了GTK+之后再试试吧,GTK+比我想像中还难装,直接在GTK+的目录就行编译安装(新手,不懂依赖关心),结果当然是出错。
checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.8.5 atk >= 1.9.0 pango >= 1.9.0 cairo >= 0.9.2) were not met:
No package 'glib-2.0' found
No package 'atk' found
No package 'pango' found
No package 'cairo' found
分别上网下载了以上四个安装包,顺便找了别人安装的过程的经历来看,先装glib,提示我要先装Gettext,好像是本地语言支持的,下载,编译安装, 成功。感动,第一个一次就成功编译安装的软件。然后就安装Glib,顺利完成,然后是Atk,但是./configure时就出错了,说找不到Glib, 我明明就装好了的,google了一通才知道是配置环境变量的问题,默认安装软件到/usr/local里的,而默认的环境变量在/usr/lib中,两 种解决办法,指定安装Glib到/usr或者将/usr/local加入环境变量中,我选了第一种,先卸掉Glib,然后重新安装,指定安装路 径./configure --prefix=/usr。