Gem fails to build on MackbookPro with M2 silicon

139 Views Asked by At
OS: Ventura 13.2.1
M2-Max Silicon
Ruby 3.1.0
Rails 7.0.2

I did a clean install on this machine:

installed homebrew
user homebrew to install rbenv
used rbenv to install ruby 3.1.0
installed the rails 7.0.2 gem set
used homebrew to install MySQL

Nothing was transferred from the old machine, with the exception of my source code files.

I am trying to do a

bundle run

And at one point, I get:

Installing gio2 3.5.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
..........
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [gio2.bundle] Error 1

make failed, exit code 2

An error occurred while installing gio2 (3.5.1), and Bundler cannot continue.
In Gemfile:
poppler was resolved to 3.5.1, which depends on cairo-gobject


Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

Any ideas?

0

There are 0 best solutions below