gtk安装老是不成功

软件和网站开发以及相关技术探讨
回复
vitamin
帖子: 247
注册时间: 2008-09-23 21:13

gtk安装老是不成功

#1

帖子 vitamin » 2009-04-28 16:18

老是说缺这个缺那个,什么版本太低什么的,有没有sudo apt-get install gtk**的啊? 怎么解决呢?
念几句佛经就以为自己在悟道,引用几句圣经就以为自己是上帝的使者。
躲在阴暗的角落就以为看不见你那肮脏的灵魂?
游走在灰色领域就以为安然无恙?
举头三尺有神明,不是不报是时候未到。
头像
想入非非
帖子: 8078
注册时间: 2008-07-14 22:42
来自: Beijing
联系:

Re: gtk安装老是不成功

#2

帖子 想入非非 » 2009-04-28 18:08

你说的主题的问题么? :em20
Ubuntu User
vitamin
帖子: 247
注册时间: 2008-09-23 21:13

Re: gtk安装老是不成功

#3

帖子 vitamin » 2009-04-28 21:19

./configure 出现下面的信息,然后make 说maxwu@maxwu-desktop:~/ccc/gtk+-2.16.1$ make
make: *** 没有指明目标并且找不到 makefile。 停止。

下面是configure的详细信息 :em20 :em06
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 c++... no
checking for g++... no
checking for gcc... gcc
checking whether we are using the GNU C++ compiler... no
checking whether gcc accepts -g... no
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 fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
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 for dlfcn.h... yes
checking for g++... (cached) gcc
checking whether we are using the GNU C++ compiler... (cached) no
checking whether gcc accepts -g... (cached) no
checking dependency style of gcc... (cached) gcc3
checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/home/maxwu/ccc/gtk+-2.16.1':
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) 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... 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 ./config.lt
config.lt: creating 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 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.19.7 atk >= 1.13.0 pango >= 1.20 cairo >= 1.6) were not met:

Requested 'glib-2.0 >= 2.19.7' but version of GLib is 2.16.6
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.
念几句佛经就以为自己在悟道,引用几句圣经就以为自己是上帝的使者。
躲在阴暗的角落就以为看不见你那肮脏的灵魂?
游走在灰色领域就以为安然无恙?
举头三尺有神明,不是不报是时候未到。
头像
想入非非
帖子: 8078
注册时间: 2008-07-14 22:42
来自: Beijing
联系:

Re: gtk安装老是不成功

#4

帖子 想入非非 » 2009-04-29 0:07

打开新立得管理器
搜索glib-2.0,找到libglib2.0-dev标记安装,你的版本似乎太低,或者到网上寻找最新的包安装
搜索atk,找到libatk1.0-dev安装
搜索pango,libpango1.0-dev安装
搜索cairo,找到libcairo2-dev安装
编译程序首先必须./configure通过没有报错,才能make,不然没有什么意义 :em20
Ubuntu User
vitamin
帖子: 247
注册时间: 2008-09-23 21:13

Re: gtk安装老是不成功

#5

帖子 vitamin » 2009-04-29 8:44

非常感谢想入非非的解答 :em03
但是好像glib-2.0还是不行,找了一下新得立里又好像没有更高的版本,咋办?
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.19.7 atk >= 1.13.0 pango >= 1.20 cairo >= 1.6) were not met:

Requested 'glib-2.0 >= 2.19.7' but version of GLib is 2.16.6

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.
念几句佛经就以为自己在悟道,引用几句圣经就以为自己是上帝的使者。
躲在阴暗的角落就以为看不见你那肮脏的灵魂?
游走在灰色领域就以为安然无恙?
举头三尺有神明,不是不报是时候未到。
vitamin
帖子: 247
注册时间: 2008-09-23 21:13

Re: gtk安装老是不成功

#6

帖子 vitamin » 2009-04-29 8:47

另外如何能够搞的懂这些lib是做什么用的?真不知道那些高手是怎么解决软件的问题的,象google启动不了,他们是如何知道问题所在的呢?
我看了一本linux编程技术详解,依然一头雾水,我还因该看什么呢? :em03
念几句佛经就以为自己在悟道,引用几句圣经就以为自己是上帝的使者。
躲在阴暗的角落就以为看不见你那肮脏的灵魂?
游走在灰色领域就以为安然无恙?
举头三尺有神明,不是不报是时候未到。
xbwee
帖子: 6
注册时间: 2009-03-11 10:48

Re: gtk安装老是不成功

#7

帖子 xbwee » 2009-04-29 18:40

安装的话看看wiki上apt以及aptitude的使用详细介绍就行啦!使用sudo apt-get install package来安装会自动装上所需要的依赖包的不用知道那些一大堆库到底是干嘛的 :em04
编程的话,建议看看autoconfi,automake, makefile,gcc等相关的东东,再熟悉用IDE比如anjuta或者使用 vim也不错。
OK了,在linux下, 正如GTK+的手册中所说:只有想不到的没有做不到的!
GO!GO!GO! :em11
回复