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.
Hi,
I'm newbee with linux. I have installed Mandrake 9.2 on my laptop. Now, I'm tryng to install librairies. Infact I need to install GTK+. But it requires previous installations first: atk, pango and glib libraries. I have downloaded the source of these librairies, copy them into /usr/src, then untar them (tar xvzf). For each librairy, I did:
./configure
make
make install
When I try then to install GTK+, i do:
./configure
An error mesage appears :
"checking for glib-2.0 >= 2.1.4 atk >= 1.0.1 pango >=...package atk was not found in the pkg-config searhc path.
Perhaps you should add the directory containing 'atk.pc' to the PKG_CONFIG_PATH environment variable
No package 'atk' found
configure: error: Library requirements (glib-2.0 >= 2.1.4 atk >= 1.0.1 pango >= 1.0.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your librairies are in a nonstandard prefix so pkg-config can find them."
OK, seems to work. Thank you.
I've just got a problem 'cause I don't have the TIFF library, so I can't execute the make properly (or I have to put arguments not to consider this library). I'm going to download the source, and install this library, and I will see if it's OK.
Or you could let them install where they want, open ~/.bashrc and add the line
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig
Or you could avoid all the hastle of downloading and compiling by just installing them with RpmDrake of the Mandrake CD's. They're mostly called libwhatever2.0-devel-morenumbers.mdk but they are all there.
OK thanks for these information.
Well in fact, I've tried to compile each library, then install them.
For Atk, Glib, Pango, seems to be OK. GTK is apparently OK too, I haven't got the error message (missing libraries) anymore.
But when I try to install Gimp for example (and many other applications), I have another error:
"Checking for gtk-config...no
Checking for GTK-version >= 1.2.8...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 : Test for GTK failed. See the file 'INSTALL' for help."
I think this can be resolved with the solution given in the previous post (adding a line in ~/.bashrc
In fact I was looking where I could modify PKG_CONFIG_PATH, 'cause it was often a cause of problem. Why can't I see this var when i execute the 'env' command ?
Well I've tried to add the line in ~/.bashrc, but it doesn't change anything.
For example, when I try to execute ./configure for the installation of xmms, I get the following error:
"checking for glib-config... no
checking for GLIB - version >= 1.2.2... no
*** 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.2 not installed - please install first ***
I don't understand. For GLIB, i really did :
./configure --prefix=/usr
make
make install
Which is I think the right procedure, isn't it?
Can anyone tell me more about these libraries not found and the way to fix it ???
Well it doesn't work...
I don't understand. I'm sure I've made something wrong, but it's getting on my nerves !!
I have downloaded the source files (for librairies atk, glib, pango) in /usr/local/src.
I untar them in this directory. I've installed them again with 'configure --prefix=/usr', then 'make' and 'make install', all commands as root.
My source files for gtk,gimp,xmms are also in /usr/local/src.
I untar them too, use the same commands.
For gtk, my first install try didn't work, it told me some librairies were not found (atk, glib, pango). So I've configured again those librairies with the command 'configure --prefix=/usr', then 'make' and 'make install'. Then it was possible to configure correctly GTK, to make it and install it (there was few warnings about unreferenced pointers I think during the procedure, is that wrong?)
So I thought it was right. But when I try to install xmms for example (which is rather faster to compile than gimp for testing!!), I've got the same error than the one I've already mentionned (Glib not found):
"
...
checking for pthread.h... yes
checking for glib-config... no
checking for GLIB - version >= 1.2.2... no
*** 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.2 not installed - please install first ***"
I have executed the command 'export PATH=$PATH:/usr/bin' as root, and then try to configure again xmms...Same result !
Please help, I really need to install these applications (just a question, how do I run GTK when I've installed it, I mean I want to develop with it, what do I have to do, is there a special editor, or may I use any editor I want, and compile with a special gtk command??). Linux is a very good system, but a bit hard for newbie as I am...
I will have a try with the RpmDrake, but the problem is that I won't learn anything doing that, so that if I meet the same problem in the future, I won't be able to solve it...
Thanks for your help.
The thing is I had the same problem when I was trying to install XChat, said I needed GTK2. So when I went to install GTK it told me I was missing all those other libraries. So for (in this order) atk -> glib -> pango -> gtk I did...
./configure --prefix=/usr
make
make install
I think I also installed all the dependencies listed on the gtk site with the /usr prefix also, that was probably the first thing.
Then when I installed XChat I'm not sure if I used the /usr prefix or not, but if you haven't yet, give that a try.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.