LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ./configure problems (https://www.linuxquestions.org/questions/linux-software-2/configure-problems-194646/)

jsaxton86 06-17-2004 12:52 PM

./configure problems
 
Hello,

I am relatively new to Linux. I have been running various distributions for about 2 weeks, and decided to stick with SuSE 9.1, which I have been using for about the past week. Today I tried to install aMule, a cross platform eDonkey client. I followed the installation instructions (amule.org/wiki/index.php/Compilation_Installation I can't post URLs yet, I need 5 posts) to a T, and I thought everything had been done sucessfully. However, after I installed the aMule tarball it would not work. I tried reinstalling everything, and finally but I came across an error while trying to install wxGTK+ (well, technically it was when I typed ./configure). It basically refused to install, for reasons I cannot decipher. Here is the log:

Code:

linux:/home/john/wxGTK-2.4.2 # ./configure --prefix=/usr --disable-gtk2 --with-gtk && make
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
loading argument cache configarg.cache
checking for --enable-gui... yes
... (this part was omitted, becasue it simply says "checking for XXX"
checking for GTK+ version...
checking for gtk-config... no
checking for GTK - version >= 1.2.7... 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 gtk-config... (cached) no
checking for GTK - version >= 1.2.3... 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.
configure: error:
Please check that gtk-config is in path, the directory
where GTK+ libraries are installed (returned by
'gtk-config --libs' command) is in LD_LIBRARY_PATH or
equivalent variable and GTK+ is version 1.2.3 or above.

Logically, I downloaded the latest GTK+ libraries (2.4.3). I ran ./configure and ran into problems, again.

Code:

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 freedesktop.org/software/pkgconfig to get pkg-config. (can't post URLs, sorry)
configure: error: Library requirements (glib-2.0 >= 2.4.0    atk >= 1.0.1    pango >= 1.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

Again, I did the logical thing and went to freedesktop.org/software/pkgconfig to get pkg-config (0.15.0). Something finally appeared to install without errors, logs (lengthy and probably not important) will be posted at request.

Now that pkg-config was installed I went back to installing GTK+. Again, I got the same error when I tried to run ./configure. I got the same error.

Code:

*** 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 freedesktop.org/software/pkgconfig to get pkg-config.
configure: error: Library requirements (glib-2.0 >= 2.4.0    atk >= 1.0.1    pango >= 1.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

I know for a fact that I have pkg-config now. I would assume that I would just have to tell the installer (my semantics are probably wrong, please correct me and forgive me if this is so) where it is (that is what I assumed the error message was saying anyway). I couldn't figure out how to do this, and google wasn't much help (I probably didn't know how to go around looking for what I needed). Any help would be greatly appriciated.

Thanks!

aliiscool 06-17-2004 01:07 PM

Library requirements (glib-2.0 >= 2.4.0 atk >= 1.0.1 pango >= 1.4.0)

umm do u have those deps? its probably one of those thats giving you hell.

darkarcon2015 06-17-2004 01:14 PM

Oh boy, I had these same problems when using KNOPPIX 3.4, what a hassel. I eventually stopped trying to get it to work. Good luck.

Andrew Benton 06-17-2004 01:22 PM

I notice you ./configured wxGTK with --prefix=/usr, where did you install pkg-config? If you didn't use --prefix=/somewhere it will install in the default location, /usr/local, with the actual pkg-config binary in /usr/local/bin. Is /usr/local/bin not in your $PATH? To find out use
echo $PATH

slakmagik 06-17-2004 01:23 PM

You need to
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
or wherever the 'pc' files are.

Why they say 'the PKG_CONFIG environment variable' when it seems to be the 'PKG_CONFIG_PATH environment variable', I dunno. Maybe it is, but I got an annoying tarball or two (or several) to work with that.

jsaxton86 06-17-2004 01:27 PM

Thanks fro your responses; I really appriciate them.

Ok, I tried resolving those dependencies, but ran into similar problems. I started with glib. When I ran ./configure I got:

Code:

checking for pkg-config... no
configure: error: *** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/

Next I tried to install ATK. Here's the error I got when I ran, guess what, ./configure

Code:

checking for pkg-config... no
checking for GLIB - version >= 2.0.0... no
*** A new enough version of pkg-config was not found.
*** See http://www.freedesktop.org/software/pkgconfig/
configure: error:
*** GLIB 2.0.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/.

GLIB is a dependency, but it wouldn't install, so there wasn't anything I could do about that except move on to pango. Of course, when I ran .configure it asked me to get pkg-config again. I probably just need to the installer where it is. I can't seem to figure that out. Again, any help is greatly appriciated.

Thanks!

foo_bar_foo 06-17-2004 03:34 PM

Re: ./configure problems
 
Quote:

Originally posted by jsaxton86
be posted at request.

Now that pkg-config was installed I went back to installing GTK+. Again, I got the same error when I tried to run ./configure. I got the same error.


whenever you fix a configure error make sure you delete the config.cache file in the top dir
or better yet just delete the entire folder and untar again to get a new start........
some rocket scientist along the way decided to have some configure
scripts "remember" cache errors and then just repeat them without actually retrying.

l32 06-18-2004 12:00 AM

I have similar problem with you when I tried to install aMule. However I tried to use the RPM installers and all worked well.

I used Mandrake 10 however, I'm not sure about SUSE. since I'm a newbie too.


All times are GMT -5. The time now is 08:31 PM.