LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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



Reply
 
Search this Thread
Old 07-29-2003, 03:45 PM   #1
EnigmaX
Member
 
Registered: Jul 2003
Distribution: Fedora Core 4
Posts: 107

Rep: Reputation: 15
Can't compile gtk+ programs =\


A simple window display program (the one from the tutorial at gtk.org/) gives me some errors =\. Heres some information about it:

[root@vt-hinsdale2b-28 enigx]# gcc gtktest.c -o gtktest `pkg-config --cflags --libs gtk+-2.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
gtktest.c:1:21: gtk/gtk.h: No such file or directory
[root@vt-hinsdale2b-28 enigx]# echo $PKG_CONFIG_PATH
/usr/local/lib/pkgconfig
[root@vt-hinsdale2b-28 enigx]# locate gtk+-2.0.pc
/home/enigx/gtk+-2.2.2/gtk+-2.0.pc.in
/home/enigx/gtk+-2.2.2/gtk+-2.0.pc
/usr/local/lib/pkgconfig/gtk+-2.0.pc
[root@vt-hinsdale2b-28 enigx]#


Is there an alternate to pkg-config or is there something im doing wrong?

(Note: /home/enigx/gtk+02.2.2/ was the directory where I did the make)
 
Old 07-29-2003, 04:42 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
Do you have gtk*-devel packages?
 
Old 07-29-2003, 08:05 PM   #3
EnigmaX
Member
 
Registered: Jul 2003
Distribution: Fedora Core 4
Posts: 107

Original Poster
Rep: Reputation: 15
pygtk-devel, but not installed

I did a make install for gtk2.2 and thats how I have that.
 
Old 07-30-2003, 04:05 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
i really wouldn't suggest compiling it from source, you may well end up with conflicting versions of gtk
 
Old 07-30-2003, 01:04 PM   #5
EnigmaX
Member
 
Registered: Jul 2003
Distribution: Fedora Core 4
Posts: 107

Original Poster
Rep: Reputation: 15
Is there an alternate way? gtk.org only had the source.

The only devel I have is the one I compiled, but I do have the normal one..

Besides the point, Is there another way I can compile this? Either not using pkg-config or a way to fix it? :/
 
Old 07-31-2003, 07:19 PM   #6
EnigmaX
Member
 
Registered: Jul 2003
Distribution: Fedora Core 4
Posts: 107

Original Poster
Rep: Reputation: 15
Still need help, If anyone could post if they need a bit more info or something it would be helpful :/
 
Old 08-30-2003, 08:34 PM   #7
AZ_Rider
LQ Newbie
 
Registered: Aug 2003
Distribution: Red Hat 9
Posts: 12

Rep: Reputation: 0
gtk2-devel

I have run into this several times now, the error that reads:

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


I understand this to mean I need to install the "gtk2-devel" package.

Does anyone have a list of the dependenies upon dependencies upon more dependencies this insane package requires to get installed and in what order to do it all in? I'm sure I can eventually get it all figured out but it looks at least a couple days worth of work.

This is such an unbelievable pain, I have to think someone has probably documented the process somewhere and I am just too new to Linux to know where to look. Any suggestions?


Thanks in advance,
Rob
 
