Help us understand the problem. What is going on with this article?

rails server時にcannot load such file -- bootsnap/setup (LoadError)と表示され、起動しない場合の対処法

はじめに

railsチュートリアルをローカル環境でやってみようとしたら、サーバーが立ち上がらずハマったので解決策を投稿

環境

rails 5.2.3

エラーメッセージ

ruby
cannot load such file -- bootsnap/setup (LoadError)

原因

bootsnapがインストールされていない

対処

Gemfile
gem 'bootsnap', '>= 1.1.0', require: false

を書き足してbundle installを実行

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away