Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: ElasticSearch cannot be installed on Mac Silicone (M1 Chip CPU, new Mac devices) #597

Closed
1 of 3 tasks
christopherholst opened this issue Feb 2, 2022 · 6 comments
Closed
1 of 3 tasks
Labels
Bug Bugs Needs review Tickets that need review

Comments

@christopherholst
Copy link

christopherholst commented Feb 2, 2022

  • I've checked the issue queue and could not find anything similar to my bug.
  • I'm on the latest version of valet-plus (valet --version): Valet+ 2.3.0
  • I've run valet fix and valet install after updating and before submitting my issue/feature.

What is the problem?
A description of what you think the problem is.
ElasticSearch cannot be installed on Mac Silicone.

What was supposed to happen?
A description of what you think was supposed to happen.
ElasticSearch installation for valet on Mac Silicone.

What actually happened?
A description of what actually happened.

[libyaml] Installing
[elasticsearch] Installing
1 : Warning: elasticsearch has been deprecated because it is switching to an incompatible license. Check out `opensearch` instead!
Error: elasticsearch: no bottle available!
You can try to install from source with:
  brew install --build-from-source elasticsearch
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.


In Brew.php line 109:

  Brew was unable to install [elasticsearch].


elasticsearch [<mode>]

How to reproduce this?
A step by step guide on how to reproduce this issue.
valet elasticsearch install

What is the solution?
A way but, this works not for me, because "elasticsearch-full error 19968" in services list.
They think we started as root but we didnt.

softwareupdate --install-rosetta
brew tap elastic/tap
brew install elastic/tap/elasticsearch-full
brew services start elasticsearch-full
curl localhost:9200

Sources
All sources related to the bug. If the bug uses external tools like PHP extensions it should at
least contain a link to the tool. Any other media which proves helpful can be included here.

@christopherholst christopherholst added Bug Bugs Needs review Tickets that need review labels Feb 2, 2022
@leandrofreire08
Copy link

same problem here...looks like we need to replace by this opensearch

@paganel10
Copy link

Anyone has been able to successfully install elastic/opensearch ? Any link will be appreciated.

@christopherholst
Copy link
Author

1.) https://www.oracle.com/java/technologies/downloads/#jdk17-mac
Arm 64 DMG Installer <- download and install this
2.) softwareupdate --install-rosetta
3.) brew tap elastic/tap
4.) brew install elastic/tap/elasticsearch-full --build-from-source
5.) Edit Configuration in: /opt/homebrew/etc/elasticsearch/elasticsearch.yml
6.) start in terminal only "elasticsearch" because "brew services start elasticsearch-full" actualy doesnt work
after that you can check with
7.) curl localhost:9200
this works for me

@mrabdulhannan
Copy link

mrabdulhannan commented Jun 2, 2022

For Mac using Valet+ and already installed elasticsearch that stopped:

brew tap elastic/tap
brew unlink elasticsearch
brew install elastic/tap/elasticsearch-full
brew services start elasticsearch-full

@mischabraam
Copy link
Member

elastic/homebrew-tap#144 Needs te be fixed. Tapping this causes a warning output.

@mischabraam
Copy link
Member

See #625
Moved to Docker for Elasticsearch in version 3.x-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bugs Needs review Tickets that need review
Projects
None yet
Development

No branches or pull requests

5 participants