我在终端中非常棒,所以我想开始学习PHP和Laravel 4,我已经设置了Apache服务器并安装了Homebrew来安装所有其他的PHP包和堆肥等等,但是当我和#39;我试图在Homebrew上安装PHP,我总是收到错误:
这是我尝试安装的命令:
brew install php53
我收到以下错误消息:
make: *** [sapi/cli/php] Error 1
make: *** Waiting for unfinished jobs....
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libs/libphp5.bundle] Error 1
READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
https://github.com/josegonzalez/homebrew-php/issues
/usr/local/Library/Homebrew/utils.rb:319:in `rescue in open': uninitialized constant
GitHub::OpenSSL (NameError)
from /usr/local/Library/Homebrew/utils.rb:304:in `open'
from /usr/local/Library/Homebrew/utils.rb:345:in `issues_matching'
from /usr/local/Library/Homebrew/utils.rb:373:in `issues_for_formula'
from /usr/local/Library/Homebrew/exceptions.rb:171:in `fetch_issues'
from /usr/local/Library/Homebrew/exceptions.rb:167:in `issues'
from /usr/local/Library/Homebrew/exceptions.rb:208:in `dump'
from /usr/local/Library/brew.rb:133:in `rescue in <main>'
from /usr/local/Library/brew.rb:72:in `<main>'
我总是运行brew doctor
:
brew doctor
产生以下警告:
警告:您有/ usr / bin / install_name_tool的过期版本 安装。这将导致二进制包安装失败。这个 如果您安装osx-gcc-installer或RailsInstaller,可能会发生这种情况。至 恢复它,您必须重新安装OS X或从操作系统恢复二进制文件 包。
我做错了什么?我该如何解决这个问题?
答案 0 :(得分:0)
似乎其他人有这个问题。一个建议是使用
xcode-select --install
我在这里找到了:https://github.com/Homebrew/homebrew-php/issues/1172
答案 1 :(得分:0)
如果您刚刚安装了xcode工具,则可能还会收到一条错误消息,指出您尚未接受xcode的许可证要求。尝试输入命令:
xcodebuild -license
并按照说明接受xcode T&amp; C.