Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.