I installed elasticsearch with homebrew on Mac OSX Sierra (10.12.5).
The installation with homebrew appears successful and brew info states it is installed meeting all prerequisites.
When I go to run the "elasticsearch" command, I get the following error...
Error: Could not find or load main class -Xms2g
If you have set :
.bashrc or somewhere else, it will probably broke shell pipes and causes problems. Try to remove it.