LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 06-19-2004, 04:33 PM   #16
NKOTB
LQ Newbie
 
Registered: Jun 2004
Location: london
Posts: 6

Rep: Reputation: 0
Exclamation more info


Sorry for such a short message
i got mine working because my library glib-2.4.2 wasn't loaded in cache (if that's the correct phrase)
i believe that pkg-config looks for .pc files and installing glib2.4.2 should create gmodule-2.0.pc glib-2.0.pc gthread-2.0.pc and gobject-2.0.pc in /usr/local/lib/pkgconfig directory
Even though ./configure for pango uses pkg-config to check for the .pc files it also seems to counter check by probing the actual library loaded
if you run ldconfig /usr/local/lib it should load new shared libraries into mem.

I hope im making sense.
 
Old 06-19-2004, 05:26 PM   #17
ripat
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.2
Posts: 22

Rep: Reputation: 15
Hi and thanks for the fast answer!

Yes, you are making sense, but it didn't work... I did "ldconfig /usr/local/lib" as you said, and then ran ./configure again, but it's the same problem.

Also my /etc/ld.so.conf contain:

# more /etc/ld.so.conf
/usr/local/lib
/usr/X11R6/lib
/usr/lib/qt3/lib
/usr/lib/wine


So wouldn't just running ldconfig have the same effect?

Any more ideas?
 
Old 06-21-2004, 11:45 AM   #18
ripat
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.2
Posts: 22

Rep: Reputation: 15
Hmm... I'm a bit suspicious about one thing:

My /etc/ld.so.conf didn't contain either /usr/lib or /usr/local/lib before I added /usr/local/lib myself. Isn't it strange then that the old version of glib could be found? Can anyone explain this?

Is there more ways to specify the paths to the libraries? (Except for $LD_LIBRARY_PATH which I have set to /usr/local/lib without results.)

Is there a way to see which libraries are "loaded"?

If even "ldconfig /usr/local/lib" can't force the right version of glib to be loaded what can cause the problem?
 
Old 06-21-2004, 01:26 PM   #19
drxsmurf
Member
 
Registered: Oct 2003
Location: Texas
Distribution: Mandrake 9.2, Slackware 10.0
Posts: 51

Rep: Reputation: 15
I had this problem a while back. I was trying to install a program called Nicotine (a GNU SoulSeek client.) I searched around the LQ forums for a while, and this post solved my problem for me.

http://www.linuxquestions.org/questi...hreadid=172816
 
Old 06-21-2004, 01:54 PM   #20
ripat
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.2
Posts: 22

Rep: Reputation: 15
Thanks. I tried that now, but it didn't solve the problem. Still the same...

My conclusion is that ./configure and pkg-config finds the correct .pc file, but then for some reason loads the wrong library anyway.

What causes ./configure to go looking in the wrong directory? I checked the contents of glib-2.0.pc and it looks like the directories are sensible:

# more glib-2.0.pc
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

glib_genmarshal=glib-genmarshal
gobject_query=gobject-query
glib_mkenums=glib-mkenums

Name: GLib
Description: C Utility Library
Version: 2.4.2
Libs: -L${libdir} -lglib-2.0
Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include


So what could cause this behavior?

Last edited by ripat; 06-21-2004 at 01:55 PM.
 
Old 06-22-2004, 07:13 AM   #21
ripat
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.2
Posts: 22

Rep: Reputation: 15
Hmm... ok, sorry. There was something wrong with one of the paths. I was changing stuff and now ./configure finishes correctly.

I have some new problems with make, but I get back about that if I can't solve it.

Thanks for the input everyone!
 
Old 06-22-2004, 08:10 AM   #22
ripat
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.2
Posts: 22

Rep: Reputation: 15
ok. I don't seem to be able to sort out this new compilation error.

./configure finished successfully and now I'm running make:

make[4]: Entering directory
/mnt/big_lin/pseudoroot/home/temp/nya_program/gimp2/pango-1.4.0/pango'
/bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o pango-querymodules
querymodules.o libpangox-1.0.la libpangoxft-1.0.la libpangoft2-1.0.la
libpango-1.0.la -L/usr/local/lib -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
gcc -g -O2 -Wall -o .libs/pango-querymodules querymodules.o
./.libs/libpangox-1.0.so -L/usr/local/lib -L/usr/X11R6/lib
./.libs/libpangoxft-1.0.so
/home/temp/nya_program/gimp2/pango-1.4.0/pango/.libs/libpangoft2-1.0.so
-lXft -lX11 -lXrender ./.libs/libpangoft2-1.0.so
/home/temp/nya_program/gimp2/pango-1.4.0/pango/.libs/libpango-1.0.so
/usr/lib/libfontconfig.so /usr/lib/libexpat.so /usr/lib/libfreetype.so -lz
/usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so
/usr/lib/libglib-2.0.so ./.libs/libpango-1.0.so
/usr/local/lib/libgobject-2.0.so /usr/local/lib/libgmodule-2.0.so -ldl
/usr/local/lib/libglib-2.0.so -Wl,--rpath -Wl,/usr/local/lib
gcc: /usr/local/lib/libgobject-2.0.so: No such file or directory
gcc: /usr/local/lib/libgmodule-2.0.so: No such file or directory
gcc: /usr/local/lib/libglib-2.0.so: No such file or directory

make[4]: *** [pango-querymodules] Error 1


It can't find /usr/local/lib/libgobject-2.0.so and for some reason I don't have this file. It wasn't installed by glib, and it wasn't created by ldconfig.

I have a file called /usr/local/lib/libgobject-2.0.so.0 which points to /usr/local/lib/libgobject-2.0.so.0.400.2.


