Making Rails App Work on Mac M1 Chip

Making Rails App Work on Mac M1 Chip

We all are very excited while building a new software on new hardware. But, what if your hardware is too advance to run your server well by following the documentation! I was in trouble for a week to get things right!

You can get started with creating your first project on rails from here.

Every time I was trying to use rails console using "rails c", I used to get some huge error related to mimemagic and many others. If you get the same, you are at the right place. Let's get to the point!


Follow the following steps: (I hope it will resolve your issue!) Step 1: bundle install

Step 2: brew install shared-mime-info

Step 3: bundle update nokogiri marcel mimemagic

Step 4: Add gem 'sassc' to Gemfile

Step 5: bundle update ffi sassc

Step 6: bundle update sass-rails


This should make your rails app work on Mac M1 Chip. But, if it's still not working then try this out after all the above steps:

bundle install - path vendor/cache


All the above steps have helped to keep going with rails and I hope it will help you too! If not, let's get on discussion here or DM me here

Keep Googling, Keep Coding!