LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-02-2009, 01:16 PM   #1
lgp171188
LQ Newbie
 
Registered: Apr 2009
Posts: 16

Rep: Reputation: 0
Question Issues with custom built glib


I built the latest version of glib and installed it with appropriate usage of ldconfig. But after the install, a lot of Nautilus's behaviour has gone awry.

I want to uninstall the built glib and use ubuntu's version. But unfortunately I deleted the source folder where I built it. So I now have the tarball of the source.

When I do a make uninstall on the extracted source, it gets uninstalled but gdm doesn't start till i do a 'make install' again. I want to use the version of glib shipped with ubuntu. How to do it?
 
Old 04-02-2009, 01:36 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Probably both got mixed. When you did make install you overwrote your native glib, then with uninstall you removed glib completely, so you would need to reinstall whatever glib version you want to use.

For the next time I'd suggest never installing custom packages into your / system. If you are compiling them yourself it's very little extra work to add a different --prefix in your configure stage, so you will have your glib library on your system, and you will be able to use the custom version by tweaking your LD_LIBRARY_PATH for those programs that need the custom version for whatever reason.
 
Old 04-02-2009, 01:47 PM   #3
lgp171188
LQ Newbie
 
Registered: Apr 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Question Issues with custom built glib

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.

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?

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.

A few undesirable things that happen are - weird behaviour Nautilus, inability to mount media automatically and etc.
 
Old 04-02-2009, 02:24 PM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by lgp171188 View Post
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.
 
Old 04-14-2009, 01:57 PM   #5
lgp171188
LQ Newbie
 
Registered: Apr 2009
Posts: 16

Original Poster
Rep: Reputation: 0
How do I remove the custom installed version and installed the version in the ubuntu repository? A lot of stuff right from mounting drives, functionalities of Nautilus have got affected and hence are not working properly at all. Is there a way out of this mess I have caused?
 
Old 04-14-2009, 02:53 PM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
I would try to "make uninstall" everything you installed by hand. And then install all these same package one by one from the ubuntu repositories. However at this point is hard to predict if everything is going to work ok. But if something still fails we might be able to track it down and fix it if we are lucky.
 
Old 04-14-2009, 10:55 PM   #7
lgp171188
LQ Newbie
 
Registered: Apr 2009
Posts: 16

Original Poster
Rep: Reputation: 0
I, unfortunately have deleted the extracted sources which i built - gtk, glib and pango. Can i uninstall it by doing a make on these sources afresh and then doing a make uninstall?
 
Old 04-14-2009, 11:38 PM   #8
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Yes. As long as you use the same configure options. If you didn't use any do the same now and it should work ok. I guess that tipically simply using "./configure && make uninstall should work".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Add a custom-built rpm to a repository neildomo Red Hat 6 10-15-2008 09:11 PM
Reusing a custom built kernel on a new installation dizzi Slackware 4 08-01-2007 03:57 PM
Upgrade to etch without upgrading Custom built Xorg kushalkoolwal Debian 2 05-10-2007 12:16 PM
Custom built PC using Linux questions Azalar Linux - Newbie 5 01-17-2006 09:36 PM
Custom Built PC - No Monitor Signal Eklipz Linux - Hardware 12 12-25-2004 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration