Can’t get command “rails server” to run

I'm doing the coursera Ruby on Rails class and I can't get through the installation on Windows. I followed their directions and created a directory called test\_install. There is a picture to show what's in it. They say I'm just supposed to type "rails server" to move on the the next step but I get an error message that says (there is also picture):

"Could not find gem 'turbolinks (\~> 5) x86-mingw32' in any of the gem sources listed in your Gemfile

Run 'bundle install' to install missing gems."

So then I type in bundle install and it says (see picture) :

"An error occurred while installing sqlite3 (1.4.0) and bundler could not continue.

Make sure that 'gem install sqlite3 -v '1.4.0'' succeeds before bundling

In Gemfile:

sqlite3"

Earlier in that message is says "sqlite3.h is missing. Install SqLite3 rom [www.sqlite.org](https://www.sqlite.org)"

I went to the website and thought it installed the right thing but this is the very beginning of the class so I don't know what anything means. Coursera offered a FAQ for this installation process but it didn't have this question on it.

If anyone can make sense of all this please help. Thanks.

https://preview.redd.it/vsk2p11hp5j21.png?width=830&format=png&auto=webp&s=37de753b28534b430c5458767775e532559891c6

2 thoughts on “Can’t get command “rails server” to run”

  1. This is an issue I’ve seen around at the moment.

    Open the Gemfile and change the line
    gem ‘sqlite3’ to gem ‘sqlite3’, ‘~> 1.3.6’

    Then save the file and then run bundle install

    Reply

Leave a Comment