LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-10-2010, 11:12 PM   #1
JamesGT
Member
 
Registered: Oct 2009
Location: St. Louis, MO, USA
Distribution: Slackware64 Live
Posts: 300

Rep: Reputation: 51
How to uninstall PHP?


I am running Slackware 12.2 on my webserver and I've configured and compiled PHP from source.

I'd like to uninstall it, but there is no package. I've never tried to remove software without a package before. Do I just delete all the directories PHP is in?
 
Old 10-10-2010, 11:58 PM   #2
brixtoncalling
Member
 
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403

Rep: Reputation: 67
If you still have the source, try "make uninstall".
 
Old 10-11-2010, 09:25 PM   #3
JamesGT
Member
 
Registered: Oct 2009
Location: St. Louis, MO, USA
Distribution: Slackware64 Live
Posts: 300

Original Poster
Rep: Reputation: 51
"No rule to make target "make uninstall"".
 
Old 10-11-2010, 11:08 PM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Use src2pkg with the same configuration parameters that you used to build the original code; that should result in a package with the same files in it. Install the package and uninstall it.
 
1 members found this post helpful.
Old 10-11-2010, 11:13 PM   #5
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 543

Rep: Reputation: 121Reputation: 121
configure with the same settings and build again before 'make uninstall'. if it fail, create /tmp/php and do 'make install DESTDIR=/tmp/php'. check it and remove the files by hand. dirty but should work...
 
Old 10-13-2010, 09:07 PM   #6
JamesGT
Member
 
Registered: Oct 2009
Location: St. Louis, MO, USA
Distribution: Slackware64 Live
Posts: 300

Original Poster
Rep: Reputation: 51
That didn't work too well. Gives me an error that php-5.3.0.tar.gz is not a valid archive.

Code:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
FAILED!
This may be caused by a defective or non-tar archive. Exiting...
 
Old 10-14-2010, 01:16 AM   #7
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by JamesGT View Post
That didn't work too well. Gives me an error that php-5.3.0.tar.gz is not a valid archive.

Code:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
FAILED!
This may be caused by a defective or non-tar archive. Exiting...
Umm, what didn't work too well?
 
Old 10-14-2010, 07:00 AM   #8
JamesGT
Member
 
Registered: Oct 2009
Location: St. Louis, MO, USA
Distribution: Slackware64 Live
Posts: 300

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by Richard Cranium View Post
Umm, what didn't work too well?
Sorry...

Code:
src2pkg http://www.php.net/get/php-5.3.0.tar.gz/from/ro2.php.net/mirror
gives...

Code:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
FAILED!
This may be caused by a defective or non-tar archive. Exiting...
 
Old 10-18-2010, 07:33 PM   #9
JamesGT
Member
 
Registered: Oct 2009
Location: St. Louis, MO, USA
Distribution: Slackware64 Live
Posts: 300

Original Poster
Rep: Reputation: 51
What would happen if I did...

Code:
whereis php
and deleted everything it listed, then recompiled from scratch to put all the files back with the new configuration parameters? Would that work or would it make it horribly worse?
 
Old 11-03-2010, 06:47 AM   #10
JamesGT
Member
 
Registered: Oct 2009
Location: St. Louis, MO, USA
Distribution: Slackware64 Live
Posts: 300

Original Poster
Rep: Reputation: 51
That worked.

I went through and deleted all the folders where it pointed to PHP with "whereis", deleted the php.ini file under /etc/httpd and recompiled from source. It put everything back and it runs like it should with it's new compiled configuration.
 
Old 11-27-2010, 12:02 AM   #11
annyphp
LQ Newbie
 
Registered: Nov 2010
Posts: 4

Rep: Reputation: 0
You can click "make uninstall".

Last edited by unSpawn; 12-04-2010 at 10:06 AM.
 
Old 11-27-2010, 09:16 AM   #12
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Quote:
Originally Posted by JamesGT View Post
Code:
src2pkg http://www.php.net/get/php-5.3.0.tar.gz/from/ro2.php.net/mirror
Does src2pkg even work via net like that? Why not download the tar and do it?
 
Old 11-28-2010, 08:37 AM   #13
JamesGT
Member
 
Registered: Oct 2009
Location: St. Louis, MO, USA
Distribution: Slackware64 Live
Posts: 300

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by annyphp View Post
You can click "make uninstall".
I tried make uninstall but it didn't work, see above.
 
Old 11-28-2010, 08:38 AM   #14
JamesGT
Member
 
Registered: Oct 2009
Location: St. Louis, MO, USA
Distribution: Slackware64 Live
Posts: 300

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by dive View Post
Does src2pkg even work via net like that? Why not download the tar and do it?
I downloaded the tar and did it as well, I got the same error.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] uninstall defalt php Buddhike G Linux - Software 4 09-03-2007 10:58 PM
how to uninstall php in slackware? anwar Slackware 3 05-03-2007 09:44 PM
uninstall php TenEighty Linux - Software 1 12-26-2005 10:20 AM
Uninstall postgresQL and PHP vickr1z Linux - Newbie 1 09-14-2004 05:39 PM
php uninstall bnumark Linux - Software 1 06-28-2003 04:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration