Many GTK Installation problems
Ok, I have glib and ATK set up, I know I already posted this, but this will be much cleaner and easier to understand. The issue I have with GTK installation is the installation of Pango. Here's the message I got when I tried to install it on Mandrake 10.1 Official:
Code:
[simon@localhost pango-1.8.0]$ ./configure --prefix=/usr Here's what I got Code:
[simon@localhost freetype-1.3.1]$ make |
Why are you trying to install pango by compiling? The easiest way is to install the RPM that is in the distribution and
you've already (probably) got most of it installed already. I guess you're really trying to install something else that requires pango and that software's configure told you it couldn't find pango. What you're missing are the -devel packages. So to be able to compile anything that requires pango you need to 'urpmi pango-devel' (or possibly 'urpmi libpango1.0_0-devel'). As an example on how to find out what package that needs to be installed: In your pango-compilating example, it whines about not finding "fontconfig.pc" An 'urpmf fontconfig.pc' tells you it's in the "libfontconfig1-devel" package, so an 'urpmi libfontconfig1-devel' is what's needed. - Peder |
I guess I needed the stuff I thought was pointless in the other post, search GTK binary and it will come up, it'll tell you my problem, my whole day at the computer trying to fix it.
libfuntconfig1-devel etc didn't exidt and urpmi pango said everything already installed. Basically what I'm trying to do is update, and I like compiling more because it let's you have more control over it. |
Quote:
He wants to install GIMP 2.2.1, which requires the new GTK 2.6, which Mandrake (URPMI) doesn't have. Therefore, he has to compile from source. GTK requires 3 dependencies - ATK, Pango, and GLIB that must be recent v ersions, I believe, which Mandrake (URPMI) is also behind on. otherwise, he could have just URPMI GTK and avoided this whole problem! |
You may need to install the devel packages of the dependencies that are said to be missing after running ./configure. No need to reinstall freetype etc coz it's already on your system, just use urpmi or rpmdrake to install the devel packages that the pango ./configure says are missing.
|
We've figured out that it would be easier to just reinstall Mandrake because it is so messy right now.
|
To avoid future mess I'd not recommend installing you new stuff in /usr (as in ./configure --prefix=/usr)
I always prefix to /opt/<package> (in your case --prefix=/opt/pango-1.8.0 , --prefix=/opt/gimp-2.2.1 et.al.) Then I use 'stow' (a perl script from your favorite GNU mirror) to make symbolic links in /usr/local ( stow -d /opt -t /usr/local pango-1.8.0 ). I also have to point PKG_CONFIG_PATH to /usr/local/lib/pkgconfig and add a "/usr/local/lib" in /etc/ld.so.conf.d/local.conf (the new place in 10.1) This way I'm not messing anything up in my normal filesystem and every package is neatly separated from each other and thus easily removable ( stow -D -d /opt -t /usr/local pango-1.8.0 && rm -rf /opt/pango-1.8.0 ). - Peder |
If you install gtk, pango, atk and glib in a different prefix to the old one (the one installed by rpm), the system may still point to the old versions. If you are installing stuff in /usr, you just have to be extra careful and know what you are doing coz mistakes can break your system.
|
I have installed my GTK, including ATK, PANGO, and GLIB, in my /usr and so far, I have had no problems with my system. I was given this advice by another forum user in the LInux - Software thread and it has saved me a lot of trouble. I'm just passing along what I learned, what works for me, and what was the easiest.
|
I use GIMP 2.2.3 compiled from source and it works just fine with Mandrake's version of GTK.
All you need to do is install the proper devel packages using urpmi. |
Ok, Mandrake has been reinstalled, ATK installed, Glib installed, but I'm still where I was before with Pango. Help! This is getting really annoying!
Would it help me if I installed Pango from the command line instead of from within X? |
No, that didn't work outside of X
|
Weird! Maybe install Fontconfig via Mandrake Control. Try this:
Open up your Mandrake Control Center --> software --> INSTALL --> search for fontconfig. Install all things related to fontconfig. After installing fontconfig, try making Pango again. |
If this is the error you still get:
Quote:
If you see an error like this and don't know which package holds the fontconfig.pc file, the easiest way is to run 'urpmf fontconfig.pc' . That'll answer : "libfontconfig1-devel:/usr/lib/pkgconfig/fontconfig.pc" So what you have to do is run 'urpmi libfontconfig1-devel' Then you'll have to get freetype2. In your first post you compiled freetype-1.3.1 and according to the GIMP INSTALL file you need freetype2. - Peder |
That might've been my problem thee whole time! 1.3.1 was at the top of the download list. I'll do that later though, i gotta go to school. I'll check in later and check if anythings changed
|
Well, it wasn't the reason you couldn't compile it. Freetype-1.3.1 should compile just fine.
But according to it's initial error message it's missing Xlib.h, Xutil.h and cursorfont.h. You'll have to urpmf those files and find out which devel to install. (I think they're in the same rpm.) - Peder |
Fontconfig wasnt in Mandrake Control Center under Software Install, so I downloaded and installed freetype, then I downloaded fontconfig untarred it, and when I did ./configure, here's what I got:
Code:
[simon@localhost fontconfig-2.2.3]$ ./configure |
I just tried urpmi expat, everything already installed. It's almost like when Mandrake installs it installs to the wrong places.
|
Quote:
Perhaps try downloading expat from source and ./configure it. Then go back and try freetype and see if that works. I don't know why you're running into so many problems. :( |
My computer has something against me lol! But seriously, over the last month even windows has gone all bad. Windoze was slow before, but NOW...
|
We have now gotten somewhere!
Fontconfig has been installed! My only problem is that my computer doesn't know that, I still have the same pango error. Maybe some paths have to be exported. |
Quote:
Code:
ldconfig |
Either you're not describing what you're doing accurately, or you haven't understood my previous posts.
If a compilation can't find something you need to install the -devel package. Instead of compiling fontconfig you could have run 'urpmi libfontconfig1-devel' (or possibly just 'urpmi fontconfig-devel') So when it couldn't find the expat package you should've installed the expat-devel (it might possibly be called libexpat-devel or something similar). If you have compiled and installed something successfully into /usr you shouldn't have to do anything, the system should find the files. If you're compiling to /usr/local you have to make sure you have "/usr/local/lib" in /etc/ld.so.conf.d/local.conf As for it not finding pango : make sure there is a /usr/lib/pkgconfig/pango.pc file. If not you probably forgot to add --prefix=usr when you configured pango, and if so you need to run 'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig' and fix /etc/ld.so.conf.d/local.conf as described. - Peder |
Thanks bunnadik, but I tried all of those and it said either everything already installed or package not found. I'll try the other things later, I have to go out right now.
|
All the devel packages you need are available with urpmi, so maybe your urpmi sources aren't properly configured.
Go to Easy Urpmi and check the box that says "show specific sources too" then click on the "proceed to step 2" button. Then choose a source contrib, source main, and source updates and click on the "proceed to step 3" button and copy and paste the commands it shows into a terminal as root. Once you've got the sources configured you can open the package installer and search for "devel" and you will be able to find everything you need. |
AHH! My cd and dvd drive have disappeared! Do I have to mount them, and if I do, how? This happened when I restarted my computer with my SD card in my drive which is installed in my system. When Linux turned on and found the card, it must have gotten confused, and now I have no CD and DVD in Linux, meaning I can't do urpmi.
BTW, ldconfig didnt work, should I have installed fontconfig to /usr? |
Quote:
So when you say that your CD & DVD drive is gone, do you mean in general? If that's the case, then copy/paste your /etc/lilo.conf file for us. Things just seem to get more messier and messier! |
Ok, wait for it, you arent going to beleive it...
IT WORKED!!! PANGO IS INSTALLED AFTER AT LEAST 1-2 WEEKS OF HARD WORK AND EXAMS IN THE MIDDLE! IT WORKED!!! After I did easyurpmi, I tried urpmi libfontconfig1-devel, and I'd like to say sorry to peder because he had the answer the whole time, I just didnt know how to follow it because urpmi didnt install it at first. EDIT: I'm getting a few errors in GTK install, like Tiff loader not found (i fixed it) PNG loader (fixing it) I'll get back to you, this may not be over. |
Here's my new error:
Code:
[simon@localhost gtk+-2.6.1]$ ./configure --prefix=/usr |
I figured out that the CD and DVD drives just disappeared off the desktop, they do actually work even in Linux.
|
|
I just gave up on my idea of source, I exported paths, I've done the works, and so, I'm doing urpmi which I ave tried before but it wasn't up-to-date. So, can someone tell me if this and its dependencies are correct and safe to install
[root@localhost gtk+-2.6.1]# urpmi gtk-devel To satisfy dependencies, the following 10 packages are going to be installed (76 MB): libglib1.2-devel-1.2.10-14mdk.i586 libgtk+1.2-devel-1.2.10-40mdk.i586 libxorg-x11-6.7.0-4.2.101mdk.i586 libxorg-x11-devel-6.7.0-4.2.101mdk.i586 libxpm4-3.4k-28.2.101mdk.i586 libxpm4-devel-3.4k-28.2.101mdk.i586 xorg-x11-6.7.0-4.2.101mdk.i586 xorg-x11-75dpi-fonts-6.7.0-4.2.101mdk.i586 xorg-x11-server-6.7.0-4.2.101mdk.i586 xorg-x11-xfs-6.7.0-4.2.101mdk.i586 Is this OK? (Y/n) Thanx!:Pengy: |
Well, unfortunately that won't work with gimp-2.2 (but it won't hurt either).
According to gimp-2.2.3's INSTALL you need GTK+ version 2.4.4 or better and that'll just give you 1.2.10. The only thing you can/must/should urpmi are libfontconfig1-devel and libfreetype6-devel Do you really need gimp-2.2 or are you doing this just for "fun"? - Peder |
At first, it was just about keeping my computer up-to-date and because I like gimp2.2's features, and since my gtk which I had wouldn't work, I tried installing gtk. Gimp was missing glib, so I did try just installing that, but then it said gtk wasnt found or something, so I just started installing the full gtk.
I'll explain the rest later, gotta go to class, I'm checking in in between. |
Just a thought, but if you go ahead and install that older version of GLIB, URPMI will install all its dependencies, as you saw in that list. After that, try and compiling the SOURCE of the most recent GLIB version since you now have all its dependencies then maybe that will get you the most recent version? Perhaps that is why I was able to compile from source with no problems.
|
That makes good sense, and I'll try it when I get home.
|
You need to do:
urpmi libglib2.0_0-devel libgtk+2.0_0-devel to get the correct version. |
I did urpmi gtk-devel, and then I installed it and then the new one. Everything went fine, atk, pango, glib, and ./configure --prefix=/usr worked on gtk, but og course, here's what make said. The whole thing wouldnt fit, I'll show you where all the errors happened.
Code:
../../gdk/gdkdrawable.h:94: error: syntax error before "PangoFont" |
LOL it's one thing after another, isn't it? I really have no clue as to why things are so messy with compiling, although it's not your fault, of course. I really don't know how else to help you. :( I'll continue following this thread and pitch in when I can.
GOod luck! |
When this is fixed, its definitely going in success stories!
|
Quote:
You really don't need to be compiling a new version of gtk2, glib, pango or anything else. Mandrake's versions of these libraries are perfectly sufficient for compiling the latest GIMP. And you may also end up breaking mandrake control center, rpmdrake, and all of the other system configuration utilities which are based on gtk. |
Quote:
According to this http://www.gimp.org/downloads/install_help.html you need GTK+ 2.4.4, GLib 2.4.5, Pango 1.4.0, atk, PangoFT2 and libart2 Code:
urpmi libglib2.0_0-devel - Peder |
Ive given up, I need to know how to uninstall the new atk, pango, and glib stuff, and then I'll use the stuff on urpmi because it should work. Can someone help me?
|
Just do:
make uninstall for each package in the directory where you compiled it. |
And now I'm back where I was bbefore this GTK problem started with gimp.
Uh, never mind, more important issue! I uninstalled gtk, pango, atk, and glib, and now Gnome Terminal wont start, mandrake control center wont start, I have really screwed this up, what do I do? |
Did you install the gtk stuff in /usr?
If you did, then the package manager may think the packages are still installed, even though they aren't. Check it and see if it still lists them as installed. If it doesn't, then you can just reinstall them and your problem should be fixed. If it does show them as still being installed, you're going to have to force each package to be uninstalled by doing this: rpm -e --nodeps libatk1.0_0 libatk1.0_0-devel rpm -e --nodeps libpango1.0_0 libpango1.0_0-devel rpm -e --nodeps libglib2.0_0 libglib2.0_0-devel rpm -e --nodeps libgtk+2.0_0 libgtk+2.0_0-devel Then you can just use the package manager to reinstall them. |
Uh oh
We have a problem I just got gtk to work!!!!!!!! That's right, gtk is now installed! I tried just going through the whole GTK install again, and I guess something went wrong the first time, because the install worked! I know it worked as well, because gimp install detected it! But theres a new error with gimp. Hopefully not as frustrating as this one, but there is. Here it is. Code:
[simon@localhost gimp-2.2.3]$ ./configure --prefix=/usr Code:
root@localhost gimp-2.2.3]# urpmi libgtkhtml-devel Quote:
|
YES! Install it. YOu're like almost there to getting Gimp installed.
|
You should also do:
urpmi libgimpprint1-devel libexif9-devel libmng1-devel librsvg2_2-devel libaa1-devel |
I would have done it straight away but there were so many depencencies that there might be something that could very easily go wrong.
|
All times are GMT -5. The time now is 06:04 PM. |