MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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 here to ask help for a problem that I've had since installing linux almost a year ago that I've yet to be able to solve.
When I tried to compile a program from source (including Gaim, mplayer and my newest program snes9express) I get the following message
checking for gtk+-2.0 >= 2.0.0... Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
Now, everytime I run into this problem and ask for help I usually get steps that don't work or work arounds that work for the program that I have. People show me where to get RPM's and showed me how to compile mplayer without gmplayer and that fixed those issues, but I would like to be able to compile from source myself.
I've tried doing "./configure --prefix=/usr/local/lib/pkg-config" and just "./configure --prefix=/usr". I think the answer would be just doing what it said and adding the path to the PKG_CONFIG_PATH varible but I just don't know how to do that
I also tried installing GTK with a different prefix but I get a similar error when I try, it says that it's missing something it's self. If I log in as root and type "urpmi gtk+2.0" I get the message "everything already installed".
Well rockmanexe, I've been told that before too and it never worked. But... while going to install it to show you what it said when I did install it I managed to figure out my problem, and I'm going to write it out step by step. I've had this problem since I started using mandrake 9.0. I've seen many other people with the same problem and anybody who DID solve the problem would just simply post "I figured it out, thanks"
For mandrake users who have this problem, here's what solved it for me.
you have to log in as root at the terminal (su)
# urpmi libgtk+2.0_0-devel
the actual number on the package may be different if you're using a different version of mandrake, check by typing
# urpmi devel
once you do that you will be prompted if you really want to install the package and all of it's dependancies. Type '"y" for yes and then when it's finished the problem will be solved, at least for me it was.
Oh, and thanks for the advice RockmanExe. What can I say... you were right.
Glad to know i helped a bit. I had the same problem a couple days ago also compling new stuff in mdk10. This solved it.
I don't remember having this issue In mdk 9.1. From the very install, i checked the 'development' box at selecting packages step, and everything worked great. (i did the same kind of installation in mdk 10, btw with the resulting problems)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.