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

Problems installing Mojito #1009

Open
pmoreno-DTP opened this issue May 27, 2024 · 3 comments
Open

Problems installing Mojito #1009

pmoreno-DTP opened this issue May 27, 2024 · 3 comments

Comments

@pmoreno-DTP
Copy link

I've followed the Getting Started instructions, but I'm not able to run the following command:

brew install mojito-cli

... and I've got the following error message after run the above commands:

"openjdk@8: The x86_64 architecture is required for this software.
Error: mojito-cli: An unsatisfied requirement failed this build."

Considering I'm using a MacBook Pro with a M3 chip, is there any work around solution for this problem?

@ehoogerbeets
Copy link
Contributor

Do you have the right version/architecture of OpenJDK installed on your macbook? If you run "java -version", does it give the same answer about being the wrong architecture?

If you have the right version of java, you can try building your own mojito-cli. There are some instructions here.

@pmoreno-DTP
Copy link
Author

Thanks for your promptly reply. Edwin.

The following 2-steps workaround solved my problem:

  1. Install x86_64 brew under /usr/local/bin/brew
    arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

  2. Create an alias for the x86_64 brew
    Add to .zshrc:
    # brew hack for x86
    alias ibrew='arch -x86_64 /usr/local/bin/brew'

@ehoogerbeets
Copy link
Contributor

Ah, so it was brew itself that was that problem! That makes sense now that I re-read the error message. Glad you got it resolved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants