我正在尝试使用自制程序安装elasticsearch-full。我正在使用以下命令。
brew tap elastic/tap
brew install elastic/tap/elasticsearch-full
它返回以下错误。
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
任何人都可以帮我解决这个问题吗?谢谢。
我今天刚遇到这个问题。我在弹性仓库的问题评论中找到了解决方案。我将链接下面的评论,但以下是我解决此问题所采取的步骤:
brew remove elasticsearch-full
brew untap elastic/tap
brew update -v
brew tap elastic/tap
brew update -v
brew install elasticsearch-full
您可以通过在
elasticsearch-full
之后添加包名称来对任何其他受影响的包执行此操作
以下是原始问题评论的链接: https://github.com/elastic/homebrew-tap/issues/110#issuecomment-964778575
查看此处的评论。这有效! https://github.com/elastic/homebrew-tap/issues/146#issuecomment-1616542113
in /opt/homebrew/Library/Taps/elastic/homebrew-tap/Formula/elasticsearch-full.rb:68.
它对我有用。或者
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
之后
brew tap elastic/tap
在控制台中执行此操作:
cd /usr/local/Homebrew/Library/Taps/elastic/homebrew-tap
git fetch origin pull/144/head:patch-1
git checkout patch-1