Errors while installing GTK+-2.0
Hi,
I want to install XFCE4.4.2 to use as desktop for my vnc at a corporate office. So whatever I install is at my home (/home/hsaluja). XFCE demands some recent version of GTK which is not present on the system. I installed all the dependencies required for gtk successfully except pango where I ran into the following problem. make[2]: Entering directory `/home/hsaluja/local/sources/pango-1.18.4/examples' /bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -o cairosimple cairosimple.o ../pango/libpango-1.0.la ../pango/libpangocairo-1.0.la -L/home/hsaluja/local/lib -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -L/home/hsaluja/local/lib -lcairo ../pango/libpangoft2-1.0.la gcc -g -O2 -Wall -o .libs/cairosimple cairosimple.o ../pango/.libs/libpango-1.0.so -L/home/hsaluja/local/lib ../pango/.libs/libpangocairo-1.0.so -L/usr/X11R6/lib /home/hsaluja/local/sources/pango-1.18.4/pango/.libs/libpangoft2-1.0.so /home/hsaluja/local/lib/libcairo.so /home/hsaluja/local/lib/libpng12.so -lXrender -lSM -lICE -lX11 ../pango/.libs/libpangoft2-1.0.so /home/hsaluja/local/sources/pango-1.18.4/pango/.libs/libpango-1.0.so /home/hsaluja/local/lib/libgobject-2.0.so /home/hsaluja/local/lib/libgmodule-2.0.so -ldl /home/hsaluja/local/lib/libglib-2.0.so /home/hsaluja/local/lib/libfontconfig.so /usr/lib/libfreetype.so /usr/lib/libexpat.so /home/hsaluja/local/lib/libfreetype.so -lz -lm -Wl,--rpath -Wl,/home/hsaluja/local/lib /home/hsaluja/local/lib/libcairo.so: undefined reference to `FT_GlyphSlot_Embolden' collect2: ld returned 1 exit status make[2]: *** [cairosimple] Error 1 make[2]: Leaving directory `/home/hsaluja/local/sources/pango-1.18.4/examples' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/hsaluja/local/sources/pango-1.18.4' make: *** [all] Error 2 I went through several threads on linuxquestions.org and googled for a solution and all seemed to suggest the problem with freetype lib (in bold above). I have freetype installed locally (/home/hsaluja/local) on my system. All the required files for installing GTK were installed at this location by using the --prefix option. LD_LIBRARY_PATH, PKG_CONFIG and PKG_CONFIG_PATH were also set appropriately to use the locally installed files. Yet I face issues with freetype lib. I came across solutions with cleaning(better still - removing) all the old freetype font libs from /usr/libs but I have the problem that I can't do it since I am not the system administrator :( Can anybody help me in resolving this ? Thanks and Regards. |
Which distribution are you using? Pardon my question, but is there a reason that you are compiling this rather than installing a package? Is it because you don't have root priviledges?
I don't know this particular program, but if the solution is that you need to remove certain libs, then it appears you have the answer. You should talk to the system administrator. |
The distribution I am using is Red Hat Enterprise Linux WS release 3 (Taroon Update 2).
I can't ask the SysAds to update it as there are several engineers who are logged on the server and IT department can't spend time on installing a newer distro and then have issues with it. They have a hard time maintaining network related problems :). They are happy with the tried and tested environment. That's the reason I want to compile and install it locally in my home area. I think it is possible. I just don't know how to work around it. |
Hi
Can you post what you have in the LD_LIBRARY_PATH, PKG_CONFIG and PKG_CONFIG_PATH variables ? Can you post the output of : Code:
pkg-config --cflags --libs freetype2 Waiting for your answers... Edit : I am not convinced that what you intend to do is feasible without being able to run the 'ldconfig' command under root. |
Here are the results of what you wanted to know:
>echo $LD_LIBRARY_PATH /home/hsaluja/local/lib:. > echo $PKG_CONFIG /home/hsaluja/local/bin/pkg-config >echo $PKG_CONFIG_PATH /home/hsaluja/local/lib/pkgconfig > pkg-config --cflags --libs freetype2 -I/home/hsaluja/local/include/freetype2 -I/home/hsaluja/local/include -L/home/hsaluja/local/lib -lfreetype -lz > ls -l /home/hsaluja/local/lib/libfreetype* -rw-r--r-- 1 hsaluja group 1958168 Mar 19 18:00 /home/hsaluja/local/lib/libfreetype.a -rwxr-xr-x 1 hsaluja group 835 Mar 19 18:00 /home/hsaluja/local/lib/libfreetype.la* lrwxrwxrwx 1 hsaluja group 21 Mar 19 18:00 /home/hsaluja/local/lib/libfreetype.so -> libfreetype.so.6.3.16* lrwxrwxrwx 1 hsaluja group 21 Mar 19 18:00 /home/hsaluja/local/lib/libfreetype.so.6 -> libfreetype.so.6.3.16* -rwxr-xr-x 1 hsaluja group 1320145 Mar 19 18:00 /home/hsaluja/local/lib/libfreetype.so.6.3.16* > ls -l /home/hsaluja/local/lib/pkgconfig/* -rw-r--r-- 1 hsaluja group 269 Mar 19 15:57 /home/hsaluja/local/lib/pkgconfig/atk.pc -rw-r--r-- 1 hsaluja group 278 Mar 19 18:05 /home/hsaluja/local/lib/pkgconfig/cairo-ft.pc -rw-r--r-- 1 hsaluja group 368 Mar 19 18:05 /home/hsaluja/local/lib/pkgconfig/cairo.pc -rw-r--r-- 1 hsaluja group 243 Mar 19 18:05 /home/hsaluja/local/lib/pkgconfig/cairo-pdf.pc -rw-r--r-- 1 hsaluja group 248 Mar 19 18:05 /home/hsaluja/local/lib/pkgconfig/cairo-png.pc -rw-r--r-- 1 hsaluja group 249 Mar 19 18:05 /home/hsaluja/local/lib/pkgconfig/cairo-ps.pc -rw-r--r-- 1 hsaluja group 239 Mar 19 18:05 /home/hsaluja/local/lib/pkgconfig/cairo-svg.pc -rw-r--r-- 1 hsaluja group 300 Mar 19 18:05 /home/hsaluja/local/lib/pkgconfig/cairo-xlib.pc -rw-r--r-- 1 hsaluja group 272 Mar 19 18:05 /home/hsaluja/local/lib/pkgconfig/cairo-xlib-xrender.pc -rw-r--r-- 1 hsaluja group 243 Feb 20 12:08 /home/hsaluja/local/lib/pkgconfig/dbh-1.0.pc -rw-r--r-- 1 hsaluja group 273 Mar 19 17:58 /home/hsaluja/local/lib/pkgconfig/fontconfig.pc -rw-r--r-- 1 hsaluja group 293 Mar 19 18:00 /home/hsaluja/local/lib/pkgconfig/freetype2.pc -rw-r--r-- 1 hsaluja group 345 Mar 19 12:53 /home/hsaluja/local/lib/pkgconfig/glib-2.0.pc -rw-r--r-- 1 hsaluja group 288 Mar 19 12:53 /home/hsaluja/local/lib/pkgconfig/gmodule-2.0.pc -rw-r--r-- 1 hsaluja group 288 Mar 19 12:53 /home/hsaluja/local/lib/pkgconfig/gmodule-export-2.0.pc -rw-r--r-- 1 hsaluja group 267 Mar 19 12:53 /home/hsaluja/local/lib/pkgconfig/gmodule-no-export-2.0.pc -rw-r--r-- 1 hsaluja group 255 Mar 19 12:53 /home/hsaluja/local/lib/pkgconfig/gobject-2.0.pc -rw-r--r-- 1 hsaluja group 255 Mar 19 12:53 /home/hsaluja/local/lib/pkgconfig/gthread-2.0.pc -rw-r--r-- 1 hsaluja group 250 Feb 20 11:48 /home/hsaluja/local/lib/pkgconfig/imlibgdk.pc -rw-r--r-- 1 hsaluja group 386 Feb 20 11:48 /home/hsaluja/local/lib/pkgconfig/imlib.pc -rw-r--r-- 1 hsaluja group 233 Mar 19 17:12 /home/hsaluja/local/lib/pkgconfig/libpng12.pc lrwxrwxrwx 1 hsaluja group 11 Mar 19 17:12 /home/hsaluja/local/lib/pkgconfig/libpng.pc -> libpng12.pc -rw-r--r-- 1 hsaluja group 350 Feb 20 12:09 /home/hsaluja/local/lib/pkgconfig/libxfce4mcs-client-1.0.pc -rw-r--r-- 1 hsaluja group 353 Feb 20 12:09 /home/hsaluja/local/lib/pkgconfig/libxfce4mcs-manager-1.0.pc -rw-r--r-- 1 hsaluja group 282 Feb 20 12:09 /home/hsaluja/local/lib/pkgconfig/libxfce4util-1.0.pc -rw-r--r-- 1 hsaluja group 346 Feb 20 12:09 /home/hsaluja/local/lib/pkgconfig/libxfcegui4-1.0.pc -rw-r--r-- 1 hsaluja group 355 Feb 20 12:10 /home/hsaluja/local/lib/pkgconfig/xfce4-panel-1.0.pc -rw-r--r-- 1 hsaluja group 279 Feb 20 12:11 /home/hsaluja/local/lib/pkgconfig/xfce4-session-1.0.pc -rw-r--r-- 1 hsaluja group 339 Feb 20 12:10 /home/hsaluja/local/lib/pkgconfig/xfce-mcs-manager.pc -rw-r--r-- 1 hsaluja group 278 Feb 20 12:13 /home/hsaluja/local/lib/pkgconfig/xffm-1.0.pc |
Everything seems ok, apart from not having ran the 'ldconfig' command under root.
But for some reason the configure script has not correctly detected the path to your freetype2 libraries. You may try to force the right path like that : Code:
export XFT_CFLAGS="-I/home/hsaluja/local/include/freetype2 -I/home/hsaluja/local/include" Code:
ldconfig /home/hsaluja/local/lib Code:
ldconfig -p|less I hope you will be able to obtain what you want, but without root privileges not everything is possible. |
Hi.
Thanks for the suggestions but I actually root-caused the problem to something else. While compiling cairo, I didn't use the right FreeType lib path. I fixed that and after that pango got installed successfully. But I am still having issues with installing GTK. Following is some truncated output from config.log: Code:
configure:21947: $PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.13.5 atk >= 1.9.0 pango >= 1.17.3 cairo >= 1.2.0" Code:
>ls -al libpango* |
The part of the configure script which causes that error is :
Code:
# Check for Pango flags See with 'ls -l /home/hsaluja/local/lib/pkgconfig/pango*' if you have pango.pc and pangocairo.pc files. If not, you missed something with the pango installation. The above procedure shows you that you can look in the configure script to understand why an error occurs. And so discover the answer by yourselves. I remind you of these lines from previous posts : Quote:
Quote:
|
All times are GMT -5. The time now is 07:38 PM. |