Old 08-31-2003, 06:04 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
what's the problem, you already know what to do to fix it... and that -devel package won't have any other dependencies (unless of course you don't even have gtk2 installed.. which is very unliekly)
 
Old 08-31-2003, 04:14 PM   #9
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
Re: gtk2-devel

Quote:
Originally posted by AZ_Rider
[B]I have run into this several times now, the error that reads:


Does anyone have a list of the dependenies upon dependencies upon more dependencies this insane package requires to get installed and in what order to do it all in? I'm sure I can eventually get it all figured out but it looks at least a couple days worth of work.
It depends on your distro. If you use apt-get or urpmi to get the missing packages, all dependencies for them will be installed.
 
Old 08-31-2003, 04:52 PM   #10
AZ_Rider
LQ Newbie
 
Registered: Aug 2003
Distribution: Red Hat 9
Posts: 12

Rep: Reputation: 0
gtk2-devel problem details

Here's some detail:

[root@RedHatLinux rob]# rpm -i gtk2-devel-2.2.3-1.1.i386.rpm
warning: gtk2-devel-2.2.3-1.1.i386.rpm: V3 DSA signature: NOKEY, key ID e418e3aaerror: Failed dependencies:
XFree86-devel is needed by gtk2-devel-2.2.3-1.1
atk-devel >= 1.0.0-1 is needed by gtk2-devel-2.2.3-1.1
glib2-devel >= 2.2.0-1 is needed by gtk2-devel-2.2.3-1.1
pango-devel >= 1.2.0-3 is needed by gtk2-devel-2.2.3-1.1

and it goes on like this from there when I try installing the dependencies....

[root@RedHatLinux gtkdep]# rpm -i XFree86-devel-4.3.0-22.1.i386.rpm
warning: XFree86-devel-4.3.0-22.1.i386.rpm: V3 DSA signature: NOKEY, key ID e418e3aa
error: Failed dependencies:
XFree86-libs = 4.3.0-22.1 is needed by XFree86-devel-4.3.0-22.1
fontconfig-devel is needed by XFree86-devel-4.3.0-22.1
pkgconfig is needed by XFree86-devel-4.3.0-22.1
(Rob's note: pkgconfig is installed)

[root@RedHatLinux gtkdep]# rpm -i atk-devel-1.3.5-1.i386.rpm
warning: atk-devel-1.3.5-1.i386.rpm: V3 DSA signature: NOKEY, key ID e418e3aa
error: Failed dependencies:
atk = 1.3.5 is needed by atk-devel-1.3.5-1
glib2-devel >= 2.0.6-3 is needed by atk-devel-1.3.5-1

[root@RedHatLinux gtkdep]# rpm -i glib2-devel-2.2.3-1.1.i386.rpm
warning: glib2-devel-2.2.3-1.1.i386.rpm: V3 DSA signature: NOKEY, key ID e418e3aa
error: Failed dependencies:
pkgconfig >= 1:0.8 is needed by glib2-dev

[root@RedHatLinux gtkdep]# rpm -i pango-devel-1.2.5-1.1.i386.rpm
warning: pango-devel-1.2.5-1.1.i386.rpm: V3 DSA signature: NOKEY, key ID e418e3aa
error: Failed dependencies:
XFree86-devel >= 4.2.99 is needed by pango-devel-1.2.5-1.1
fontconfig-devel >= 2.0 is needed by pango-devel-1.2.5-1.1
freetype-devel >= 2.1.3-3 is needed by pango-devel-1.2.5-1.1
glib2-devel >= 2.2.0-1 is needed by pango-devel-1.2.5-1.1
el-2.2.3-1.1

And then the missing dependencies listed have their own missing dependencies.... Is there something I'm doing wrong?

Thanks again,
Rob
 
Old 08-31-2003, 05:19 PM   #11
LooseCanon
Member
 
Registered: Aug 2003
Location: Canada
Distribution: RH, Fedora, Debian
Posts: 128

Rep: Reputation: 15
Re: gtk2-devel

Quote:
Originally posted by AZ_Rider

Does anyone have a list of the dependenies upon dependencies upon more dependencies this insane package requires to get installed and in what order to do it all in? I'm sure I can eventually get it all figured out but it looks at least a couple days worth of work.
LOL!!!!

Sorry.. shouldn't laugh. hehe. I'm at the point of installation where you are now and I freaked when I saw all these dependencies.

I want to install pan v 0.14.2 and when I ran ./configure it said I needed PKG-CONFIG. So I got that, installed it and now ./configure tells me that I need GLIB and GTHREAD and GOBJECT. Waaaaaaaa?

Gosh I wish I could just get a whole bunch of these files all installed at once. BTW, I'm running SuSE 8.2 "personal" (which kinda sucks because it doesn't install any headers or stuff like that).

I'm a thread or two below/above depending on who responds an when.. check out "how to check version of glib"...
 
Old 08-31-2003, 05:33 PM   #12
AZ_Rider
LQ Newbie
 
Registered: Aug 2003
Distribution: Red Hat 9
Posts: 12

Rep: Reputation: 0
Attempt at apt-get

Thanks Mara for the advice... I'm using Red Hat 9 and I got the version of apt-get for it. Perhaps I am not using it correctly? Here's what happens when I try to use it to install gtk2-devel:

[root@RedHatLinux rob]# apt-get install gtk2-devel
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
gtk2-devel: Depends: atk-devel (>= 1.0.0-1) but it is not going to be installed
Depends: glib2-devel (>= 2.2.0-1) but it is not going to be installed
Depends: gtk2 (= 2.2.1) but 2.2.3-1.1 is to be installed
Depends: pango-devel (>= 1.2.0-3) but it is not going to be installed
E: Broken packages
------------------------------------------------------------------------------
Thanks,
Rob

Last edited by AZ_Rider; 08-31-2003 at 05:53 PM.
 
Old 09-01-2003, 06:29 PM   #13
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
You should try up2date. As far as I know it works similar to urpmi and apt-get (and is designed for RH).

Apt-get problem. Try the following sequence:
apt-get update
apt-get install gtk2-devel
 
Old 09-03-2003, 03:19 AM   #14
AZ_Rider
LQ Newbie
 
Registered: Aug 2003
Distribution: Red Hat 9
Posts: 12

Rep: Reputation: 0
Been there....

...done that.

I have tried the update & install in apt-get many times. I have now used apt-get to install several other things but for some reason with this one it says the 4 dependencies listed by the RPM install basically can't be installed. It also won't install the dependencies directly.

I also tried going through Synaptic, the GUI version of apt-get and got the exact same results.

I am beginning to wonder if this maybe is a RH 9 issue and it would work fine under RH 7 or 8...

Up2Date only updates installed software, it doesn't fetch new software. Red Hat has an "add/remove" applet but it doesn't do dependecies, it just seems like a front end for rpm.

-Rob
 
Old 09-03-2003, 03:55 PM   #15
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
Look at your sources list. Are you sure it's complete?
 
  


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
Programs cannot find GTK+-2.0 scott4957 Linux - Software 7 10-06-2005 12:21 PM
how to make gtk programs kira Programming 1 04-28-2005 08:34 AM
running GTk programs sonu1082 Linux - Software 0 11-04-2004 01:15 AM
Gtk programs not starting?? tearinox Linux - General 2 03-04-2004 06:02 PM
GTK 2.2 Compile? Allen614 Slackware 2 01-05-2003 11:07 PM


All times are GMT -5. The time now is 10:36 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration