通过brew安装nginx时出错

时间:2015-03-14 10:39:49

标签: nginx homebrew

Brew install nginx,给我这个错误。原谅我的无知,我是Mac的新手。 > 错误:无法加载此类文件 - requirements / osxfuse_dependency **

  

请举报此错误:http://git.io/brew-troubleshootin    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require'** **/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in要求&#39;    /usr/local/Library/Homebrew/requirements.rb:7:in <top (required)>'** **/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in要求&#39;    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require'** **/usr/local/Library/Homebrew/dependency_collector.rb:4:in&#39;    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require'** **/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in要求&#39;    /usr/local/Library/Homebrew/software_spec.rb:7:in <top (required)>'** **/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in要求&#39;    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require'** **/usr/local/Library/Homebrew/formula.rb:9:in&#39;    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require'** **/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in要求&#39;    /usr/local/Library/Homebrew/cmd/missing.rb:1:in <top (required)>'** **/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in要求&#39;    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require'** **/usr/local/Library/Homebrew/cmd/doctor.rb:1:in&#39;    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require'** **/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in要求&#39;    /usr/local/Library/Homebrew/cmd/install.rb:2:in <top (required)>'** **/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in要求&#39;    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require'** **/usr/local/Library/brew.rb:59:in需要?&#39;    /usr/local/Library/brew.rb:118:in`&#39;

1 个答案:

答案 0 :(得分:0)

经过许多困难时,终于找到了解决方案。

解决方案:首先运行brew install nginx,然后Context