Skip to main content

Upgrade to Mojave on Mac OS

Rails • Asked by Pam Willenz

Hi Chris - I am running Sierra (not high Sierra) on my fairly new Mac (summer 2017). I need to upgrade to Mojave and am afraid I will break my ruby/rails dev environment (like I did when I upgraded before). I just landed a consulting project and want to do this, troubleshoot everything before I start work.

Can you provide a guide for upgrading versus reinstalling everything or point me to a good tutorial?

thanks,
Pam


Hey Pam!

I think a few things will break, but you should be fine. I don't have an upgrade guide specifically, but the steps are about the same:

  1. Upgrade your OS
  2. Upgrade & Install the latest XCode: xcode-select --install 2.5. You may also need to install XCode's Command Line Tools
  3. Upgrade your Homebrew install
  4. If you get an ld: library not found for -lstdc++ error installing gems, you can run: sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /

I think that should be it.


thanks, Chris, for your quick reply.

One thing I noticed when I previously upgraded was a big issue with Capybara and QT. Do you know if this might be an issue?


It looks like there's a solution for that now at least: https://stackoverflow.com/a/53642942/277994

Let me know if that works for ya!


thanks, Chris. Do you use Capybara and if not, do you use something else?

Seems like a lot of mix and matching that might break other things.


Yeah, I do use Capybara. I tend to stick with the Rails official testing tools, and their system tests are run with Capybara. https://guides.rubyonrails.org/testing.html#system-testing


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 22,346+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.