LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 10-10-2004, 08:50 PM   #1
Gormless
Member
 
Registered: Oct 2004
Distribution: Fedora Core 2, Knoppix
Posts: 105

Rep: Reputation: 15
Unhappy Having trouble building and installing GTK+ Plz Help!


I downloaded all the latest tar.gz files for GTK+ : ATK, Pango, GLIB, and GTK+ I also downloaded and installed the pkg-config file that the installation guide said I needed. After installing it, I used emacs to edit the configure.in file to put these modifications into place as suggested by the guide:

CPPFLAGS="-I/opt/gtk/include"
LDFLAGS="-L/opt/gtk/lib"
PKG_CONFIG_PATH="/opt/gtk/lib/pkgconfig"
export CPPFLAGS LDFLAGS PKG_CONFIG_PATH

LD_LIBRARY_PATH="/opt/gtk/lib"
PATH="/opt/gtk/bin:$PATH"
export LD_LIBRARY_PATH PATH

Then I proceeded to install the files in the order GLIB, Pango, ATK and GTK+ as the guide said to do. I only managed to get as far as GLIB however. This is how I installed GLIB by the way:

tar xvzf glib-2.4.7.tar.gz
cd glib-2.4.7.tar.gz
./configure --prefix=/opt/gtk
make
su -c 'make install'

Then I tried installing Pango the same way. During the ./configure test, GLIB was not detected: "Could not run GLIB test program, checking why........The test program failed to compile or link"

Do you know why this is happening? I'm really new to linux, so could you please give tell me step-by-step what to do to fix this error? Thanks alot for your time!
 
Old 10-10-2004, 09:11 PM   #2
andrade
Member
 
Registered: Oct 2004
Location: Portugal
Distribution: Ubuntu
Posts: 41

Rep: Reputation: 15
I think your problem is a non recognized /opt/gtk folder as a binary and libraries filled folder.
try to do that
edit both to files /root/.bashrc and /home/yourusername/.bashrc
fill them with this

export PATH=\
/bin:\
/bin/:\
/sbin/:\
/usr/bin:\
/usr/local/bin:\
/usr/games:\
/usr/X11/bin:\
/opt/kde/bin:\
/opt/schilly/bin:\
/usr/X11R6/bin:\
/opt/gtk/bin:\
$PATH

IMPORTANT: Before do that see if that's the way your distro is organized... the only one that you need is the /opt/gtk/bin

Other thing edit /etc/ld.so.conf
and add /opt/gtk/lib
and do ldconfig

Last edited by andrade; 10-10-2004 at 09:12 PM.
 
Old 10-10-2004, 09:49 PM   #3
Gormless
Member
 
Registered: Oct 2004
Distribution: Fedora Core 2, Knoppix
Posts: 105

Original Poster
Rep: Reputation: 15
Ok, thx, I'll try it out and report if it works or not.
 
Old 10-10-2004, 10:06 PM   #4
Gormless
Member
 
Registered: Oct 2004
Distribution: Fedora Core 2, Knoppix
Posts: 105

Original Poster
Rep: Reputation: 15
I havent fully tested the rest of the changes you told me to make, but apparently the shell doesnt recognize the Idconfig command.

bash: Idconfig: command not found

Any idea why?
 
Old 10-10-2004, 10:08 PM   #5
andrade
Member
 
Registered: Oct 2004
Location: Portugal
Distribution: Ubuntu
Posts: 41

Rep: Reputation: 15
it is ldconfig
LDCONFIG is an L
if you can't do ldconfig try /sbin/./ldconfig
or do ctrl+alt+f1 login as root and retry ldconfig
 
Old 10-10-2004, 10:26 PM   #6
Gormless
Member
 
Registered: Oct 2004
Distribution: Fedora Core 2, Knoppix
Posts: 105

Original Poster
Rep: Reputation: 15
Ahhh...thank you very much. I'll try it out.
 
  


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
Trouble installing XMMS, gtk/glib issues. MDBlueIce Linux - Newbie 11 02-26-2005 10:00 PM
help me plz!! am having trouble installing mandrake 10.1 community dan1234567890 Linux - Newbie 1 12-01-2004 11:03 AM
Trouble Installing GTK The Oate Mandriva 22 08-25-2004 09:47 AM
trouble installing GTK themes TrippyChik Linux - Newbie 1 03-30-2004 07:43 PM
Trouble installing BitchX --with-gtk n3tw0rk Linux - Software 2 01-19-2004 06:03 AM


All times are GMT -5. The time now is 08:31 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration