Could not find gem 'sqlite3 (>= 0) ruby'

二次信任 提交于 2019-12-05 15:22:52

Run

bundle install

in your Rails app's directory just like both error messages instruct you to.

i had the same issue you could try to run sudo apt-get install libsqlite3-dev and bundle install in the app directory.

You need to run it from your app directory so it can find the Gemfile to know wich gems it needs to install.

Amit Upadhyay

ya.. i was also having the same problem when we start with rails then while writing "rails new " we get this problem of sqlite3 . This appears due to the reason that we haven't wrote "bundle install" and install bundle. and when we try to write "bundle install" then it will show some gymfile missing error. This happens due to the reason that we haven't changed the directory to that folder where we are using the rails application. So for solving this problem follow these steps :

  1. write "rails new app" // instead of app you can write any name you want.
  2. now a folder named app will be created in your home.
  3. now start new terminal.
  4. write "cd app"
  5. now you can continue your work, and you will not face any such problem.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!