LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing GTK+-2.0.6 & GLIB-2.0.6 (https://www.linuxquestions.org/questions/linux-newbie-8/installing-gtk-2-0-6-and-glib-2-0-6-a-29696/)

Kryptow 09-05-2002 11:42 PM

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

adam_boz 09-06-2002 12:01 AM

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

Kryptow 09-06-2002 12:34 AM

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?

adam_boz 09-06-2002 12:55 AM

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.

adam_boz 09-06-2002 01:05 AM

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

Kryptow 09-06-2002 08:33 AM

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.


All times are GMT -5. The time now is 12:20 AM.