How do I uninstall a program that I compiled?

If none of the more specific forums is the right place to ask

How do I uninstall a program that I compiled?

Postby s3a » 2009-05-03 05:11

How do I uninstall a program that I compiled? I'm asking because it seems as if I "halfway" installed a program called backintime. On a previous installation of Lenny, I got it working right with the simple ./configure make sudo make install but this time, something went wrong. I see backintime in the menu but the program doesn't launch and when I installed it (or after - I can't remember) it said:

deniz@debian:~$ cd Desktop/backintime-0.9.22
deniz@debian:~/Desktop/backintime-0.9.22$ ./configure
Common: --common
GNOME: --gnome
KDE4: --no-kde4
All OK. Now run:
make
sudo make install
deniz@debian:~/Desktop/backintime-0.9.22$ make
msgfmt -o po/zh_CN.mo po/zh_CN.po
/bin/bash: msgfmt: command not found
make: *** [po/zh_CN.mo] Error 127
deniz@debian:~/Desktop/backintime-0.9.22$

Any help would be greatly appreciated!
Thanks!
Use Mnemosyne to Study for School!
User avatar
s3a
 
Posts: 800
Joined: 2008-07-17 22:13

Re: How do I uninstall a program that I compiled?

Postby penpen » 2009-05-03 05:13

If you still have the folder you extracted the source code into, you should be able to run the following to uninstall it (based on the configure script which was generated):
Code: Select all
make uninstall

This doesn't work all the time (like if no such script exists), but I've found it to work most of the time.
User avatar
penpen
 
Posts: 288
Joined: 2007-03-20 13:38

Re: How do I uninstall a program that I compiled?

Postby acimmarusti » 2009-05-03 05:14

This, generally, does it

Code: Select all
make clean
sudo make uninstall
acimmarusti
 
Posts: 393
Joined: 2009-02-27 04:59
Location: College Park, MD USA

Re: How do I uninstall a program that I compiled?

Postby Soul Singin' » 2009-05-03 06:02

s3a wrote:
Code: Select all
deniz@debian:~/Desktop/backintime-0.9.22$ make
msgfmt -o po/zh_CN.mo po/zh_CN.po
/bin/bash: msgfmt: command not found
make: *** [po/zh_CN.mo] Error 127
deniz@debian:~/Desktop/backintime-0.9.22$


Given what you posted, it looks like the make failed. So long as you didn't run the make install command, then nothing was installed.

More importantly, you should the avoid the make install routine. I recommend building DEB packages from Debianized source, but if that's not available, you can build DEBs with dh_make.


EDIT: Looks like you're in luck. You can build backintime from Sid source It's a great exercise and will only take a few minutes.

Add the following line to your /etc/apt/sources.list file:
Code: Select all
deb-src http://ftp.us.debian.org/debian/ sid main

Then run (as root):
Code: Select all
apt-get update
apt-get install fakeroot
apt-get build-dep backintime

Then create a directory for the build in your normal user's home directory. As normal user, run:
Code: Select all
mkdir backintime-src
cd backintime-src
apt-get source backintime
cd backintime-0.9.20/
dpkg-buildpackage -rfakeroot -us -uc

The build goes pretty quick. Once it's finished you'll find the DEBS in your backintime-src directory and you can install them (as root) with:
Code: Select all
dpkg -i backintime-common_0.9.20-1_all.deb backintime-gnome_0.9.20-1_all.deb

Note that the KDE4 interface will not work on Debian Lenny (for obvious reasons).

If you do not have all of the required dependencies installed, you can resolve them by chasing the dpkg -i command with:
Code: Select all
apt-get -f install


It looks like a pretty cool package. Thanks for the tip!

Have fun!
.
User avatar
Soul Singin'
 
Posts: 1471
Joined: 2008-12-21 07:02

Re: How do I uninstall a program that I compiled?

Postby s3a » 2009-05-03 16:14

That all sounds good for installing it but my problem is how do I uninstall it? I know it's already installed because I see it in my menu on Applications-->System Tools!

Thanks!
Use Mnemosyne to Study for School!
User avatar
s3a
 
Posts: 800
Joined: 2008-07-17 22:13

Re: How do I uninstall a program that I compiled?

Postby Soul Singin' » 2009-05-03 17:03

s3a wrote:That all sounds good for installing it but my problem is how do I uninstall it? I know it's already installed because I see it in my menu on Applications-->System Tools!

And that's exactly why you should NEVER use the make install routine.

For what it's worth, penpen already gave you the answer:
penpen wrote:If you still have the folder you extracted the source code into, you should be able to run the following to uninstall it (based on the configure script which was generated):
Code: Select all
make uninstall

This doesn't work all the time (like if no such script exists), but I've found it to work most of the time.

If it doesn't work, then you'll have to sift through the contents of the Makefile.template file to figure out where everything was installed and then you'll have to manually remove them all.

Have fun!
.
User avatar
Soul Singin'
 
Posts: 1471
Joined: 2008-12-21 07:02


Return to General Questions

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable