--

--

Photo by benjamin lehman on Unsplash

Installing the pg gem on Apple M1 silicon is not straightforward. As with many other development setup, it is recommended as of today to run all these software using Rosetta.

First download the Postgress app. Once done, ensure that you have the x86 Ruby installed (either through RVM or Rbenv)

--

--

To install Nokogiri on Apple M1, assuming you are using x86 Ruby this command would do the trick (no need to open the terminal in Rosetta mode)

arch -x86_64 gem install nokogiri -v '1.10.10' --platform=ruby -- --use-system-libraries

Francium Tech is a technology company laser-focused on delivering top-quality software of scale…

--

--