我刚刚使用带有这样的命令的homebrew在osx中安装了php。
$ brew install --without-apache --with-fpm --with-mysql php55
安装完成后,我得到了一个以下的消息。
要在启动时启动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).
据我所知,与指令文本无关。 我完全错误地解决了这个问题吗?
我想知道有更有效的方法来查找文本,还是应该逐行阅读代码来找到这个地方?