Linux - SoftwareThis 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.
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.
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.
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?
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?
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.
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?
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
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....
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.
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?
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
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) !!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.