כשל בהגדרת סביבת הפיתוח בהתקנת bundle

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!