LinuxQuestions.org
Visit Jeremy's Blog.
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 02-19-2005, 11:06 AM   #1
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Rep: Reputation: 35
Installing GFTP...and gtk, atk, pango...


Hi all

So, getting on a bit it with my Linux experience...

Time to install GFTP.

./configure brings up an error saying it needs GTK+ 2, otherwise it can only do commandline.

So I go to install GTK... anyways, long story short it seems I needed to install GLIB, Pango and ATK as well. I did those, all the same way:

./configure
make
make install

they went without a hitch.

So I go back to do GTK, but I get an error at the end of configure:

configure: error: Library requirements (glib-2.0 >=2.6.0 atk >=1.0.1 pango >=1.8.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.

I am at a loose end...what shall I do?

Thanks
 
Old 02-19-2005, 03:22 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
whoah there....! one step at a time.

you've not filled in your profile, and not provided as much information in your post, so i don't know what distro you are on, but i'd assume that you're on mandrake, suse or another RPM based distro. assuming this, i'd bet money that GTK is already installed just fine, what is not installed however will be the matching gtk-devel package that is required to actually compile source code that uses that library. this is the same for a good proportional of rpm based libraries and programs. if you install GTK from source then you run the risk of breaking your system, as you can end up with two versions of GTK in different locations on your system, which will hit trouble eventually.

so for things like GTK, i's strongly advise you stick with RPM's even if you wish to compile other apps from source.
 
Old 02-19-2005, 03:48 PM   #3
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Original Poster
Rep: Reputation: 35
acid: Thanks for the reply. I have updated my profile, I guess I was/am just a bit eager!

So does what you said still stand? Is knoppix an RPM based distro?
 
Old 02-19-2005, 03:53 PM   #4
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Knoppix is debian-based. But you have to install those packages or possibly the dev packages as I don't know what's installed by default in knoppix.

You can use apt to install those packages named above. Run "apt-get update" to update your packages list with the newest packages on the server. Then you can "apt-get install packagename" which will install the package.
 
Old 02-19-2005, 04:13 PM   #5
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Original Poster
Rep: Reputation: 35
Hi darkleaf

I did

apt-get -u update
apt-get -u upgrade

and let it do its thing.

What do I type for atk?
 
Old 02-19-2005, 04:39 PM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Just do "apt-get install gtk2" (or something similar) and stuff like atk, pango etc will also be installed.
 
Old 02-19-2005, 04:41 PM   #7
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Should you decide to install from source, for whatever reason, the order is:
glib
pango
atk
gtk
and for each use ./configure --prefix=/usr
cos it makes life a lot easier!
 
Old 02-19-2005, 05:59 PM   #8
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Original Poster
Rep: Reputation: 35
Komakino:

I thought I would re-do it all as you have written so...

GLIB 2.6
./configure --prefix=/usr
make
make install

That went OK.

Then pango.

./configure --prefix=/usr

at the end of that it said:

'pkg-config --modversion glib-2.0' returned 2.6.0 but GLIB 2.6.2 was found! If pkg-config was correct, then it is best to remove the old version of glib. You may also fix the error by modifying your LD_LIBRARY_PATH environment variable, or by editing /etc/ld.so.conf. Make sure you have run ldconfig if that is required by your system. If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH to point to the correct configuration files

configure: error:

Glib 2.5.7 or better is required. The Latest version of Glib is always available from ftp://ftp.gtk.org/.

So guys and gals, what so I do now?

Thanks

Hong
 
Old 02-19-2005, 06:02 PM   #9
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Original Poster
Rep: Reputation: 35
Reddaz: I keep trying apt-get install .... but I cant seem to get the package name right.

I tried glib, glib2.6, Glib, etc...

Anyone know what it is?
 
Old 02-19-2005, 09:45 PM   #10
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Try "apt-get install synaptic". Synaptic ia a GUI for apt. Once you have install apt, use that to broswe or search for available packages and install the ones you need.
 
Old 02-19-2005, 09:58 PM   #11
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Why not just apt-get install gftp
 
Old 02-19-2005, 10:44 PM   #12
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Actually, I never thought of that, that would solve all the problems with just a few commands

Last edited by reddazz; 02-19-2005 at 11:46 PM.
 
Old 02-19-2005, 10:51 PM   #13
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
I'm telling you now, save yourself some trouble, add this to your /etc/profile

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig/
 
Old 02-19-2005, 11:43 PM   #14
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Quote:
Originally posted by 95se
I'm telling you now, save yourself some trouble, add this to your /etc/profile

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig/
good advice, but that won't help him here with the --prefix=/usr option. If you install a library, you have to remove the old one first. pretty much all distro's come with glib-2.x ( but rpm/deb distro's split them).
Make sure you remove the original package first then go back to the glib source directory and redo make install ( you really should make a package of it for easier removal/upgrade later on).
 
Old 02-20-2005, 01:13 PM   #15
hongman
Member
 
Registered: Feb 2005
Location: UK
Distribution: Knoppix 3.7
Posts: 285

Original Poster
Rep: Reputation: 35
Thank you all

I did apt-get install gftp, its done its thing...but where is it? I cant seem to find it

Also, that last bit went straight over my head. Installing/uninstalling libraries?

I'm guessing when I do ./configure make make install its installing the library, how would I uninstall it?

So do I add that line in?

Thanks

PS whats the diff between ./configure and ./compile, Ive seen references to both of these before make/make install...
 
  


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
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
Been fighting gtk,glib,atk,pango for days. whansard Linux - Software 0 12-18-2004 10:18 AM
Pb installing glib, atk, pango, gtk giill Linux - Software 8 11-23-2003 01:25 PM
Installing Glib, ATK, GTK, Pkg Config, and Pango! LinuZ Linux - Newbie 9 10-26-2003 02:58 PM
installing GTK+2.2.0 (issues with atk-1.2.0 & pango-1.2.0) jlewis_linux Linux - Software 6 06-10-2003 12:21 PM

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

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