LinuxQuestions.org
Help answer threads with 0 replies.
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 11-07-2003, 08:57 PM   #1
scottie
Member
 
Registered: Oct 2003
Location: UK
Distribution: Slackware 8.0
Posts: 56

Rep: Reputation: 15
Angry GTK is a pain!


Why is GTK such a pain to install? I'm probably overlooking something obvious but i'm finding it really difficult to install GTK+

When i run configure and all goes well until it says...

checking for glib-2.0 >= 2.1.4 atk >= 1.0.1 pango >= 1.0.1... Package atk was not found in the pkg-config search path.
Perhaps you should add the directory containing `atk.pc'
to the PKG_CONFIG_PATH environment variable
No package 'atk' foundchecking for glib-2.0 >= 2.1.4 atk >= 1.0.1 pango >= 1.0.1... Package atk was not found in the pkg-config search path.
Perhaps you should add the directory containing `atk.pc'
to the PKG_CONFIG_PATH environment variable
No package 'atk' found

configure: error: Library requirements (glib-2.0 >= 2.1.4 atk >= 1.0.1 pango >= 1.0.1) 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've downloaded glib 2.1.5 and pango 1.2.5 and installed them successfully so i dont understand why it says that. I thought it might be a path problem but, being quite newbie, i dont know where to start.

Does anyone know how to resolve this?

scottie
 
Old 11-08-2003, 02:54 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Honestly, upgrading/installing GTK is indeed a super pain when done from Source. Which distro are you running? If you do need/want to do this from source, then be sure to read everything first, then install later. You'll want to read ALL README/INSTALL files, all docs, and search these forums. Also, I think a few things that helped me was being aware of variables. You can set certain variables in /etc/profile, and for specific users in ~/.bash_profile. Also, for just that session with:
VARIABLE=/wherever/whatever
Where VARIABLE is defined in such places as:
env
So, open a shell, and type:
env
And see if the variable is listed that you want to change, but remember it will only be for that session (good for practicing ).

Good Luck, and if it's possible, use RPM's or DEBS to install it. It can be done from source, I did it on Slack from source, but for me, in the hight of my day (not really ) it was certainly rough.

Cool
 
Old 11-08-2003, 06:03 AM   #3
scottie
Member
 
Registered: Oct 2003
Location: UK
Distribution: Slackware 8.0
Posts: 56

Original Poster
Rep: Reputation: 15
Do ya know of any good tutorials or trouble shoots for installing gtk?

I use slackware 8.0. I didnt thinkRPMs or DEBs would work for slack? Anyway this is what i get when i type env...

PWD=/root
LTDL_LIBRARY_PATH=/opt/kde/lib
XAUTHORITY=/root/.Xauthority
HZ=100
HOSTNAME=scottiedog.desert
MOZILLA_HOME=/usr/lib/netscape
LD_LIBRARY_PATH=/opt/kde/lib
ignoreeof=10
LS_OPTIONS= --color=auto -F -b -T 0
QTDIR=/usr/lib/qt
OPENWINHOME=/usr/openwin
MANPATH=/usr/local/man:/usr/man:/usr/X11R6/man:/opt/gnome/man:/usr/lib/qt/doc/man:/usr/share/texmf/man:/usr/openwin/man
LESSOPEN=|lesspipe.sh %s
PS1=\u@\h:\w\$
KDE_DISPLAY=:0.0
PS2=>
KDEDIR=/opt/kde
LESS=-M
USER=root
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36i=40;33:so=01;35:bd=40;33;01:cd=40;33;01r=40;31;01:ex=01; 32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:* .taz=01;31:*.lzh=01;31:*.zip=01;31:*.bz2=01;31:*.rpm=01;31:*.deb=01;31:*.z=01;31:*.Z=01;31:*.gz=01;3 1:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*. mpg=01;37:*.avi=01;37:*.mov=01;37:
CPLUS_INCLUDE_PATH=/usr/lib/qt/include:/usr/lib/qt/include:
MACHTYPE=i386-slackware-linux-gnu
KDE_MULTIHEAD=false
LC_ALL=POSIX
MAIL=/var/spool/mail/root
GTK_RC_FILES=/etc/gtk/gtkrc:/root/.gtkrc:/root/.gtkrc-kde
COLORTERM=
DISPLAY=:0.0
LOGNAME=root
SHLVL=5
HUSHLOGIN=FALSE
MINICOM=-c on
SESSION_MANAGER=local/scottiedog:/tmp/.ICE-unix/184
KDE_INITIAL_DESKTOP=1
SHELL=/bin/bash
HOSTTYPE=i386
QT_XFT=0
OSTYPE=linux-gnu
TERM=xterm
HOME=/root
PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/gnome/bin:/opt/www/htdig/bin:/opt/kde/bin:/usr/share/texmf/bin:/usr/openwin/bin
_=/usr/bin/env

I'm still quite new to linux, so i'm not too sure how to use that info for helping me to install gtk

scottie
 
Old 11-08-2003, 09:07 AM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
First thing, search your computer to see if atk is installed (search for the file atk.pc). I find that most of the things I need to install to get gtk2 working end up in either /usr/lib/pkgconfig or /usr/local/lib/pkgconfig . So to avoid having to type in

export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig

all the time I edited the .bash.rc file under my home folder /home/andy/.bash.rc with gedit and added the line in there. That way every time I open a terminal the PKG_CONFIG_PATH variable is set. As for getting atk you should be able to get it at the same place you got gtk2, here for instance
ftp://ftp.gtk.org/pub/gtk/v2.2/

Last edited by Andrew Benton; 11-08-2003 at 08:33 PM.
 
Old 11-08-2003, 09:08 AM   #5
cartridge
Member
 
Registered: Sep 2003
Location: BRAZIL
Distribution: Slackware 9.0.0
Posts: 31

Rep: Reputation: 15
man if you want gtk 2.0 in slack just upgrade the packages, download it in htt://linuxpackages.net.
you can also install dropline gnome, a version of gnome for slack much better than the original one, antialiasign fonts.... nice apps, and it has an auto updater. very nice. http://www.dropline.net/gnome/
 
Old 11-08-2003, 06:37 PM   #6
scottie
Member
 
Registered: Oct 2003
Location: UK
Distribution: Slackware 8.0
Posts: 56

Original Poster
Rep: Reputation: 15
thanx for the help guyz

the problem was i was missing atk. Its installed ok now

scottie
 
  


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
Sorry to be a pain, but can someone help please? twirl Programming 5 09-06-2005 06:15 PM
LFS pain in the... Rojong Linux From Scratch 4 01-08-2005 10:13 PM
What a pain BajaNick General 4 08-31-2003 12:15 AM
The Pain... crichards General 11 02-22-2003 06:19 AM
oh the pain, the pain of c bobthebat Programming 2 07-04-2002 12:30 PM


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