GTK installed, yet ./configure can't find it
So the two programs I've tried to compile, XMMS and Gimp, cannot find GTK+. I've tried everything, so can someone help me?
I've tried doing URPMI GTK+ and it says everything is installed. |
Quote:
have you installed libgtk+1.2-devel, like I suggested to you in this post? http://www.linuxquestions.org/questi...02#post1091602 You aren't going to get anywhere until you do.... EDIT: You'll need libgtk+2.0_0-devel and possibly libgtk+-x11-2.0_0-devel for gimp as well. |
Quote:
[root@localhost ken]# urpmi libgtk+ The following packages contain libgtk+: libgtk+mdk0.1_6 libgtk+-x11-2.0_0 libgtk+-linuxfb-2.0_0-devel libgtk+1.2 libgtk+mdk0.1_6-devel libgtk+1.2-devel libgtk+extra0-devel libgtk+-linuxfb-2.0_0 libgtk+extra0 libgtk+2.0_0-devel libgtk+-x11-2.0_0-devel libgtk+2.0_0 [root@localhost ken]# urpmi libgtk+2.0_0-devel Everything already installed [root@localhost ken]# urpmi libgtk+-x11-2.0_0-devel Everything already installed So as you can see, everything is "installed" already. So how do I get these programs to recognize these things?? |
What errors are you getting?
|
Quote:
[ken@localhost gimp-2.0.4]$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes 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 ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for a sed that does not truncate output... /bin/sed checking for egrep... 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 fort77... no checking for fl32... no checking for af77... no checking for f90... no checking for xlf90... no checking for pgf90... no checking for epcf90... no checking for f95... no checking for fort... no checking for xlf95... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for gfortran... 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 static flag works... yes checking if gcc supports -fno-rtti -fno-exceptions... yes checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC 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... 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++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes appending configuration tag "F77" to libtool checking whether to enable maintainer-specific portions of Makefiles... no checking for target architecture... i686-pc-linux-gnu checking for some Win32 platform... no checking for native Win32... no 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 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 whether to turn on debugging... no checking whether to turn on profiling... no checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for ANSI C header files... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... yes checking whether time.h and sys/time.h may both be included... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/times.h usability... yes checking sys/times.h presence... yes checking for sys/times.h... yes checking for sys/wait.h... (cached) yes checking for unistd.h... (cached) yes checking for pid_t... yes checking return type of signal handlers... void checking for vprintf... yes checking for _doprnt... no checking for working alloca.h... yes checking for alloca... yes checking for difftime... yes checking for putenv... yes checking for mmap... yes checking for perl... /usr/bin/perl checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking for LC_MESSAGES... yes checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking for dgettext in libc... yes checking for bind_textdomain_codeset... yes checking for msgfmt... /usr/bin/msgfmt checking for dcgettext... yes checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... /usr/bin/xgettext checking for catalogs to be installed... ca cs da de el en_CA en_GB es eu fi fr ga gl he hu hr id it ja ko lt ms nl no pl pt pt_BR ro ru sk sr sr@Latn sv tr uk vi yi zh_CN zh_TW checking for pkg-config... /usr/bin/pkg-config checking for GLIB - version >= 2.2.0... yes (version 2.2.1) checking for gmodule-2.0 gobject-2.0... yes checking GMODULE_CFLAGS... -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include checking GMODULE_LIBS... -Wl,--export-dynamic -lgmodule-2.0 -ldl -lgobject-2.0 -lglib-2.0 checking for bind_textdomain_codeset... (cached) yes checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for pkg-config... (cached) /usr/bin/pkg-config checking for GTK+ - version >= 2.2.2... no *** Could not run GTK+ test program, checking why... *** The test program failed to compile or link. See the file config.log for the *** exact error that occured. This usually means GTK+ is incorrectly installed. configure: error: Test for GTK+ failed. See the file 'INSTALL' for help. |
What is the output of:
# cat /usr/lib/pkgconfig/gtk+-2.0.pc EDIT: Also, can you find the exact error in config.log |
Quote:
[root@localhost ken]# cat /usr/lib/pkgconfig/gtk+-2.0.pc prefix=/usr exec_prefix=/usr libdir=/usr/lib includedir=/usr/include target=x11 gtk_binary_version=2.2.0 gtk_host=i586-mandrake-linux-gnu Name: GTK+ Description: GIMP Tool Kit (${target} target) Version: 2.2.1 Requires: gdk-${target}-2.0 atk Libs: -L${libdir} -lgtk-${target}-2.0 Cflags: -I${includedir}/gtk-2.0 |
I am unable to post my config.log. It says it's too long of a post, which it is. :(
|
Quote:
Quote:
|
Quote:
|
Quote:
Quote:
I have never used Mandrake, it uses RPMs right? (I hve never used Mandrake or an RPM based distro) If the above is right, you can look for an RPM package for a greater version of GTK2. Alternatively you can build the latest (stable) version from source. It is not as hard as everyone makes out, but you need to build the prerequisites in the following order. I would remove the existing equivalent packages if you have them installed beforehand - this may mean you have to build it from a console. pkgconfig-0.15.0 libpng-1.2.5 jpegsrc.v6b tiff-v3.6.1 glib-2.4.5 pango-1.4.1 atk-1.6.1 gtk2-2.4.4 Have a look at http://www.linuxfromscratch.org/blfs/view/stable for how to build the individual packages. Remeber... if you don't try stuff you don't learn anyhing. |
Ah, yes, that makes sense. Thanks for pointing out the error. I may post in this again if I have trouble compiling from source. Wish me luck!
|
Try to make sure that where you install something is on your path.
Try echo $PATH and then install the library in that part. Good luck. |
All times are GMT -5. The time now is 12:25 AM. |