title: Error when running bundle exec rake in macOS M1
body: <p>I installed all my gems using Rosetta, because I'm working with an old repository, but I can't run <code>bundle exec rake db:create</code> due to this error:</p>
  <pre><code>rails aborted! LoadError: dlopen(/Users/user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/nokogiri-1.12.5/lib/nokogiri/nokogiri.bundle, 0x0009): 
  tried: '/Users/user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/nokogiri-1.12.5/lib/nokogiri/nokogiri.bundle' 
  (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')) - 
  /Users/user/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/nokogiri-1.12.5/lib/nokogiri/nokogiri.bundle
  </code></pre>
  <p>I'm using a mac M1 with Monterey 12.3</p>
  <p>I tried installing nokogiri with these options:</p>
  <p><code>gem install nokogiri -v '1.12.5' -- --use-system-libraries --with-iconv-dir=$(brow --prefix libiconv) --with-xml2-include=$(brow --prefix libxml2)/include/libxml2</code></p>
  <p><code>gem install nokogiri -v '1.12.5' --user-install --platform arm64-darwin</code></p>
  <p>without any luck.</p>
  <p>Versions</p>
  <ul>
  <li>Ruby: 2.6.5</li>
  <li>Bundler: 1.17.3</li>
  <li>Nokogiri: 1.12.5</li>
  </ul>
  <p>Any suggestions?</p>