elasticsearch,homebrew,Ruby On Rails,elasticsearch,Homebrew" /> elasticsearch,homebrew,Ruby On Rails,elasticsearch,Homebrew" />

Ruby on rails 安装旧版本的Elasticsearch

Ruby on rails 安装旧版本的Elasticsearch,ruby-on-rails,elasticsearch,homebrew,Ruby On Rails,elasticsearch,Homebrew,正在运行brew安装elasticsearch@2.0.0,我得到了: Error: No available formula with the name "elasticsearch@2.0.0" ==> Searching for a previously deleted formula (in the last month)... Warning: homebrew/core is shallow clone. To get complete history run: git

正在运行
brew安装elasticsearch@2.0.0
,我得到了:

Error: No available formula with the name "elasticsearch@2.0.0" 
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
   git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
==> Searching local taps...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.

我如何开始安装elasticsearch@2.0.0在我的Rails应用程序中。

Homebrew目前不支持2.0.0版Elasticsearch。如果您运行:

brew search elasticsearch
您将看到当前支持的Elasticsearch版本,homebrew允许您安装该版本。在回答此问题时,2.x系列中唯一受自制软件支持的版本是2.4

如果必须安装2.0.0,您可以自己安装。您可以在安装脚本期间下载该版本并运行安装命令

如果必须使用2.0.0,并且必须使用自制,则始终可以创建自定义公式。只需运行以下命令:

brew create <url to zip>
brew创建
然后修改生成的ruby文件以运行正确的安装命令(提示:可以从2.4公式中复制)