Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 06-25-2013, 01:37 PM   #1
LQ Newbie
Registered: Jun 2013
Posts: 1

Rep: Reputation: Disabled
Building package from source isn't replacing default package (Ubuntu)


How do I replace the default version of a package in the default install of my distro (Ubuntu 32-bit server) with the latest version I've built from source?

I've built from source a few packages using the standard ./configure or cmake, then make, then make install and yet although the build process seems to go perfectly in each case with no errors, the older default versions that came with Ubuntu are still being used by the system.

Any ideas please?

Further relevant details if needed:

I'm installing something called Pango, which depends on another package Harfbuzz and also FontConfig. Ubuntu shipped with these. I downloaded and built later versions of each from source, yet checking the installed package afterwards with 'dpkg --get-selections' gives the older version.
So a.) I am not sure Pango is being built with reference to the newer Harfbuzz and Fontconfig 've also built from source beforehand, or instead using the older versions that came with Ubuntu, and b.) my C program that I access Pango API with is I assume using older default Pango too (I just tell the gcc compiler to link with the 'pangocairo' library).

For each package, I am building the source in /usr/local/bin/[package name]/
and 'make install' is putting the compiled libs in /usr/local/lib
I then tried copying compiled libs to /usr/lib but the older versions are still in Ubuntu's default location of /usr/lib/i386-linux-gnu/ - I could try deleting these and copying in the latest versions, but this seems messy - is there a cleaner solution or standard practice (I'm not sure what steps I'm missing out or other files/configs that need updating if I start manually copying!)

Many thanks for any info.

Old 06-25-2013, 08:32 PM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,395

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
1. anything not installed by the pkg mgr will be unknown to the pkg mgr (basically it has a private db that keeps track)
2. for your path issue, edit $PATH in eg .bash_profile to look in the 'new' app dir first, then the old (pkg managed) one.
Old 06-27-2013, 12:38 AM   #3
LQ Newbie
Registered: Jun 2013
Distribution: Ubuntu
Posts: 3
Blog Entries: 4

Rep: Reputation: Disabled
First remove the existing package.
Then build the new package from source and use checkinstall to create a deb file.
Install from the newly created deb file.


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
Building a package from source Alexvader Ubuntu 3 10-11-2012 11:47 AM
Problem facing in building rpm package from source codes Arighna Programming 3 08-19-2011 12:50 PM
Building dep package for 64bit ubuntu 10.10 jmc1987 Linux - Newbie 4 02-24-2011 01:41 PM
Mandriva Package building from Source File(s).. jeevanism Mandriva 1 12-27-2010 07:46 AM
Package building where to grab source rpms tuxtutorials Red Hat 6 05-03-2010 05:26 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:55 AM.

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