当我尝试使用自制软件安装时,elasticsearch-full 再次出现错误

Nic*_*ick 9 homebrew elasticsearch

我正在尝试使用自制软件安装elasticsearch-full。我正在使用以下命令。

brew tap elastic/tap     
brew install elastic/tap/elasticsearch-full
Run Code Online (Sandbox Code Playgroud)

它返回以下错误。

Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the elastic/tap tap (not Homebrew/brew or Homebrew/core):
  /usr/local/Homebrew/Library/Taps/elastic/homebrew-tap/Formula/elasticsearch-full.rb:9

Error: No such file or directory - /usr/local/var/homebrew/linked/elasticsearch-full 
Run Code Online (Sandbox Code Playgroud)

请找到java版本, 在此输入图像描述

谁能帮我解决这个问题。谢谢。

nhu*_*ann 11

我今天刚刚遇到这个问题。我在弹性存储库的问题评论中找到了解决方案。我将链接下面的评论,但以下是我解决此问题所采取的步骤:

brew remove elasticsearch-full
brew untap elastic/tap
brew update -v
brew tap elastic/tap
brew update -v
brew install elasticsearch-full
Run Code Online (Sandbox Code Playgroud)

您可以通过在后面添加包名称来对任何其他受影响的包执行此操作elasticsearch-full

以下是原始问题评论的链接: https://github.com/elastic/homebrew-tap/issues/110#issuecomment-964778575


小智 5

看看这里的评论。这有效! https://github.com/elastic/homebrew-tap/issues/146#issuecomment-1616542113

in /opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/elasticsearch-full.rb:68. 
Run Code Online (Sandbox Code Playgroud)

它对我有用。或者

  service do
    run opt_bin/"elasticsearch"
    require_root false
    working_dir var
    log_path var/"elasticsearch.log"
    error_log_path var/"elasticsearch.log"
    environment_variables ES_JAVA_HOME: "/Library/Java/JavaVirtualMachines/jdk-11.0.11.jdk/Contents/Home"
  end 
Run Code Online (Sandbox Code Playgroud)