LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-07-2005, 07:20 PM   #1
SidewinderASU
LQ Newbie
 
Registered: Jun 2005
Posts: 3

Rep: Reputation: 0
Compiling and Installing GTK+


Ok, I am trying to compile a program called Gwyddion, which uses GTK+, as well as GtkGLExt. I need to compile and install GtkGLExt, but it gives me this error when I run configure:

checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error: GTK+ 2.0 not found

Once this happened, I attempted to compile and install GTK+ 2.6.x. I was able to compile GLib and install it. But then I tried to compile Pango, and confgure gave me this error:

checking for GLIB - version >= 2.5.7... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error:
*** Glib 2.5.7 or better is required. The latest version of
*** Glib is always available from ftp://ftp.gtk.org/.

This is odd, because I just compiled and installed the latest version of GLIB! Is there some environment variables I need to set? How do I deal with old versions that may or may not be installed? I'm a Linux newbie, so this is all very confusing to me. I am using Fedora Core 3, and I have used Yum to update everything. Help!

Chris Anderson
 
Old 07-07-2005, 07:35 PM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Did you run ldconfig as root after make install? You probaby should, and make sure the directory where the libs got installed to is included in /etc/ld.so.conf.

What distrobution do you use? Chances are it'll have glib, gtk and pango packages for you already.
 
Old 07-07-2005, 08:02 PM   #3
SidewinderASU
LQ Newbie
 
Registered: Jun 2005
Posts: 3

Original Poster
Rep: Reputation: 0
I'm using Fedora Core 3. I tried running 'ldconfig', to no avail. Is there some command line options I need? I don't know if the built-in packages for GTK would have worked, because I started screwing with GTK before I tried to compile my program. So I may have messed it up. I wouldn't mind trying to restore those original packages. I thought of doing 'yum remove gtk' or something, and then re-installing it. But that would also uninstall gimp, and everything else depending on it. Ooooof.

Chris
 
Old 07-07-2005, 10:07 PM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Not necesarily, I don't use Fedora but try yum --hlep at a console and see what you get. Surely there will be an option to force remove and leave everything else there. They won't work without GTK obviously but it won't be an issue since you'l just be reinstalling it straight away
 
Old 07-08-2005, 01:33 AM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
this should get you going:
http://www.linuxquestions.org/questi...hreadid=328603
 
Old 07-08-2005, 04:26 PM   #6
SidewinderASU
LQ Newbie
 
Registered: Jun 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Solved

Hi there. Ok, so I typed in the wrong thing with yum and totally wiped out gtk as well as all dependencies. Whoops! So I decided to dump Fedora, and installed Mandrake 2005 instead. I then used urpmi to get all the gtk and gtkglext devel packages, and then everything compiled just fine! Go figure. Thanks for your help all.
 
  


Reply



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
after compiling GTK deepsix Linux - Software 2 04-02-2005 07:12 PM
compiling gaim/ gtk error (two versions of gtk) webazoid Linux - Software 0 07-06-2004 06:05 PM
Compiling/Installing GTK+ and glibc massacrezero Linux - Newbie 5 05-07-2003 08:01 PM
Compiling GTK+ 2.2.1 Ju Deddo Koinu Linux - Software 4 04-29-2003 12:41 AM
Compiling GTK+ 2.0.9 Dexter750 Linux - Software 10 04-28-2003 08:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:33 AM.

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
Open Source Consulting | Domain Registration