Where should I look for the missing file? How to create it?
 
Old 06-23-2004, 06:24 AM   #23
NKOTB
LQ Newbie
 
Registered: Jun 2004
Location: london
Posts: 6

Rep: Reputation: 0
Lightbulb libtool .la files

ok i had problems while running the ./configure simply because my previous glib etc were installed in /usr/lib and the new ones get installed in /usr/local/lib (Im using vector linux)
One solution ( i haven't tried it but could work) is to install the new glib atk pango etc in the same directory as the previous installations which might do the trick. Also do not forget to update the PKG_CONFIG_PATH

OR you can do what i did

What i did was
1. install glib (which ran fine)
2. export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/llib/pkgconig
3. ldconfig /usr/local/lib (which should load any libraries installed under /usr/local/lib in cache)
4. Install xft2 (i needed this to install pango properly so that gtk can install)
5. Install pango (i used ./configure --prefix=/usr/X11R6 )
6. Install atk
7. Install gtk (which is a bitch)

Now for the last step the ./configure will run fine if pkg-config points tothe right places
but u will get stuck with the make
because by default it looks under /usr/lib for some bloody reason before /usr/local/lib
To get by this problem you need to look for these files
libgtk-x11-2.0.la
libgdk-x11-2.0.la
and remove references to /usr/lib/libgmodule-2.0.so /usr/lib/libgthread-2.0.so /usr/lib/libgobject-2.0.so (i think)
hope it helps
 
Old 06-23-2004, 06:30 AM   #24
NKOTB
LQ Newbie
 
Registered: Jun 2004
Location: london
Posts: 6

Rep: Reputation: 0
Post damn incomplete info

sorry for posting incomplete info
u need to run make get to those errors edit those .la files removes those paths from the dependecies section
and then run make again
also remove references /usr/lib/libglib-2.0.so
hope this helps....
 
Old 06-23-2004, 06:37 AM   #25
ripat
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.2
Posts: 22

Rep: Reputation: 15
Hmm... I'm not sure we are talking about the same thing here.

To begin with I don't want to install over my old libraries, because I feel that it's likely that it will break stuff. I don't dare to do that.

Anyway, that shouldn't be a problem since the libraries in /usr/local/lib is detected correctly now that I have fixed the path problems.


My problem now is that the following files don't exist:

gcc: /usr/local/lib/libgobject-2.0.so: No such file or directory
gcc: /usr/local/lib/libgmodule-2.0.so: No such file or directory
gcc: /usr/local/lib/libglib-2.0.so: No such file or directory


I didn't get these from the installation of glib and neither from running ldconfig.

ldconfig creates links like:
*.so.0 => *.so.0.400.2

but not just *.so

So the question is where is the *.so files supposed to come from? How can I create them?
 
Old 06-23-2004, 06:59 AM   #26
NKOTB
LQ Newbie
 
Registered: Jun 2004
Location: london
Posts: 6

Rep: Reputation: 0
ok im giving too much info which will not help u
lets go back to the basics
can u check where ur glib files are installed
ls -t /usr/local/lib | grep glib perhaps?
or ls -t /usr/lib | grep glib
and tell me what you find?
 
Old 06-23-2004, 07:37 AM   #27
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Quote:
Originally posted by ripat
To begin with I don't want to install over my old libraries, because I feel that it's likely that it will break stuff. I don't dare to do that.
Very wise
Quote:
Originally posted by ripat


My problem now is that the following files don't exist:

gcc: /usr/local/lib/libgobject-2.0.so: No such file or directory
gcc: /usr/local/lib/libgmodule-2.0.so: No such file or directory
gcc: /usr/local/lib/libglib-2.0.so: No such file or directory


So the question is where is the *.so files supposed to come from? How can I create them?
These things are created when you install glib-2.4
 
Old 06-23-2004, 07:44 AM   #28
NKOTB
LQ Newbie
 
Registered: Jun 2004
Location: london
Posts: 6

Rep: Reputation: 0
a few thoughts

that should be
ls -lt /usr/local/lib or ls -lt/usr/local/lib

(damn these typos)
incase ur wondering it shows a list of files ordered by time stamp filtered on any file containing the string 'glib'. That way u will know where it has been installed.
Im asking this is because the .so files are symlinks to libraries installed by glib and urs doesn't seem to have installed properly
or installed in another directory (if uve used --prefix=?? with ./configure)

(It might be easier to do a make uninstall ./configure and make install rather than going the long winded way.)

But once u find out where ur glib has been installed you point PKG_CONFIG_PATH to that directory's pkgconfig directory
so .e.g. its installed in /usr/lib u set PKG_CONFIG_PATH to /usr/lib/pkgconfig

there is no magic thing going on here its all a matter of dependencies (which is a pain in linux i know...me thinking of switching to gentoo soon) !!

and then do a ldconfig on that directory and then try and install pango...

these steps should work (i installed it just yesterday) !!
 
  


Reply



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
Freerock uninstall stole GTK looking for up-to-date pango, atk, gtk, glib and xft tgz Oholiab Slackware 8 09-18-2005 11:57 AM
Problem installing glib/pango/gtk+ WRSpithead Linux - Software 10 03-26-2005 12:57 PM
updating GLib..or pango...or gtk+ or etc etc nadroj Linux - Software 7 01-16-2005 01:54 AM
Installing gtk,glib, pango af_dave Linux - Software 5 07-28-2004 03:48 AM
Pb installing glib, atk, pango, gtk giill Linux - Software 8 11-23-2003 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Open Source Consulting | Domain Registration