make uninstall しても、homebrewでインストールできない問題

環境
Mac OSX(OS10.7.2) lion

make uninstall しても、homebrewではインストール済になっていることになっていて、できない問題を解決する。

まず、makeインストールして見ましょう

$ tar zxvf libevent-2.0.17-stable.tar.gz
$ cd libevent-2.0.17-stable
$ ./configure
$ make;make clean
$ sudo make install

makeで入れたものをアンインストールします

$ cd libevent-2.0.17-stable
$ make 
$ sudo make uninstall

homebrewで入れ直します

$ brew install libevent

ERROR libevent already exist!

エラーです。homebrew的にはインストールしていると行っているので、アンインストールして上げましょう。

$ brew uninstall libevent # 一度、アンインストールします
$ brew install libevent  # 入れ直します。

これでmake uninstall しても、homebrewでインストールできない問題は解決です。