Making Rails App Work on Mac M1 Chip

Amisha Shukla
1 min readOct 6, 2021

We all are very excited while building new software on new hardware. But, what if your hardware is too advanced 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 the rails console using “rails c”, I used to get some huge errors 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 a discussion here, or DM me here.

Keep Googling, and Keep Coding!

--

--

Amisha Shukla

Know about the problem solving and join in the technology revolution. #TechSetGo