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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-10-2004, 08:50 PM
|
#1
|
Member
Registered: Oct 2004
Distribution: Fedora Core 2, Knoppix
Posts: 105
Rep:
|
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!
|
|
|
10-10-2004, 09:11 PM
|
#2
|
Member
Registered: Oct 2004
Location: Portugal
Distribution: Ubuntu
Posts: 41
Rep:
|
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.
|
|
|
10-10-2004, 09:49 PM
|
#3
|
Member
Registered: Oct 2004
Distribution: Fedora Core 2, Knoppix
Posts: 105
Original Poster
Rep:
|
Ok, thx, I'll try it out and report if it works or not.
|
|
|
10-10-2004, 10:06 PM
|
#4
|
Member
Registered: Oct 2004
Distribution: Fedora Core 2, Knoppix
Posts: 105
Original Poster
Rep:
|
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?
|
|
|
10-10-2004, 10:08 PM
|
#5
|
Member
Registered: Oct 2004
Location: Portugal
Distribution: Ubuntu
Posts: 41
Rep:
|
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
|
|
|
10-10-2004, 10:26 PM
|
#6
|
Member
Registered: Oct 2004
Distribution: Fedora Core 2, Knoppix
Posts: 105
Original Poster
Rep:
|
Ahhh...thank you very much. I'll try it out.
|
|
|
All times are GMT -5. The time now is 03:36 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|