LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 06-01-2004, 07:54 AM   #1
kaega2
Member
 
Registered: Sep 2003
Location: Ontario, Canada
Distribution: Gentoo 2004.3
Posts: 195

Rep: Reputation: 30
Unable to compile from source... can't find GTK


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".

Can anybody help me?

Thanks
 
Old 06-01-2004, 08:46 AM   #2
RockmanExe
Member
 
Registered: Aug 2003
Distribution: Mandriva, Slackware
Posts: 265

Rep: Reputation: 30
i guess you need to install gtk+2.0-devel package

hope this helps
 
Old 06-01-2004, 09:54 AM   #3
kaega2
Member
 
Registered: Sep 2003
Location: Ontario, Canada
Distribution: Gentoo 2004.3
Posts: 195

Original Poster
Rep: Reputation: 30
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.
 
Old 06-01-2004, 10:23 AM   #4
RockmanExe
Member
 
Registered: Aug 2003
Distribution: Mandriva, Slackware
Posts: 265

Rep: Reputation: 30
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)

Regards
 
Old 06-01-2004, 12:08 PM   #5
doug_s
Member
 
Registered: Apr 2004
Posts: 82

Rep: Reputation: 15
kaega2:

mplayer needs the -devel rpm for gtk+1.2 not 2.0. I ran into that one myself a few days ago.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to compile source files Hallowedpoint Linux - Newbie 6 11-19-2005 08:02 AM
First Post! Unable to compile source code J--Lew Linux - Newbie 5 08-16-2005 03:17 PM
Unable to find kernel-source for Red Hat Enterprise 4 skleed Linux - Software 1 06-15-2005 10:42 AM
Completely unable to compile anything from source, 9.1 Personal Baddox SUSE / openSUSE 3 12-03-2004 11:04 AM
Unable To Find Slack 9.0 Kernel Source shannonharvey Slackware 5 04-01-2003 01:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 07:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration