Puma caught this error: Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? can't activate sqlite3 (~> 1.3.6), already activated sqlite3-1.4.0. Make sure all dependencies are added to Gemfile. (LoadError)

1091 단어 RubyRails

Error 컨텐츠


rails new 명령을 사용하여 새 프로그램을 만들고 rails를 진행한 후
브라우저 화면에 다음 오류가 표시됩니다.
Puma caught this error: Error loading the 'sqlite3' Active Record adapter. Missing a gem it depends on? can't activate sqlite3 (~> 1.3.6), already activated sqlite3-1.4.0. Make sure all dependencies are added to Gemfile. (LoadError)
Error를 읽는 이유는 sqlite3의 version입니다.
확인 결과 버젼이 1.4.0인 것으로 밝혀졌다.
$ gem list |grep sqlite3
sqlite3 (1.4.0)

처리 방법

1.3.6에gem sqlite3의 버전을 명확하게 지정합니다.
gem 'sqlite3', '~> 1.3.6'
bundle install.
브라우저 업데이트 후

이런 오류가 발생했지만 rails 서버를 다시 시작할 때 평소 화면이 표시됩니다.

좋은 웹페이지 즐겨찾기