我有一个 Apple Silicon MacBook,我有一个可以在我的 Linux 机器上正常安装的应用程序,但是当我bundle install
在我的 MacBook 上运行时,它给了我:
/Users/micah/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/mini_portile2-2.5.0/lib/mini_portile2/mini_portile.rb:153:in `cook' from extconf.rb:507:in `block (2 levels) in process_recipe' from extconf.rb:290:in `block in chdir_for_build' from extconf.rb:289:in `chdir' from extconf.rb:289:in `chdir_for_build' from extconf.rb:506:in `block in process_recipe' from <internal:kernel>:90:in `tap' from extconf.rb:409:in `process_recipe' from extconf.rb:744:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/Users/micah/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/extensions/arm64-darwin-20/3.0.0/nokogiri-1.11.2/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /Users/micah/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/gems/nokogiri-1.11.2 for inspection. Results logged to /Users/micah/.asdf/installs/ruby/3.0.0/lib/ruby/gems/3.0.0/extensions/arm64-darwin-20/3.0.0/nokogiri-1.11.2/gem_make.out
An error occurred while installing nokogiri (1.11.2), and Bundler cannot continue. Make sure that `gem install nokogiri -v '1.11.2'
--source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile: active_storage_validations was resolved to 0.9.2, which depends on
rails was resolved to 6.1.3.1, which depends on
actioncable was resolved to 6.1.3.1, which depends on
actionpack was resolved to 6.1.3.1, which depends on
actionview was resolved to 6.1.3.1, which depends on
rails-dom-testing was resolved to 2.0.3, which depends on
nokogiri
但是,当我跑步时,gem install nokogiri -v '1.11.2' --source 'https://rubygems.org/'
我得到:
Successfully installed nokogiri-1.11.2-arm64-darwin
Parsing documentation for nokogiri-1.11.2-arm64-darwin
Done installing documentation for nokogiri after 0 seconds
1 gem installed
但是当我随后运行时bundle install
,我再次得到相同的错误响应。我究竟做错了什么?
另外,我最近从 rvm 迁移到 asdf 以防万一。