LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   GTK is a pain! (https://www.linuxquestions.org/questions/linux-software-2/gtk-is-a-pain-113597/)

scottie 11-07-2003 07:57 PM

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

MasterC 11-08-2003 01:54 AM

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

scottie 11-08-2003 05:03 AM

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;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=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

Andrew Benton 11-08-2003 08:07 AM

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/

cartridge 11-08-2003 08:08 AM

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/

scottie 11-08-2003 05:37 PM

thanx for the help guyz :D

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

scottie


All times are GMT -5. The time now is 02:00 PM.