Setup macOS13 Ventura with Apple M2 chip - Unable to install header files for compiling C extensions

367 Views Asked by At

While setting up a new laptop, macOS 13 Ventura, Apple M2 chip, for RoR.

The directions recommend running the following command:

sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /

The command failed with the error:

"installer: Error - the package path specified was invalid"

I have also tried to install the following gems:

rsvg2, glib2, gobject-introspection

which failed to build the native extensions.

Could the two issues be related?

0

There are 0 best solutions below