$ brew info php55 Error: No available formula for php55
こんなとき。
これで直った。
$ brew tap --repair
こないだ Symfony2 勉強会 #9 いってきました。
締めの言葉を待ってたらずっとなくて「かえらなくていいの?」「かえらなくていいの?」って誰も帰らなくて終電のがしたという。熱い人たちが熱く語っていてとても励みになりました。
普段はVirtualBoxの中のUbuntuとか、さくらのVPS上で動かしているので基本Macではphpさわらない状態だったんですが、VirtualBoxだと電池食うしー、やっぱりもっさりするしー、ってんで思い切ってPHP5.5をHomebrewで入れたんですよね。勉強会開始待ちのときに。
MacにHomebrewでPHP5.5をインストールした時のメモ – Qiita
を参考にして動いてたんですけど、いま(2014/5/11)みたらPHP 5.4.24。あれ?
$ php --version PHP 5.4.24 (cli) (built: Jan 19 2014 21:32:15) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
なんで?パスがMac純正に向いてるし。。。設定は合ってる気がするけどなー。あれ、/usr/local/bin 以下にphpなくなってる。。。
$ which php /usr/bin/php $ less ~/.bash_profile export PATH=$(brew --prefix)/bin:$PATH $ brew --prefix /usr/local
php55無いっていわれる。
$ brew info php55 Error: No available formula for php55
んー、あるけど前もこういう名前空間だったかしら?
$ brew search php55 homebrew/php/php55-amqp homebrew/php/php55-memcache homebrew/php/php55-stats homebrew/php/php55-apcu homebrew/php/php55-memcached homebrew/php/php55-stemmer homebrew/php/php55-augmentedtypes homebrew/php/php55-midgard2 homebrew/php/php55-sundown homebrew/php/php55-blitz homebrew/php/php55-mongo homebrew/php/php55-svm homebrew/php/php55-boxwood homebrew/php/php55-mosquitto homebrew/php/php55-swoole homebrew/php/php55-chdb homebrew/php/php55-msgpack homebrew/php/php55-thrift homebrew/php/php55-couchbase homebrew/php/php55-mysqlnd_ms homebrew/php/php55-tidy homebrew/php/php55-crypto homebrew/php/php55-oauth homebrew/php/php55-timezonedb homebrew/php/php55-dbase homebrew/php/php55-opcache homebrew/php/php55-tokyotyrant homebrew/php/php55-dbus homebrew/php/php55-parsekit homebrew/php/php55-twig homebrew/php/php55-dmtx homebrew/php/php55-pcntl homebrew/php/php55-uploadprogress homebrew/php/php55-ev homebrew/php/php55-pdflib homebrew/php/php55-uuid homebrew/php/php55-gearman homebrew/php/php55-pdo-dblib homebrew/php/php55-varnish homebrew/php/php55-geoip homebrew/php/php55-pdo-pgsql homebrew/php/php55-vld homebrew/php/php55-gmagick homebrew/php/php55-phalcon homebrew/php/php55-wbxml homebrew/php/php55-graphdat homebrew/php/php55-proctitle homebrew/php/php55-xcache homebrew/php/php55-htscanner homebrew/php/php55-propro homebrew/php/php55-xdebug homebrew/php/php55-http homebrew/php/php55-protobuf homebrew/php/php55-xhgui homebrew/php/php55-igbinary homebrew/php/php55-pspell homebrew/php/php55-xhp homebrew/php/php55-imagick homebrew/php/php55-pthreads homebrew/php/php55-xhprof homebrew/php/php55-inclued homebrew/php/php55-raphf homebrew/php/php55-xmldiff homebrew/php/php55-intl homebrew/php/php55-redis homebrew/php/php55-yac homebrew/php/php55-ioncubeloader homebrew/php/php55-redland homebrew/php/php55-yaf homebrew/php/php55-jsmin homebrew/php/php55-riak homebrew/php/php55-yaml homebrew/php/php55-judy homebrew/php/php55-runkit homebrew/php/php55-yar homebrew/php/php55-leveldb homebrew/php/php55-scrypt homebrew/php/php55-yaz homebrew/php/php55-libevent homebrew/php/php55-snappy homebrew/php/php55-zmq homebrew/php/php55-libvirt homebrew/php/php55-solr homebrew/php/php55-zookeeper homebrew/php/php55-lzf homebrew/php/php55-sphinx homebrew/php/php55 homebrew/php/php55-mailparse homebrew/php/php55-spl-types homebrew/php/php55-mcrypt homebrew/php/php55-ssh2
気を取り直して「Error: No available formula for php55」でぐぐる。
homebrew – How do I fix the following brew doctor errors? – Stack Overflow
これで直った。
$ brew tap --repair
tapコマンドってなに?とおもったらリポジトリを追加するコマンドとのこと。
これは便利!Homebrewに追加されたtapコマンドはリポジトリを追加して簡単にフォーミュラを増やせる | Macとかの雑記帳
manした?ってマサカリが飛んできた気がした。
$ man brew tap [tap] Tap a new formula repository from GitHub, or list existing taps.
tapの意味・用例|英辞郎 on the WEB:アルク
「軽く打つこと」意味わからんわ。「〔たるから注いだ〕酒、ビール◆たるの味わいが残るものを指す。」こっちか?
Homebrew/homebrew-php Common upgrade issues
コモンイシューだった。
php formula missing? · Issue #1034 · Homebrew/homebrew-php
んー、自分でなんかやったかなー。シンボリックリンクいじったりした記憶は無いけどなー。
Symfony2 の勉強しようとしたらこれですよ!
Popular Posts:
- None Found