All threads / Setup Errors for Rails on MacOS 10.14 Mojave

Ask A Question


You’re not receiving notifications from this thread.

Setup Errors for Rails on MacOS 10.14 Mojave

Jerrica Johnson asked in General

Hello everyone!
I have already installed Ruby Environment, but each time I try to install Rails on MacOS, it's giving me the following errors:
Jerricas-MacBook-Pro:test_app jerricajohnson$ rails -v
Traceback (most recent call last):
15: from bin/rails:3:in <main>'
14: from bin/rails:3:in
13: from /Users/jerricajohnson/test_app/bin/spring:15:in <top (required)>'
12: from /Users/jerricajohnson/.rbenv/versions/2.6.1/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:65:in
11: from /Users/jerricajohnson/.rbenv/versions/2.6.1/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:65:in require'
10: from /Users/jerricajohnson/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in
9: from /Users/jerricajohnson/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/spring-2.0.2/lib/spring/binstub.rb:31:in load'
8: from /Users/jerricajohnson/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/spring-2.0.2/bin/spring:49:in
7: from /Users/jerricajohnson/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/spring-2.0.2/lib/spring/client.rb:30:in run'
6: from /Users/jerricajohnson/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/spring-2.0.2/lib/spring/client/command.rb:7:in
5: from /Users/jerricajohnson/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in call'
4: from /Users/jerricajohnson/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/spring-2.0.2/lib/spring/client/rails.rb:28:in
3: from /Users/jerricajohnson/test_app/bin/rails:8:in <top (required)>'
2: from /Users/jerricajohnson/test_app/bin/rails:8:in
1: from /Users/jerricajohnson/test_app/config/boot.rb:4:in <top (required)>'
require': cannot load such file -- bootsnap/setup (LoadError)

Does anyone know what this means? I'm pretty new to the coding game.

Hey Jerrica,

Looks like maybe you're just missing this line in your Gemfile:

gem 'bootsnap', require: false

Try adding that and running bundle afterwards to install it.

It's basically just trying to load bootsnap but it can't find it. Bootsnap is a tool to make loading Rails faster.

Hello! Thanks for the response. I'm inputting that into the terminal. It keeps saying 'unknown command bootsnap'.

Oops, sorry I wasn't clear. That line of code goes in the Gemfile file, not in the terminal.

Join the discussion

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

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

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

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.