-
Uninstalling in Linux
After some researching, the way I get it, if I do the following to install a program
Code:
./configure
make
make install
if the uninstall option in Makefile is not available, then I can't uninstall the program with
Right???
So, tell me how would I remove this php installation 'cause I need to start over?
When I do make uninstall it gives
Code:
make: *** No rule to make target 'uninstall'. Stop.
-
did you try the readme?
it's kind of application specific...you could just delete the folder and remove the references to php from your http.conf (if you're using apache that is).
-
There's no readme for uninstalling.
I did whereis php and it returns
Code:
php: /usr/local/bin/php /usr/local/lib/php /usr/local/lib/php.ini
Do I just delete those?
I know how to remove php's reference in http.conf
-
Since it's rare to find an uninstall option in a makefile, some people kludge the uninstall by re-installing the the package by compiling from the same source, running a make, then before installing ,build an .RPM package and install with that. Then use .RPM (or .deb or whatever package management system your distro uses) to remove the install.
Here's a link to help walk you through it....http://www.linuxexposed.com/Articles...packages!.html
-
Helpful stuff. Thnx a lot.
-
You can use another way:
PHP's configure has a --prefix option, which you can use do centralize PHP files (ex. in /usr/php). So if you want to uninstall PHP you simply delete that directory and you're finished. But if you want to access PHP binary files from anywhere (not from /usr/php/bin) you'll have to update your path.
Scribbler's solutions works the thing too ;)
-
Hmm, so if you specify the installation directory, *everything* will be installed installed into that directory? Is it guaranteed for any programs available out there?
-
As I tested, Apache and PHP...I'm not sure for other programs...
-
It will work for any program whos build/install scripts are generated using autotools. (ie> ./configure, make, make install)
Your better off using a package manager such as "apt" or "yum" though.
-
Yes but packages often haven't got complete installation (ex. PHP hasn't got all extensions in package (APT, RPM, TGZ, ...))....