Megan McDonell
Megan McDonell

Reputation: 23

Ruby on Rails connect to server issues

I am working with Ruby on Rails Tutorial (Third Edition) by Michael Hartl. I am currently in chapter 1 and have been able to download Ruby on Rails-v 4.2.0. I have made all the adjustment within the Gemfile and was successful in connecting to my sever. However, once I closed the server I have not been able to reconnect and get an error message

You cannot specify the same gem twice with different version requirements. You Specified:sqlite3 (>_0) and sqlite3 (=1.3.9)

I tried to search on Google but did not find the answer. Any help or suggestions would be wonderful!

Upvotes: 1

Views: 149

Answers (1)

K M Rakibul Islam
K M Rakibul Islam

Reputation: 34336

The error message is saying it all:

You cannot specify the same gem twice with different version requirements. You Specified:sqlite3 (>_0) and sqlite3 (=1.3.9)

You must have mistakenly specified the sqlite3 gem twice in your Gemfile. Remove one of them (possibly the older one), then run:

bundle install

and re-start your rails server.

This should fix your problem.

Upvotes: 4

Related Questions