Skip to main content

Setup MacOS 10.14 Mojave Discussion

General • Asked by Chris Oliver
B54a4ea02148dd267eadf0777f196221

Is anyone else receiving errors with MacOS 10.14 Mojave and the Mysql2 gem? I'm also getting a "Library not loaded: libssl.1.0.0.dylib (LoadError)" error when executing "rails server".

Thanks!

Ce795239ba5dd2384fc2f88ffaff5451

Hey Ted,

If you upgraded, you probably need to uninstall the gem and reinstall it so that it compiles with the new Mojave libraries.

If you have trouble installing it from scratch, see this thread: https://github.com/brianmario/mysql2/issues/1005#issuecomment-424786695

D0ae6977d29300df3cfe07cef00f90f1

I resolved the problem with this:

gem install mysql2 -- --with-opt-lib=/usr/local/opt/openssl/lib


83ccd26971002b2dadf498fa5a162f32

Yes, I have the same error.


6e1168e83cf5aff59f35df8d78601974

what do you think about MacOS Mojave? Is it problematic? Have you got any other issues? I am wondering if it is better to upgrade now or to wait for a little bit.


6e1168e83cf5aff59f35df8d78601974

I updated system to Mojave and generally i am happy. I had only one problem. My bluetooth didn't work in macOS Mojave. I have tried to clear the icon cache by starting your Mac in Safe Mode, then shut it down and restart it normally. It helped!


C901002fd1c9ba4c58b0223c2f42e952

Latest version of ruby in my rbenv is 2.5.0, how can I update the list?


575b623f91468129567ad10ba7f160da

for readers willing to upgrade it might be a bit different. in particular if you were using rvm which is not compatible with rbenv. I could not understant why installing a new ruby version with rbenv was still linking to a previous one installed with rvm. So to sumarize: go for the installation from Chris above if you are starting from scratch...but follow this https://medium.com/@namangupta01/replacing-rvm-with-rbenv-in-os-x-9dea622bd639 if you are coming from another world ;-)


67642d66f9ea030226f6c72a5050035b

Is the header issue for Mojave resolved? When I run the command sudo installer command listed in the final steps I get the following error: installer: Error - the package path specified was invalid: '/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg'.

Ce795239ba5dd2384fc2f88ffaff5451

I haven't experienced it myself, but looks like there's some info on StackOverflow https://stackoverflow.com/questions/51270680/brew-wont-upgrade-on-mojave


19eb9aa4db6a0489f3b9502486bdf87a

Hi guys!
Thanks for this wonderful guide. Eveything was fine and now I have Ruby on Rails on my mac.
Sorry for stupid question: now I want to test a website. I'd like to try Spina CMS. How can I start? How can I install this gem?

Edit: maybe I made a mistake by skipping the git step... :( I do not understand the step including this instruction: cat ~/.ssh/id_rsa.pub what should I do there?


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 18,000+ 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.