Quote:
Originally Posted by lgp171188
I deleted the folder where I extracted the source and did a make install. Now with make uninstall after extracting from the tarball and a apt-get install libglib2.0-0 ( I use Ubuntu 8.04), still a lot of applications crash and the crashing stops only when I do a make install again.
|
Right now I have not a clear idea of what you did. First of anything else, why are you compiling glib manually? Ubuntu should have it on the repos, there's no distro without glib, it's difficult to find one even if we are talking about embedded stuff.
Did you compile the rest of applications manually as well? Are you using the official ubuntu repos or are you using a .deb file that you downloaded from somewhere else? Glib is a core library for a lot of packages, and you need to use the same version that these packages were compiled against. As long as you stick to the ubuntu official repositories you shouldn't have to worry about that (I am no ubuntu user, but I highly doubt that they would commit such a mistake even if I feel no special sympathy for the distro).
Quote:
Where will the custom glib installed when I did a 'make install' without specifying prefix? Will I be able to specify the prefix during make uninstall?
|
--prefix=/whatever is specified at the ./configure stage, after that make install and make uninstall will use the same configuration, as long as you don't erase that directory or run ./configure again.
Quote:
But what worries me is that after doing a make uninstall and then install my distro's libglib2.0-0 still things are not ok till I do a make install in the source. I'm confused.
|
That's why it's not good to install stuff on / manually. Your package manager knows nothing about that stuff you installed, and then conflicts appear, and some of them will be very difficult to diagnose because you will have no idea where did make install put every single file.
If you have root permissions you can use something like ./configure --prefix=/usr/local, if you don't, the choose a directory under $HOME.
Quote:
A few undesirable things that happen are - weird behaviour Nautilus, inability to mount media automatically and etc.
|
Some of these things might have nothing to do with glib, but I guess you learned the lesson: use your package manager, and if you don't, then isolate whatever you are installing from the rest of the system, so they don't get mixed.