rubyjs / mini_racer

Minimal embedded v8
MIT License
594 stars 93 forks source link

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

Closed antmachine closed 1 year ago

antmachine commented 1 year ago

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
tisba commented 1 year ago

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 commented 1 year ago

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 ! 🎉