user3787971
user3787971

Reputation: 457

error when running brew install 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've run brew doctor, brew update, brew cleanup ect... and still keep getting this error. It appears it has something to do with a bug in Yosemite.

When I run

 brew install Caskroom/cask/java

It says it's already installed. What give!

Does anyone know how to fix this?

Upvotes: 4

Views: 5403

Answers (1)

aarti
aarti

Reputation: 2865

This 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

Upvotes: 3

Related Questions