rubyjs / mini_racer

Minimal embedded v8
MIT License
594 stars 93 forks source link

bundler install error #270

Closed OUCyf closed 1 year ago

OUCyf commented 1 year ago

Greeting, This is Fu. I got an error when I wanted to install this project using M1-max chip. I failed to install mini_racer, and I have check many approaches but it always failed. My configurations are:

Error is:

...
/Users/yinfu/gems/gems/bundler-2.4.2/lib/bundler/worker.rb:90:in `block (2
levels) in create_threads'

An error occurred while installing mini_racer (0.6.3), and Bundler
cannot continue.

In Gemfile:
  mini_racer

Best, Fu

tisba commented 1 year ago

Hey Fu. Can you post more of the error message? Also, if you installed via bundle install, can you post your Gemfile and Gemfile.lock? Does gem install mini_racer work?

Last but not least, check out the troubleshooting section in the README: https://github.com/rubyjs/mini_racer#troubleshooting.

elliot commented 1 year ago

Try running this to add arm64-darwin to your lockfile and reinstall

gem update --system
gem uninstall --all mini_racer libv8-node
bundle lock --add-platform arm64-darwin
bundle install
kenkyusha commented 1 year ago

Having same problem with MacBook Pro 2019 (intel chip), I am guessing this fix by @elliot does not work for that?

tisba commented 1 year ago

@kenkyusha it does, but you'd need to provide the correct platform of course. Please check https://github.com/rubyjs/mini_racer/#troubleshooting if you're having installation issues.

davidrakoto commented 7 months ago

Try running this to add arm64-darwin to your lockfile and reinstall

gem update --system
gem uninstall --all mini_racer libv8-node
bundle lock --add-platform arm64-darwin
bundle install

I had this issue for two weeks and this solved it, thanks a lot