LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-05-2004, 02:48 PM   #1
Vindane
Member
 
Registered: Jan 2004
Location: Indiana
Distribution: Fedora
Posts: 117

Rep: Reputation: 15
installing GTK+ 2.4.2


Hi, I'm trying to install GTK+2.4.2 as I'm needing an up-to-date version of GTK+ to install Gaim 0.78. Anyway, I made sure that I have all the dependencies installed and updated but I get this after "./configure":

checking for glib-2.0 >= 2.4.0 atk >= 1.0.1 pango >= 1.4.0... Requested 'glib-2.0 >= 2.4.0' but version of GLib is 2.2.3

configure: error: Library requirements (glib-2.0 >= 2.4.0 atk >= 1.0.1 pango >= 1.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

This happens at about the end of the ./configure action. I just installed GLIb 2.4.2 right before attempting this install. Does it matter how I installed the libraries? I copied them from my home directory over to /tmp and unpacked and installed them from there. Will where I'm installing them FROM affect how the system can find them?

Thanks!!
 
Old 06-05-2004, 03:07 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
No, in this case it doesn't matter where you installed them from, what matters is whether you ran ./configure with the option --prefix=/someplace eg

./configure --prefix=/usr # that's what I almost always choose
./configure --prefix=/opt
or somesuch location. If you didn't set --prefix=/wherever then the packages will install in their default location, /usr/local. So when you run the configure script for the next package it will not find the new things you've installed as the first place it will look is in /usr where it will find the versions that were installed with Slack or Mandrake. You need to set some variables to point to the new libraries
Code:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export LDFLAGS="-L/usr/local/lib"
If you're installing these things somewhere else then alter those paths to fit. If you close the shell it will forget and you'll need to enter those variables again the next time you start work.
 
Old 06-05-2004, 04:06 PM   #3
Vindane
Member
 
Registered: Jan 2004
Location: Indiana
Distribution: Fedora
Posts: 117

Original Poster
Rep: Reputation: 15
Thanks alot! I just went back and reinstalled the 3 libraries that GTK+ was needing with "./configure -prefix=/usr" and it installed just fine.

But one more question while we're talking about installation of source...
When I unpack the tarball packages in my /tmp directory, can I go ahead and delete the directories when I'm finished installing? Does the program ever refer back to those makefiles or anything?

Thanks!
 
Old 06-05-2004, 05:20 PM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Yes, you can delete the source folders after you've installed them. There are some things that need the source keep around but they're the odd exception. I should have said that there are risks with installing things in /usr, if you're installing over old versions of shared libraries it may break apps that were linked against those shared libraries. You may be lucky and get away with it but in general I wouldn't recommend it. I hope it all works for you.
 
  


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
Installing the gtk Elbryan Linux - Software 10 10-13-2007 01:17 AM
Installing Mono-got stuck while installing gtk-sharp chutsu Linux - Software 11 01-18-2005 08:25 PM
installing gtk+ minm Linux - Software 1 10-26-2004 09:20 PM
installing gtk dlm4444 Programming 1 09-26-2003 10:07 AM
Installing GTK+ Womandrake Linux - Software 5 04-23-2003 09:54 AM

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

All times are GMT -5. The time now is 03:30 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