Dev environment setup failed on bundle install

I ran into this issue on a new m1 macbook. This stack overflow post had the solution. I later needed this post to run bundle install because of a postgres issue. Hope that helps!