sean finney on 5 Feb 2010 01:01:03 -0800

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Co-existing with the package system & compiled

a slightly old-school, sysadminny approach:

sudo apt-get install stow
sudo mkdir -p /usr/local/stow
./configure --prefix=/usr/local/stow/yourapp-yourversion
make && sudo make install
cd /usr/local/stow && sudo stow yourapp-yourversion

this installs the app into a specific and managable directory, and then
"stows" symlinks out to /usr/local, which is probably included in your
default PATH (and linker path for shared libraries, big plus).  assuming
that /usr/local/bin comes before /usr/bin in your path, anything that
calls "yourapp" without an absolute path should Just Work.  Of course
there are exceptions where this doesn't work so well, and if you're
installing shared libraries that conflict with installed libraries you
may have to elect to compile the app statically instead (usually just
--enable-static --disable-shared or similar with autofoo packages).

I don't like having to do this for more than a small number of packages,
mostly because i'm lazy and would rather work *with* the pkg management
system rather than against it.

if your feeling more adventurous, you could also make your own updated
package (usually you can take the existing source package and just copy
the debian directory onto the new version, and bump the changelog)
and install it locally.  hey, you could even share the updated package
with your favorite distribution :)


On Thu, Feb 04, 2010 at 05:50:27PM -0500, JP Vossen wrote:
> I recently mentioned how much more I like roxterm than Gnome-term, and 
> that I'd suggested an "indicator" system for when background tabs 
> change.  Well, the developer has graciously implemented that suggestion, 
> and now I need to test it.
> If I do 'sudo make install', I'll nuke the stock Karmic package.  I 
> think I'm OK with that--unless something breaks.  According to the docs 
> there is an uninstall target, so 'sudo make uninstall && sudo aptitude 
> reinstall roxterm' *should* fix everything.  I think...
> I tried running the compiled binary without installing it, but it broke, 
> I assume due to mis-matched $other_stuff in $various_places from the 
> existing version.
> Since I am using Ubuntu (and not Gentoo :), I vastly prefer to stay 
> within the packaging system, and while I've used PPAs (for e.g., newer 
> OpenOffice on Hardy) I don't think I've ever had this kind of overlap 
> before.
> What is going to bite me?  Any suggestions?
> If anyone else wants to test it out:
> ###
> $ sudo aptitude install autoconf2.13 libtool gettext libglib2.0-dev 
> libgtk2.0-dev libdbus-glib-1-dev libvte-dev libglade2-dev
> ### Other things might be needed, that was all I needed, but
> ### I've already got quite a bit installed on my Karmic
> $ svn co 
> ROXTerm
> $ cd ROXTerm/
> $ ./
> $ ./configure
> $ make
> #### $ sudo make install
> #### $ sudo make uninstall
> Thanks,
> JP
> ----------------------------|:::======|-------------------------------
> JP Vossen, CISSP            |:::======|
> My Account, My Opinions     |=========|
> ----------------------------|=========|-------------------------------
> "Microsoft Tax" = the additional hardware & yearly fees for the add-on
> software required to protect Windows from its own poorly designed and
> implemented self, while the overhead incidentally flattens Moore's Law.
> ___________________________________________________________________________
> Philadelphia Linux Users Group         --
> Announcements -
> General Discussion  --


Attachment: signature.asc
Description: Digital signature

Philadelphia Linux Users Group         --
Announcements -
General Discussion  --