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!
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
How do I uninstall a program that I compiled?
Re: How do I uninstall a program that I compiled?
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):
This doesn't work all the time (like if no such script exists), but I've found it to work most of the time.
Code: Select all
make uninstall
-
- Posts: 397
- Joined: 2009-02-27 04:59
- Location: Portland, OR USA
Re: How do I uninstall a program that I compiled?
This, generally, does it
Code: Select all
make clean
sudo make uninstall
- Soul Singin'
- Posts: 1605
- Joined: 2008-12-21 07:02
Re: How do I uninstall a program that I compiled?
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.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$
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
Code: Select all
apt-get update
apt-get install fakeroot
apt-get build-dep backintime
Code: Select all
mkdir backintime-src
cd backintime-src
apt-get source backintime
cd backintime-0.9.20/
dpkg-buildpackage -rfakeroot -us -uc
Code: Select all
dpkg -i backintime-common_0.9.20-1_all.deb backintime-gnome_0.9.20-1_all.deb
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
Have fun!
.
Re: How do I uninstall a program that I compiled?
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!
Thanks!
Use Mnemosyne to Study for School!
- Soul Singin'
- Posts: 1605
- Joined: 2008-12-21 07:02
Re: How do I uninstall a program that I compiled?
And that's exactly why you should NEVER use the make install routine.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!
For what it's worth, penpen already gave you the answer:
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.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):This doesn't work all the time (like if no such script exists), but I've found it to work most of the time.Code: Select all
make uninstall
Have fun!
.