Ask A Question

Notifications

You’re not receiving notifications from this thread.

Setup MacOS 10.14 Mojave Discussion

Chris Oliver asked in General

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!

Reply

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

Reply

I resolved the problem with this:

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

Reply

Yes, I have the same error.

Reply

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.

Reply

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!

Reply

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

Reply

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 ;-)

Reply

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'.

Reply

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

Reply

Joel, I know its been a few months, but this just happened to me and I was able to figure it out. To resolve, open xcode in my case as soon as I opened it updated, even though no updates were cited in app store ...? Next, I reinstalled the command line tools in terminal with: xcode-select --install

Once completed I could run the original command without error. Hope this helps

Reply

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?

Reply

Could you elaborate about what part of this step you are having trouble understanding?

This may be of some help: https://help.github.com/en/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent

Reply

RAILS_ENV=development environment is not defined in config/webpacker.yml, falling back to production environment

Help please this apears whene i put the server up.

Reply

The problem is yarn should be installed or updated.
On MacOS : brew install yarn
On Linux: sudo apt install yarn
Then try: rails webpacker:install
Hope this help!

Reply

I just set-up my first Rails local development environment with no problems at all !
Thank for this great tutorial Chris.

Reply

When I run "rbenv install 2.6.5", I get this errors:

clang: error: no such file or directory: '1/.rbenv/versions/2.6.5/include'
make[1]: *** [apps/app_rand.o] Error 1
make: *** [all] Error 2

How do I proceed?

Reply

Anyone getting the following error with mojave 10.14.6 when "rbenv install 2.6.5"? Getting the same error when installing any ruby version

Downloading openssl-1.1.1d.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/1e3a91bc1f9dfce01af26026f856e064eab4c8ee0a8f457b5ae30b40b8b711f2
Installing openssl-1.1.1d...

BUILD FAILED (OS X 10.14.6 using ruby-build 20191124)

Inspect or clean up the working tree at /var/folders/xs/gy8wglwj22g9lbhqfv9mwp7m0000gn/T/ruby-build.20191204181820.35411.SN3Ufg
Results logged to /var/folders/xs/gy8wglwj22g9lbhqfv9mwp7m0000gn/T/ruby-build.20191204181820.35411.log

Last 10 log lines:
      _dgram_write in bss_dgram.o
      _fd_write in bss_fd.o
      _fd_puts in bss_fd.o
      _sock_write in bss_sock.o
      _sock_puts in bss_sock.o
Reply

Seems like an error when I have Anaconda installed. But even after uninstalling and completely removing Anaconda, it shows an error related to C libraries.

Reply

I get the same type of error when installing 2.7.1 on Mojave

Reply
Join the discussion
Create an account Log in

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

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

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