Gimp...pango....gtk....glib....uhhhhh.......
I've been trying to install all of the above for the last day or so, and I just can't make anything work.
As you know, Gimp requires GTK, GTK requires Pango, and Pango requires Glib. So....I compiled+installed Glib 2.4.x, and it says there are no problems. However, Pango doesn't seem to agree. Every time I try to compile and install it, I get a 'Glib 2.4.0 or higher not installed' error and it quits. There isn't anything explaining what the cause of this is in the README or INSTALL files for Pango, so I'm at a loss... I'd really just like to install Gimp, but all this chain-of-installments stuff is driving me insane... Help? |
SImple use apt-get or yum to install it. (Which one is personal prefence but apt seems more universal) Both will resolve dependencies automatically.
apt-get install gimp or yum install gimp Thats all you need to do to install them from a terminal. |
You already have older versions of these things installed in /usr. If you just run ./configure without setting --prefix=/somewhere they will install in the default location, /usr/local, so we need to set some variables to make the linker look there.
Code:
export PKG_CONFIG_PATH=/usr/local/lib:$PKG_CONFIG_PATH |
When you say 'shell' are you talking about an X Terminal / Konsole window, or are you talking about the CTRL-ALT-F2 command line?
Mike-- Where/what is apt-get? Is it safe to use? |
OK I can help with both. First the Shell is CLI so both runlevel 3 (ctrl + alt +F1) and Konsule, xterm are correct. Konsule/Xterm is your best an eaiest way.
As for apt-get yes it is safe and easy to use. here is a link to the RPM for FC2 http://ftp.freshrpms.net/pub/freshrp...c2.fr.i386.rpm homepage for apt: http://apt.freshrpms.net/ |
It doesn't look like there's a version for SuSE...
Anyway, I think I found the root of the problem... The pango config is NOT lying. I checked, and nothing of Glib-2.4.x is installed anywhere. So...something is wrong with the Glib config then? It says that it will install Glib-2.4.x in /usr/local/lib and /usr/local/bin, but there isn't anything that says Glib 2.4 in there after make & make install. |
I am facing the same problem with Glib. Note that Glib requires pk-config and this in turns requires Glib 1.2 or some such number. Pango also reports that it does not find makefile when we issue the command make or make install.
If anybody has the solution please email me Dinesh |
Get a grip. Pango reports that it does not find makefile when you issue the command make or make install if ./configure fails. You can't ignore error messages or you'll get nowhere. Error messages are there to help you. They're a chance to learn something you need to know.
|
Quote:
|
Why not use SuSe 9.0's Gnome rpms for the latest versions?
Also, I've found SuSe's YaST2 to be excellent at handling dependencies (use "Install and remove software" or "Online update"). However, when compiling Gimp 2, I had to add things to PKG_CONFIG_PATH env. variable to get things working. |
I hate to be a party pooper, but...
Quote:
But why would version 2.4.2 install anything called 2.0? 2.) Yes, I've tried everything as root. 3.) YaST2's online update: already tried it. The only items it offers to install have nothing to do with any of this... 4.) That link has only version 2.2 of glib. Pango/Gimp requires 2.4 or above. |
Quote from above
"So....I compiled+installed Glib 2.4.x, and it says there are no problems. However, Pango doesn't seem to agree. Every time I try to compile and install it, I get a 'Glib 2.4.0 or higher not installed' error and it quits" I had a issue where I had installed a dependence package the dependencies package installed fine but when I went back to install the original software that required that package it sead it was not there. Here is the posts that solved my issue http://www.linuxquestions.org/questi...hreadid=189532 |
>> online update: already tried it. The only items it offers to install have nothing to do with any of this...
YOU (YaST Online Update) only offers to update packages that are already installed. To install new software you need to run YaST2 and select "Install and Remove Software", and then use the search, package groups or selections filter to find the files you want. You may have to use "Change source of intillation" first, however. I successfully compiled Gimp 2 with only the library packages that I got from YaST. |
I have the same problem building pango. My goal is to compile gimp2, and right now I'm working on getting gtk+-2.4.3 to compile.
I have followed the instructions on the gtk page: "First make sure that you have the necessary external dependencies installed: pkg-config, GNU make, the JPEG, PNG, and TIFF libraries, FreeType, and, if necessary, libiconv and libintl." I had to compile pkg-config and freetype but this was no problem. Next step: "Then build and install the GTK+ libraries in the order: GLib, Pango, ATK, then GTK+. " GLib (glib-2.4.2) was no problem, I did ./configure, make, checkinstall + rpm -i on the resulting rpm. I have checked that things were installed in /usr/local/lib just as they were supposed to: # ls /usr/local/lib/*glib* /usr/local/lib/libglib-2.0.la * /usr/local/lib/libglib-2.0.so.0@ /usr/local/lib/libglib-2.0.so.0.400.2* /usr/local/lib/glib-2.0 # ls /usr/local/lib/libg* /usr/local/lib/libglib-2.0.la* /usr/local/lib/libgmodule-2.0.so.0@ /usr/local/lib/libgobject-2.0.so.0.400.2* /usr/local/lib/libglib-2.0.so.0@ /usr/local/lib/libgmodule-2.0.so.0.400.2* /usr/local/lib/libgthread-2.0.la* /usr/local/lib/libglib-2.0.so.0.400.2* /usr/local/lib/libgobject-2.0.la* /usr/local/lib/libgthread-2.0.so.0@ /usr/local/lib/libgmodule-2.0.la* /usr/local/lib/libgobject-2.0.so.0@ /usr/local/lib/libgthread-2.0.so.0.400.2* So as far as I can see the installation of glib seems ok. Then I did ldconfig (I don't know if this is necessary) and my /etc/ld.so.conf contain "/usr/local/lib" as the first line. So now I try to compile pango, but get stuck on ./configure: checking for pkg-config... (cached) /usr/local/bin/pkg-config checking for GLIB - version >= 2.4.0... *** 'pkg-config --modversion glib-2.0' returned 2.4.2, but GLIB (2.2.3) *** was found! If pkg-config was correct, then it is best ... I have tried what Andrew Benton suggested above: export PKG_CONFIG_PATH=/usr/local/lib:$PKG_CONFIG_PATH export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH export LDFLAGS="-L/usr/local/lib" I even changed $LD_LIBRARY_PATH to contain only "/usr/local/lib", but that didn't help. # echo $PKG_CONFIG_PATH /usr/local/lib/pkgconfig/:/usr/lib/pkgconfig/ # echo $LD_LIBRARY_PATH /usr/local/lib # echo $LDFLAGS -L/usr/local/lib The contents of "/usr/local/lib/pkgconfig/" is # ls /usr/local/lib/pkgconfig/ freetype2.pc glib-2.0.pc gmodule-2.0.pc gobject-2.0.pc gthread-2.0.pc and to me that doesn't seem like the problem. After all pkg-config reports that I have glib-2.4.2 which is correct. So the question is why can't the configure for pango find the right glib!? Does anyone have any ideas about what might be wrong here? Some general info: Running mandrake 9.2 on pentium III. (No, I'm not interested in upgrading to mdk 10 right now even though it would solve this problem, and there doesn't seem to be any precompiled versions of this stuff for mdk 9.2.) *Many* thanks in advance!!! |
run
ldconfig /usr/local/lib and then try again hope it helps |
All times are GMT -5. The time now is 08:53 PM. |