Error starting brew installing elasticsearch and installing Java 1.7 on Yosemite

I'm trying to run

brew install elasticsearch 

I keep getting this error

elasticsearch: Java 1.7+ is required to install this formula.
You can install with Homebrew Cask:
  brew install Caskroom/cask/java

You can download from:
  http://www.oracle.com/technetwork/java/javase/downloads/index.html
Error: An unsatisfied requirement failed this build.

I ran brew doctor, brew update, brew cleanup ect ... and still keep getting this error. This seems to have something to do with the error in Yosemite.

When i started

 brew install Caskroom/cask/java

He says that he is already installed. What gives!

Does anyone know how to fix this?

+4
source share
1 answer

It works for me

Install Java Mac

brew tap caskroom/cask
brew install brew-cask
brew cask install java

Install ES

brew update
brew install elasticsearch
brew info elasticsearch
+3
source

Source: https://habr.com/ru/post/1615498/


All Articles