Ask A Question

Notifications

You’re not receiving notifications from this thread.

Upgrade to Mojave on Mac OS

Pam Willenz asked in Rails

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

Reply

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.

Reply

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?

Reply

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!

Reply

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.

Reply

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

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 83,038+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.