brew updateを試すもよくわからないエラーが出て更新できない。
結局brewを削除して新しいversionのを入れて解決
以下参考にしたサイトと手順
Macでhomebrewをアンインストールする - foldrrの日記 (id:foldrr / @foldrr) http://d.hatena.ne.jp/foldrr/20110807/p1
$ cd /usr/local
$ sudo rm -rf Cellar
$ brew prune
$ sudo rm -rf .git .gitignore bin/brew Library/ README.md share/man/man1/brew
$ sudo rm -rf ~/Library/Caches/Homebrew/
$ brew prune
$ sudo rm -rf .git .gitignore bin/brew Library/ README.md share/man/man1/brew
$ sudo rm -rf ~/Library/Caches/Homebrew/
これで削除される(brewでインストールしたアプリの情報も消える)
brewのインストールし直し
$ /usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
>これでtapが使える
tapでapacheが登録されているFomulaを追加する
$ brew tap Homebrew/dupes
$ brew install httpd
apacheの設定ファイルは
/usr/local/etc/apache2にあるhttpd.conf
apacheの起動は
$ apachectl start/stop
OX Xのデフォルトのapacheが動いているとめんどくさいのでシステム設定の[共有]から[Web 共有]のチェックを外す
0 件のコメント:
コメントを投稿