在使用苹果的brew install homebrew/php/php55的时候提示 Cannot find OpenSSL's <evp.h>,官方建议查看https://github.com/homebrew/homebrew-php/issues,看一下,第二条就是。
在内容里有人回复,加个参数 吧。。brew install phpxx --with-brewed-openssl,但不幸的是,仍然报上述错误,这时候有人回复了一下,你先装个commandtools吧
XML/HTML代码
- @Anei Wasn't sure which one, but I think this one did the trick:
- Yep, installing the Command Line tools directly from Apple did the trick:
- "Command Line Tools (OS X 10.10) for Xcode - Xcode 6.1.1" (169.94 MB)
- I didn't think that was a solution as I had went into the App Store update and I was "up to date" with the command line tools. Thanks / feel free to close.
点击下载、安装。再brew install,一切顺利解决!