LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-06-2002, 12:42 AM   #1
Kryptow
LQ Newbie
 
Registered: Aug 2002
Location: Miami, Florida
Distribution: Redhat 7.3 / 8.0
Posts: 23

Rep: Reputation: 15
Installing GTK+-2.0.6 & GLIB-2.0.6


Do you need both of these files or is the GTK+ the only one i need?

Also i need a little help with the installation i followed all the instructions but ran into a few walls for one the Installation guide gave me various tasks to perform but i am not sure if i missed something in between because when i try to configure a program i am trying ot compile it still doesn't see the new GLIB 2.0.6 it checks the pkg-config file but after that it gives me that error:

Code:
***Could not run GLIB test program, checking why....
***The test program failed to compile or link . See the config.log file ***for the exact error that occurred. This usually means GLIB is incorrectly installed.
Can someone tell me what needs to be done to correct this problem because i can't figure out how to add this new library to the pkg-config path.



Thank you
 
Old 09-06-2002, 01:01 AM   #2
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
The path to your library files should be in /etc/ld.so.conf, one per line. here's mine:

/usr/local/lib
/usr/X11R6/lib
/opt/lib
/opt/qt/lib

also, after you install libraries, you need to run "ldconfig", which looks @ these paths

I don't know if this is what you're looking for, but i figured i'd try

good luck
 
Old 09-06-2002, 01:34 AM   #3
Kryptow
LQ Newbie
 
Registered: Aug 2002
Location: Miami, Florida
Distribution: Redhat 7.3 / 8.0
Posts: 23

Original Poster
Rep: Reputation: 15
ok i found the file but the opt/glib and opt/gtk is not there why is that and how can i get them to be found by the system what commands are needed and as for the ldconfig this only works using /sbin/ldconfig is that how it should be?
 
Old 09-06-2002, 01:55 AM   #4
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
ok, well, the file that I showed you is for MY system. you see, different distro's put stuff in different places. I don't really know where redhat puts it's stuff, but you can find out by doing this:

first run "updatedb" this will scan your system and make a database of you'r files

then run "locate glib | less" the " | less" part means to pipe the output to a program called less, then you can use the arrows or space key to scroll up and down the info, otherwise it would all pass by you really fast and you wouldn't be able to see it (try it).

The /etc/ld.so.conf paths should point to the path where ALL of your libraries are, not just gtk. it probably should point to /usr/lib.

you had to type /sbin/ldconfig because the programs in /sbin are not in your $PATH. this is the directories that bash scans when you type a command.

If you want to be able to run these commands w/ out having to type /sbin/ first, you can add it to your path by doing this:

edit HOME/.bash_profile (where HOME is /root if you are root, and /home/user if you are logged in as a different user)

Where it says PATH=$PATH:$HOME/bin add ":/sbin:/usr/sbin:"
to the end of it

good luck, keep on posting if you need more help... i'm not sure if all of this will solve your problem.

Last edited by adam_boz; 09-06-2002 at 02:00 AM.
 
Old 09-06-2002, 02:05 AM   #5
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
ooh yeah, with the bash stuff, it won't work right away... you have to do a "source .bash_profile". you can do a lot of stuff with the .bash_profile, and other similar config. files... check out this example and search around
http://www.linux.org/docs/ldp/howto/...WTO/index.html
 
Old 09-06-2002, 09:33 AM   #6
Kryptow
LQ Newbie
 
Registered: Aug 2002
Location: Miami, Florida
Distribution: Redhat 7.3 / 8.0
Posts: 23

Original Poster
Rep: Reputation: 15
ok i tried but it still isn't seeing the the new glib or the GTK is it better for to use a rpm than a source file? Could this be my problem? some files you can't find in rpm format I'm not sure if this one comes in rpm format. If so and i run into any problems with the installation would it be ok if i remove the previous version and install the new one.

i know i will run into some problems so if anyone has experience with glib and gtk 2 installation in redhat let me know please.
 
  


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
glib & gtk old versions? grayFalcon Linux - Newbie 6 04-27-2005 05:23 PM
Installing GTK and Glib? henry_huckem Fedora 12 01-23-2005 02:04 PM
Glib & GTK+ versions 1.2.10 & 2.4.0 RaVilj Linux - Software 9 06-18-2004 06:30 PM
glib & gtk headers Donald1000 Solaris / OpenSolaris 1 06-08-2003 01:19 PM
missing gtk & glib - config elite Linux - Newbie 2 04-12-2002 07:22 PM


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