Click to See Complete Forum and Search --> : ./configure errors related to GTK and SDL.


Captain Penguin
05-06-2001, 02:37 PM
I am using Mandrake 8.0, and after extracting the tar.gz of some programs, such as the GIMP and XMPS, I cd into the directory and run ./configure.

With those programs and others, I get one or both of the following messages-

checking for gtk-config... (cached) no
checking for GTK - version >= 1.2.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.


checking for sdl-config... (cached) no
checking for SDL - version >= 1.1.5... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.

Then, if I run make I get this- (this example is from XMPS)-

libxmps_config.h:39:18: glib.h: No such file or directory
make[2]: *** [libxmps_config.lo] Error 1
make[2]: Leaving directory `/home/will/xmps-0.2.0/libxmps'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/will/xmps-0.2.0'
make: *** [all-recursive-am] Error 2



I'm pretty sure this is all related to /etc/ld.so.conf, and my PATH. but I'm not sure what exactly I need to do!

Someone has also told me that the compile error here, and another compile error found when I try "make" in nVclock (a NVIDIA overclocking program) might be related to egcs being installed.

Can someone please help me out here? This is a mite frustrating! :mad:

Helius
05-07-2001, 09:12 AM
Try to (re)install GTK and SDL. Get the sources from Freshmeat (http://freshmeat.net) and install it... .

Captain Penguin
05-07-2001, 02:26 PM
Originally posted by Helius:
<STRONG>Try to (re)install GTK and SDL. Get the sources from Freshmeat (http://freshmeat.net) and install it... .</STRONG>


No, I believe I've tried that and it doesn't work. I'm pretty sure this has to do with my PATH, but thats all I know.

but, since you suggested it and I am willing to try anything, I will give it a shot :)

Yvraine
05-07-2001, 03:57 PM
Can you find what PREFIX is?

I believe PREFIX is the directory path to where you're installing the package -- it's an environmental variable, like PATH. So if you were untarring and configuring everything in /usr/src, then PREFIX would be "/usr/src" and PREFIX/bin would, naturally, be "/usr/src/bin".

Which means that if you're doing this in some out of the way corner of your directory structure, like /misc/random/crap, that your PATH has never heard of, then you'll get an error like the one you got.

Somebody correct me if I'm in any way wrong.

Helius
05-07-2001, 04:01 PM
I had an similar problem some time ago, and reinstalling it (from their sources) helped. So I would try to go that way...

[ 07 May 2001: Message edited by: Helius ]

Captain Penguin
05-07-2001, 05:28 PM
Originally posted by Yvraine:
<STRONG>Can you find what PREFIX is?

I believe PREFIX is the directory path to where you're installing the package -- it's an environmental variable, like PATH. So if you were untarring and configuring everything in /usr/src, then PREFIX would be "/usr/src" and PREFIX/bin would, naturally, be "/usr/src/bin".

Which means that if you're doing this in some out of the way corner of your directory structure, like /misc/random/crap, that your PATH has never heard of, then you'll get an error like the one you got.

Somebody correct me if I'm in any way wrong.</STRONG>

I like your thinking! I'll have to try that, it might save me the trouble of downloading and installing a new distro (I'm downloading Slackware as I type :D )

Captain Penguin
05-07-2001, 06:33 PM
Well this is not working out well! I've tried your suggetions, and I still get the same results. I've tried compiling everything in /usr/src, /usr/bin, and /usr. I've made sure the right lines are in /etc/ld.so.conf. I've tried to make sure that my PATH is set up correctly, but I'm not even sure about that yet. there is /root/.bashrc which has a "PATH=" line, and then there is /etc/profile which also has a "PATH=" line.

I've tried reinstalling... SDL reinstalled fine, then I reinstalled Glib (since it is required for GTK). then, I tried to install GTK, and I got-


*** The glib-config script installed by GLIB could not be found
*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GLIB_CONFIG environment variable to the
*** full path to glib-config.
configure: error:
*** GLIB 1.2.8 or better is required. The latest version of GLIB
*** is always available from ftp://ftp.gtk.org/.

Look familiar? this is frustrating! :mad: