MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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.
I need to install latest GTK+ 2.6.2, which requires GLib >= 2.6.0 , ATK and pango. I had problems with GLib, but I read some threads on this forum and I got a bit further with my installation... but I've encountered new problems. This time with pango 1.8.0 compilation. I run ./configure, it reports no errors and everything seems to be ok. Then I run make, and at one point it ends with an error:
Great . . . I have the same problem your having, and I hate to hijack your thread, but I just realized you have 30+ views with no replys. There goes hope for me solving my problem. Can't somebody help at all??
edit: I just realized I'm in the Mandrake section but I'm runing SuSE - I'll go post over there (if it exists - I haven't checked yet)
I think you got glib installed OK but the pango can't find it so it uses the old lib.
It's a bit weird that your compilation line tries to link both /usr/lib/libglib-2.0.so and /usr/local/lib/libglib-2.0.so.
If you infact have a /usr/local/lib/libglib-2.0.so you could try 'export LDFLAGS=-Wl,-R/usr/local/lib' before running ./configure
When I run ./configure I see some output that says "checking for glib >= 2.4.0 (yes glib=2.6.2)" so its strange that it sees that as the version but still could use an older version.
Quote:
Originally posted by bunnadik I think you got glib installed OK but the pango can't find it so it uses the old lib.
It's a bit weird that your compilation line tries to link both /usr/lib/libglib-2.0.so and /usr/local/lib/libglib-2.0.so.
If you infact have a /usr/local/lib/libglib-2.0.so you could try 'export LDFLAGS=-Wl,-R/usr/local/lib' before running ./configure
Did you install glib to /usr/local or somewhere else?
If so, have you added /usr/local/lib to the top of /etc/ld.so.conf?
Sometimes it seems like the linker chooses the one in /usr/lib despite the above and the only way I've got it to
work was by setting LDFLAGS=-Wl,-R/usr/local/lib
I think ./configure perorms its own black magic to determine versions and might not pass the location down
to the linker.
I tried setting LDFLAGS=-Wl,-R/usr/local/lib, still get the same error. I'm allowing glib to install to its default location, which I believe is /usr/local/lib. That path is already in /etc/ld.so.conf. I read somewhere that I could just install it to /usr, but that if anything goes wrong in the future, they *really* go wrong and that doesn't sound attractive to me as I'm still fairly green to linux. Thanks for your help so far guys please keep the idea's coming ...
Quote:
Originally posted by bunnadik Did you install glib to /usr/local or somewhere else?
If so, have you added /usr/local/lib to the top of /etc/ld.so.conf?
Sometimes it seems like the linker chooses the one in /usr/lib despite the above and the only way I've got it to
work was by setting LDFLAGS=-Wl,-R/usr/local/lib
I think ./configure perorms its own black magic to determine versions and might not pass the location down
to the linker.
Hmm, you could try uninstalling the development packages for gtk2 and glib2. They're not needed unless you want to compile
anything agains them (wich in this case you don't). Try
Code:
urpme libgtk+2.0_0-devel
urpme libglib2.0_0-devel
You also might have to uninstall libpango1.0_0-devel and libatk1.0_0-devel further on.
Edit: Of cause if you run Suse you'll have to use Yast or whatever to remove the packages
I also had this problem and I didnt want to replace my system glib/gtk while compiling 2.6.2 (I needed the framebuffer version)
So here is what you must do. I don't know if this is a pango problem or a libtool problem, but anyways this works, although its not too handy to do automatic builds.
Compile as usual. As soon as you get that error, open libpangoft2-1.0.la with a editor and change:
this is identical to what I was getting before I made any changes to libpangoft2.1.0.la
Quote:
Originally posted by anpaza I also had this problem and I didnt want to replace my system glib/gtk while compiling 2.6.2 (I needed the framebuffer version)
So here is what you must do. I don't know if this is a pango problem or a libtool problem, but anyways this works, although its not too handy to do automatic builds.
Compile as usual. As soon as you get that error, open libpangoft2-1.0.la with a editor and change:
man where is the thread that you learned how to solve installation problem with glib. im trying to install gtk and i installed latest glib and when i was installing pango its sayin me that glib is installed incorrectly. how did u pass this problem???
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.