gtk+-2.10.的安装 ./configure总是通不过

软件和网站开发以及相关技术探讨
回复
zxy88352599
帖子: 7
注册时间: 2007-08-18 19:16
来自: 江苏

gtk+-2.10.的安装 ./configure总是通不过

#1

帖子 zxy88352599 » 2008-04-21 22:20

zxy@zxy-desktop:~/gtk+-2.10.9$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for native Win32... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... cat: /etc/ld.so.conf.d/*.conf: No such file or directory
GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... cat: /etc/ld.so.conf.d/*.conf: No such file or directory
GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for nm... /usr/bin/nm -B
checking whether to enable maintainer-specific portions of Makefiles... no
checking for some Win32 platform... no
checking whether build environment is sane... yes
checking for library containing strerror... none required
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.12.0 atk >= 1.9.0 pango >= 1.12.0 cairo >= 1.2.0) were not met:

No package 'glib-2.0' found
No package 'atk' found
No package 'pango' found
No package 'cairo' 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 BASE_DEPENDENCIES_CFLAGS
and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

zxy@zxy-desktop:~/gtk+-2.10.9$ make
make: *** 没有指明目标并且找不到 makefile。 停止。




弄了一个晚上了 急死了
头像
dangch04
帖子: 2
注册时间: 2008-04-20 13:55

#2

帖子 dangch04 » 2008-04-21 22:37

试一试下面的包:
apt-get install libglib2.0-0 libatk libpango libcairo
就可以解决当前问题
zxy88352599
帖子: 7
注册时间: 2007-08-18 19:16
来自: 江苏

#3

帖子 zxy88352599 » 2008-04-22 21:22

上面的命令我试过了 不行出现了下面的
zxy@zxy-desktop:~$ sudo apt-get install libglib2.0-0 libatk libpango libcairo
Password:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
读取状态信息... 完成
libglib2.0-0 已经是最新的版本了。
E: 无法找到软件包 libatk
zxy88352599
帖子: 7
注册时间: 2007-08-18 19:16
来自: 江苏

#4

帖子 zxy88352599 » 2008-04-22 21:23

是不是开始还要先装些别的东西我昨晚弄了一个晚上了 快疯了
头像
dangch04
帖子: 2
注册时间: 2008-04-20 13:55

#5

帖子 dangch04 » 2008-04-22 22:19

我只是简写了那些包,比如说 atk 就应当是apt-get install libatk1.0-dev 。
zxy88352599
帖子: 7
注册时间: 2007-08-18 19:16
来自: 江苏

#6

帖子 zxy88352599 » 2008-04-23 10:50

我快弄好了 还有一个错误估计一个小时就好了
学了两招 sudo apt-cache search ***可以找到缺少的文件
然后再给你说的一样装上就行了


谢谢你的帮助
RL11
帖子: 10
注册时间: 2007-07-20 18:51

#7

帖子 RL11 » 2008-04-29 19:46

楼主解决问题没,GTK+依赖的包很多,我都一一安装上了,但最后还是,哎

源码安装gtk+-2.12.9
解决依赖安装了:gettext-0.17,glib-2.16.3,tiff-3.8.2,zlib-1.2.3,libpng-1.2.25,jpeg-6b,freetype-2.3.5,libxml-2.0,fontconfig-2.5.91,cairo-1.4.14,libiconv-1.12,pango-1.20.0,atk-1.22.0,

终于把依赖安装完了,但安装gtk+-2.12.9时
checking for X... no
configure: error: X development libraries not found

不明白怎么会X development libraries not found

sudo apt-get install gnome-devel gnome-dev-doc
安装但又
再最后出现:
Processing triggers for libc6 ...
ldconfig deferred processing now taking place

连终端打不开(打开后自动关闭),重启后,进入登陆界面,弹出输入用户名的界面,随即又自动关闭,一直这么弹出关闭,进不了图形系统。

不知楼主怎样解决的,多多指教下!
zxy88352599
帖子: 7
注册时间: 2007-08-18 19:16
来自: 江苏

#8

帖子 zxy88352599 » 2008-05-14 12:59

我的弄好了
 2、GTK的安装

  sudo apt-get install vim #使用vim来编写代码,当然您可以使用任何自己喜欢的编辑器。

  sudo apt-get install build-essential #这将安装gcc/g++/gdb/make 等基本编程工具。

  sudo apt-get install gnome-core-devel #这将安装 libgtk2.0-dev libglib2.0-dev 等开发相关的库文件。

  sudo apt-get install pkg-config #用于在编译GTK程序时自动找出头文件及库文件位置。

  sudo apt-get install devhelp #这将安装 devhelp GTK文档查看程序。

  sudo apt-get install libglib2.0-doc libgtk2.0-doc #这将安装 gtk/glib 的API参考手册及其它帮助文档。

  sudo apt-get instal glade libglade2-dev #这将安装基于GTK的界面构造程序。
直接弄这些就行了,我的测试编译都好了
#include <gtk/gtk.h>

int main(int argc,char* argv[])
{
GtkWidget *wnd;
gtk_init(&argc,&argv);

wnd=gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_widget_show(wnd);

gtk_main();
return 0;
}
gcc `pkg-config --cflags --libs gtk+-2.0` -o p16.0 p16.1.c
zxy@zxy-desktop:~/work/cdrom0/chapter16$ ls
p16.0
头像
bearscafe
帖子: 694
注册时间: 2007-05-05 23:11

Re: gtk+-2.10.的安装 ./configure总是通不过

#9

帖子 bearscafe » 2008-05-23 18:39

zxy88352599 写了:zxy@zxy-desktop:~/gtk+-2.10.9$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c^

弄了一个晚上了 急死了
记住安装后面带上-dev的包
头像
HuntXu
帖子: 5776
注册时间: 2007-09-29 3:09

#10

帖子 HuntXu » 2008-05-31 3:37

为什么configure出error还要make呢?
还不会编译?
HUNT Unfortunately No Talent...
chasye
帖子: 333
注册时间: 2007-05-13 15:20

#11

帖子 chasye » 2008-05-31 10:29

生成环境:
apt-get build-dep libgtk2.0-0
Killdog1982
帖子: 54
注册时间: 2008-06-30 11:02

#12

帖子 Killdog1982 » 2008-07-09 15:14

zxy88352599 写了:我的弄好了
 2、GTK的安装

  sudo apt-get install vim #使用vim来编写代码,当然您可以使用任何自己喜欢的编辑器。

  sudo apt-get install build-essential #这将安装gcc/g++/gdb/make 等基本编程工具。

  sudo apt-get install gnome-core-devel #这将安装 libgtk2.0-dev libglib2.0-dev 等开发相关的库文件。

  sudo apt-get install pkg-config #用于在编译GTK程序时自动找出头文件及库文件位置。

  sudo apt-get install devhelp #这将安装 devhelp GTK文档查看程序。

  sudo apt-get install libglib2.0-doc libgtk2.0-doc #这将安装 gtk/glib 的API参考手册及其它帮助文档。

  sudo apt-get instal glade libglade2-dev #这将安装基于GTK的界面构造程序。
直接弄这些就行了,我的测试编译都好了
#include <gtk/gtk.h>

int main(int argc,char* argv[])
{
GtkWidget *wnd;
gtk_init(&argc,&argv);

wnd=gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_widget_show(wnd);

gtk_main();
return 0;
}
gcc `pkg-config --cflags --libs gtk+-2.0` -o p16.0 p16.1.c
zxy@zxy-desktop:~/work/cdrom0/chapter16$ ls
p16.0
你说的前两步我可以通过,但是到安装gnome-core-devel时就说无法找到安装包,我的是8。04版,而且我的无法上网,我是用载的dvd做的源,来更新的,该怎么办呢?
回复