compile howto question

  • skullnotions
Posted: Sun, 03/29/2009 - 12:59
Some source installs can be removed with "sudo make uninstall" but many can't. I have Ardour 2.7 installed from source compile\build\install on my 64studio 2.1 dist-upgraded to lenny. I still have the source directory. What is the best method to remove 2.7 so I can build 2.8? Cheers! Dave.

Compile source code (tuxradar)

  • skullnotions
  • 09/29/07
  • Tue, 03/31/2009 - 18:44
There is a good read about compiling on the TuxRadar site, I went through this howto when it was first in the lxf111 magazine and enjoyed it. It doesn't give you all the dependency answers and leaves you to figure things out for yourself :-) The howto is based on (audacity-src-1.2.6.tar.gz). We have installed on beta3: $ dpkg -l |grep audacity ii audacity 1.3.6-3~hardy1 Still a nice read though and a good reference. Check out the rest of the TuxRadar articles, very nice. Still been searching for the best options to upgrade compiled software with newer versions, and removing\cleaning compiled software. Googling: removing upgrading compiled software removing compiled software upgrading compiled software Cheers! Dave.

checkinstall install

  • skullnotions
  • 09/29/07
  • Mon, 03/30/2009 - 03:12
$ sudo apt-cache policy checkinstall checkinstall: Installed: (none) Candidate: 1.6.1-5ubuntu1 $ sudo apt-cache show checkinstall Depends: libc6 (>= 2.6.1-1), file, findutils (>= 4.2), make Description: installation tracker CheckInstall keeps track of all the files created or modified by your installation script ("make install" "make install_modules", "setup", etc), builds a standard binary package and installs it in your system giving you the ability to uninstall it with your distribution's standard package management utilities. $ dpkg -l |grep libc6 also: file findutils make Download the git repository: git clone http://checkinstall.izto.org/checkinstall.git Later you can keep your local copy up to date with: git pull http://checkinstall.izto.org/checkinstall.git master run: $ git clone http://checkinstall.izto.org/checkinstall.git $ cd checkinstall/ $ emacs README & $ emacs INSTALL (notes) make su make install checkinstall "make install" goes first because we have no checkinstall installed yet :) "checkinstall" goes latter so we can have a properly installed (and removable) package for checkinstall-1.6.1 (Be sure to read the README if you're planning on building RPM or Debian binary packages) run: $ cat INSTALL $ make $ sudo make install $ sudo find / -name "*checkinstall" /usr/local/lib/checkinstall /usr/local/sbin/checkinstall Back to reading the howto for checkinstall. Cheers! Dave.

sudo scons uninstall

  • skullnotions
  • 09/29/07
  • Sun, 03/29/2009 - 15:43
Hi Pablo, Thanks again, I'd forgotten all about sudo scons uninstall :-} Ardour 2.8 also on 2.1 dist-upgraded lenny kde4 now. Hi youki, Thanks, very useful :-) I'm going to do a test run using checkinstall on beta3. Cheers! Dave.

I forgot...

  • youki
  • 12/29/07
  • Sun, 03/29/2009 - 15:05
... to say that if you want to upgrade the package from the repos again you just make : echo "name_of_the_package install" | dpkg --set-selections I'm happy that it's useful.

Re: checkinstall

  • skullnotions
  • 09/29/07
  • Sun, 03/29/2009 - 14:24
Thanks youki, Very nice :-) Made a note of that. It helps a lot. In the past I've searched and removed the files manually but there has to be a better method than manual removal of individual files when make make install has been used. Also applications installed with python, manual removal seems to be a tedious method of removal. Cheers! Dave.

checkinstall

  • youki
  • 12/29/07
  • Sun, 03/29/2009 - 14:01
It's not a solution to your problem but just how i do to avoid this problem. I usually create a .deb package using checkintall at the moment of installation : sudo checkinstall make install or # checkinstall scons install After i mark this package on "hold" that it won't be upgraded if it's in the repos also (like ardour for example) : sudo su echo "name_of_the_package hold" | dpkg --set-selections To check the list of the packages marked as hold : dpkg --get-selections | grep hold Hope it'll help at least a bit.

Re: scons

  • skullnotions
  • 09/29/07
  • Sun, 03/29/2009 - 13:41
Thanks Pablo, Will do, but what about other applications installed with make make install when a newer version is available? Is there some method to clean up the old install before compiling the newer version. Cheers! Dave.

scons

  • Pablo
  • 07/11/07
  • Sun, 03/29/2009 - 13:35
Hi Dave, I think you should use "sudo scons uninstall" and "scons -c". But look at: http://ardour.org/building Cheers! Pablo.