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

After MacOS Ventura upgrade. gem install works, bundle install does not #267

Closed
antmachine opened this issue Nov 17, 2022 · 2 comments
Closed

Comments

@antmachine
Copy link

antmachine commented Nov 17, 2022

After upgrading to MacOS Ventura on my M1 machine, I'm getting errors.
I think bundler is resolving dependencies to the wrong libv8-node.

I can gem install libv8-node successfully
and gem install mini_racer successfully

mini_racer is in my Gemfile, but libv8-node is not

bundle install returns An error occurred while installing libv8-node (16.10.0.0), and Bundler cannot continue.

bundle info libv8-node returns

Could not find gem 'libv8-node (~> 16.10) x86_64-darwin-19' in locally installed gems.

The source contains the following gems matching 'libv8-node (~> 16.10)':
  * libv8-node-16.10.0.0-arm64-darwin
@antmachine antmachine changed the title gem install works, bundle install does not After MacOS Ventura upgrade. gem install works, bundle install does not Nov 17, 2022
@tisba
Copy link
Collaborator

tisba commented Nov 18, 2022

Hey @antmachine,

I don't think there is a general problem. I'm on Ventura with an M1 and it works fine.

Can you first check the troubleshooting section of the README? https://github.com/rubyjs/mini_racer/#troubleshooting

Also, please provide us with your Gemfile.lock (and your exact Ruby and bundler versions). Reading your description, it looks like you're using libv8-node (16.10.0.0-arm64-darwin) (note the arm64-darwin vs x86_64-darwin-X).

@antmachine
Copy link
Author

antmachine commented Nov 18, 2022

Figured it out. I needed to run bundle lock --add-platform arm64-darwin-22

No idea how it's take us this long to figure it out. Thank you @tisba ! 🎉

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