Home > Net >  I can't run rails server
I can't run rails server

Time:12-22

how's going? I trying to create my first application with Ruby on Rails, I can create the project but I can't run the server. My OS is Windows. I installed Node, Yarn, Ruby, Rails, Sqlite3. This message appears when I try to run "rails s"

Could not find gem 'sqlite3' in locally installed gems.
Run `bundle install` to install missing gems.

I run the command "bundle install", "bundle update" and doesn't work. This message appears when I run "bundle install":

An error occurred while installing sqlite3 (1.4.2), and Bundler cannot continue.

In Gemfile:
  sqlite3

When I verify the version of sqlite3: enter image description here I tried editing Gemfile:

gem 'sqlite3', '~> 1.4.2'

And tried install this way:

gem install sqlite3 -v '1.4.2' --source 'https://rubygems.org/'

I tried this steps too: https://www.youtube.com/watch?v=cAseoJeNG8I

I follow the recommendation in the documentation for windows users and run "bin/rails s" on Bash, but still the same problem. I read other answers here to similar questions but did not help me, for this I ask with this. If something was a miss to you understand the problem please tell me and I provide the information. Thanks, everyone.

CodePudding user response:

The above Error occurred because sqlite3 is not installed on your system.

Step1:- First, install the sqlite3 on your system by following the steps mention here

Step2:- Run bundle install

CodePudding user response:

Have you tried deleting gemfile.lock? Try delete and after that again type bundle install

  • Related