卸载Memcached和/或(力)用自制安装 - 的Mac OS X(Uninstall memca

2019-09-21 05:46发布

I need a memcached on my Mac (os X 10.8), and I began by installing memcached and libevent 'manually' (1). Well, maybe I did this a bit too quickly, and now I'm figuring out that it would be better to install it 'cleanly' with Homebrew.

I think I should first uninstall 'cleanly' libevent and memcached. Should I ? Or should I simply run brew install memcached , and use the function to delete the files Homebrew thinks are to be deleted ? (I mean brew link -f memcached after brew install memcached ; I'm wondering how 'clean' it will be , and if I won't encounter problems hard to solve later on ...)

Thanks for your help !


(1) how I installed libevent:

cd /tmp
wget http://www.monkey.org/~provos/libevent-1.4.13-stable.tar.gz
tar zxvf libevent-1.4.13-stable.tar.gz
./configure
make
sudo make install

and memcached :

wget http://memcached.googlecode.com/files/memcached-1.4.1.tar.gz
tar xzvf memcached-1.4.1.tar.gz
cd memcached-1.4.1
./configure
make
make test
sudo make install
memcached -d -P pidfile -l 127.0.0.1

Answer 1:

双方的Memcached和一个Makefile文件libevent的船舶uninstall目标命令。 假设你仍然有以前配置的源文件; 否则,你需要运行./configure运行任何使命令之前。

cd memcached-1.4.1
sudo make uninstall
cd ../libevent-1.4.1-stable
sudo make uninstall

之后,你应该能够用自制干净安装的一切。



文章来源: Uninstall memcached and/or (force) install with Homebrew - Mac OS X