LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2055|回复: 5

install gtk

[复制链接]
发表于 2002-6-21 17:25:11 | 显示全部楼层 |阅读模式
hi 北南南北:
i download these  at ftp://ftp.gtk.org/pub/gtk/v2.0/
and look it mannal http://developer.gnome.org/doc/API/2.0/gtk/gtk-building.html

gtk+-2.0.5.tar.bz2
atk-1.0.2.tar.gz
glib-2.0.4.tar.gz
pango-1.0.3.tar.gz


here i have some questions and  occure some matter
1.why must downloads atk glib and pango? how to use these?
2.when i execute ./configure --prefix=/opt/gtk
it show :
*****************************************************************************************************
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking for C compiler default output... 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 build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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 dependant libraries... pass_all
checking command to parse /usr/bin/nm -B output... 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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
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 if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether -lc should be explicitly linked in... no
creating libtool
checking whether to enable maintainer-specific portions of Makefiles... no
checking for some Win32 platform... no
checking for native Win32... no
checking whether build environment is sane... yes
checking for strerror in -lcposix... no
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... no
*** The pkg-config script could not be found. Make sure it is
*** in your path, or set the PKG_CONFIG environment variable
*** to the full path to pkg-config.
*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config.
configure: error: Library requirements (glib-2.0 >= 2.0.1 atk >= 1.0.1 pango >= 1.0.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

***********************************************************************************************
must i install glib atk and pango first and then install gtk?
发表于 2002-6-21 17:39:55 | 显示全部楼层
兄弟,你用的是什么系统,哪个版本的?
 楼主| 发表于 2002-6-21 17:53:56 | 显示全部楼层

sorry!

os rh7.2
发表于 2002-6-21 17:55:17 | 显示全部楼层

那就用RPM了。。。

兄弟,请看!
ftp://ftp.gtk.org/pub/gtk/v2.0/binary/old/RedHat-7.2/RPMS/i386/
rpm安装最简单。。。。。试一下吧。。有问题再发帖。。。
不要急,这就是学习。。。
 楼主| 发表于 2002-6-21 19:35:13 | 显示全部楼层
是呀,这里都是.rpm,不过很多呀,是不是还是把gtk,atk,glib,pango,这几个下了,一个一个的安呀,难道没有一个总的.rpm的那种吗?
发表于 2002-6-21 19:54:38 | 显示全部楼层

其实安装很简单。。。。

把上面那些rpm都DOWN下来到一个文件夹。。。然后在控制台下输入:
#cd [你DOWN下RPM的文件夹]
#rpm -ivh *.rpm
这样全都OK了。。。。试一下,有问题再发帖,兄弟,不要急。这就是学习。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表