LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 02-01-2008, 02:40 AM   #1
dk80
LQ Newbie
 
Registered: Apr 2007
Posts: 7

Rep: Reputation: 0
uninstall of compiled apache2 -issue


I compiled/installed a version of apache2 according to a guide, though the guide was made for 2.0.48, and the most recent (and the one I used) is 2.2.8.
It was compiled using a the following commands:
Code:
#./configure --prefix=/usr/local/apache2 --enable-mods-shared=most
#make
#make install
I now need to uninstall it to use the lamp-server package instead, but when attempting this:
Code:
sudo apt-get --purge remove apache2
I get this reply:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package apache2 is not installed, so not removed
The following packages were automatically installed and are no longer required:
libkernlib1 libgraflib1 libg2c0-dev libpacklib1 g77 libpawlib2 libxbae4
libpawlib-lesstif3 lesstif2 cernlib-base g77-3.4 libgd2-xpm atlas3-base
kxterm libgrafx11-1 libpacklib1-lesstif paw-common libg2c0 libgraphviz3
libmathlib2
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

and when
Code:
#make uninstall
I get:
make: *** No rule to make target `uninstall'. Stop.
so what does this mean? How do I get apache2 removed again.
Or might the judgement actually be true, that apache2 isn't even installed in that sense -despite the initial procedures apparently working seamlessly- so I just can delete /usr/local/apache2 and install the lamp-server package instead?
Hope you can help me on this one ..
 
Old 02-01-2008, 05:35 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Since you've used "--prefix=/usr/local/apache2" all you need to do is to delete that directory, to get rid of apache.

Regards
 
Old 02-01-2008, 06:11 AM   #3
dk80
LQ Newbie
 
Registered: Apr 2007
Posts: 7

Original Poster
Rep: Reputation: 0
see I didn't know that Thanks a heap.
 
Old 02-01-2008, 06:26 AM   #4
dk80
LQ Newbie
 
Registered: Apr 2007
Posts: 7

Original Poster
Rep: Reputation: 0
ehm, how do I go about deleting the folder? I can't delete it regularly with trash bin, so I tried
Code:
#sudo rm apache2
while in /usr/local, but it won't.
 
Old 02-02-2008, 09:01 AM   #5
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
To delete a directory recursively you need the "-r" option:
Code:
rm -r apache2
 
Old 02-02-2008, 11:36 AM   #6
dk80
LQ Newbie
 
Registered: Apr 2007
Posts: 7

Original Poster
Rep: Reputation: 0
swell, all seems to have worked perfectly, and lamp-server package is now installed. The terminal returned a lot of weird "you want to do this? well you can't 'cause it's write-protected" type answers, but the folder still got deleted properly.
Under "http://127.0.0.1/apache2-default/" it displays the right "It works!" page, but I seem to be missing a few things:
the only httpd.conf I've found is at /etc/apache2, and it's an empty file?
The apache2.conf from same dir seems to be missing a "DirectoryRoot" entry too? What files/where do I need to find to tweak what folders are used and so on, and phpMyadmin needs to be installed separately? Would think that phpMyadmin were as de facto as LAMP itself and came along with the lamp-server package.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How do you uninstall compiled programs? AriciU Slackware 5 07-07-2007 05:15 PM
Uninstall of compiled software Michael_aust Linux - Newbie 3 05-17-2006 09:47 AM
How to uninstall kaffeine which has been compiled NoodleDoodleMan Linux - Software 13 05-01-2006 10:16 AM
Compiled Apache2 from source... emptystrings Linux - Software 1 11-17-2004 03:44 PM
how to uninstall apache2 which is installed by emerge apache2 flybirdlong Linux - Software 1 07-17-2004 12:46 PM


All times are GMT -5. The time now is 10:15 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration