我刚刚通过使用 homebrew 和这样的命令在 osx 中安装了 php。
$ brew install --without-apache --with-fpm --with-mysql php55
安装后我收到以下消息。
要在登录时启动 php55:ln -sfv /usr/local/opt/php55/*.plist ~/Library/LaunchAgents 然后现在加载 php55:launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php55.plist
但最后一句应该是launchctl load ~/Library/LaunchAgents/homebrew-php.josegonzalez.php55.plist
。此问题已在 github 问题页面中。
https://github.com/josegonzalez/homebrew-php/issues/663
我认为这只是文本的微小变化,所以我将项目分叉并通过git clone
,克隆到本地。并寻找这样的文字写的地方。
find . -type f -name "*.*" -print0 | xargs -0 grep "mxcl"
./Contributions/Using FPM.md:0. `brew update && brew pull https://github.com/mxcl/homebrew/pull/12093`
./Contributions/Using FPM.md:For PHP-FPM to work with OS X built-in Apache, you need to install mod_fastcgi. There is a formula for that at https://github.com/mxcl/homebrew/pull/12093 (hopefully, soon within Homebrew).
./Contributions/Using FPM.md: brew pull https://github.com/mxcl/homebrew/pull/12093
./Formula/abstract-php.rb: opoo "INTL is broken as of mxcl/homebrew#03ed757c, please install php#{php_version_path.to_s}-intl" unless build_intl?
./Formula/abstract-php.rb: icu4c is broken as of mxcl/homebrew#03ed757c, so you will need to install intl as
./README.md:This repository contains **PHP-related** formulae for [Homebrew](https://github.com/mxcl/homebrew).
据我所知,与说明文本没有任何关系。我完全错误地解决这样的问题吗?
我想知道有没有更有效的方法来查找文本,还是我应该逐行阅读代码以找到该位置?