Rails 4.1无法使用Homebrew在Mac OS X Yosemite上安装Elasticsearch

时间:2015-02-14 18:12:07

标签: ruby-on-rails ruby macos elasticsearch homebrew

想要使用Elasticsearch,我可以将Searchkick gem用于我的应用程序。在firefox上安装了最新版本的java。安装了Searchkick宝石。但是当我输入brew install elasticsearch get和错误消息时

 /usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
    /usr/local/bin/brew: line 21: /usr/local/Library/brew.rb: Undefined error: 0

安装了Homebrew,检查我是否运行了ruby -e" $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"并得到了

It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:

有解决方法,还是我必须下载Elasticsearch文件并手动安装?

1 个答案:

答案 0 :(得分:1)

这似乎是自制和优胜美地的问题。也许这有用吗? https://apple.stackexchange.com/questions/153790/how-to-fix-brew-after-its-upgrade-to-yosemite