简体   繁体   English

安装旧版本的Elasticsearch

[英]Installing older version of Elasticsearch

Running brew install elasticsearch@2.0.0 , I'm getting: 运行brew install 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.

How do I go about installing elasticsearch@2.0.0 in my Rails App. 如何在Rails应用程序中安装elasticsearch@2.0.0。

Homebrew does not currently support 2.0.0 of Elasticsearch. Homebrew当前不支持Elasticsearch 2.0.0。 If you run: 如果您运行:

brew search elasticsearch

You will see the currently supported version of Elasticsearch that homebrew allows you to install. 您将看到Homebrew允许您安装的当前受支持的Elasticsearch版本。 At the time of this question, the only version in the 2.x series that is supported by homebrew is 2.4. 在提出此问题时,自制软件支持的2.x系列中的唯一版本是2.4。

If you must have 2.0.0, you can always download it directly and install it yourself. 如果必须安装2.0.0,则始终可以直接下载并自行安装。 You can just download the version during your install script and run the install commands. 您只需在安装脚本期间下载版本并运行安装命令即可。

If you must use 2.0.0 and you must user homebrew, you can always create a custom formula. 如果必须使用2.0.0并且必须使用自制软件,则始终可以创建自定义公式。 Just run the command: 只需运行以下命令:

brew create <url to zip>

Then you modify the resulting ruby file to run the correct install commands ( hint : you can copy from the 2.4 formula). 然后,您修改生成的ruby文件以运行正确的安装命令( 提示 :您可以从2.4公式进行复制)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM