Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Installing a Ruby Development Environment Installing a Ruby Development Environment Installing Ruby on Windows

Leisa Clark
Leisa Clark
4,531 Points

bundle exec rails server error

I am attempting to install rails and in command up to stage of bundle exec rails server and get error saying "cannot load such file -- sqlite3/sqlite3-1.10

I am stuck and have looked at other answers. please help

Do you have gem sqlite3 in your gem file? Do you have the dabatase.yml file in your config folder?

Leisa Clark
Leisa Clark
4,531 Points

fabriziodurso: I installed gem sqlite3 in cmd as per tutorial. I do not know about dabatase.yml ?

Add the file database.yml in your config folder, with this content:

development:
  adapter: sqlite3
  database: development_db
  pool: 5
  timeout: 5000
test:
  adapter: sqlite3
  database: testing_db
  pool: 5
  timeout: 5000
Leisa Clark
Leisa Clark
4,531 Points

Hi fabriziodurso, how do I install into config folder when I'm in cmd. I am all very new to this so real dummy still. Thank you for taking time to help, really appreciate this.

Anthony Lucio
Anthony Lucio
20,431 Points

Start over and install Ruby 2.0. Not Ruby 2.2.

8 Answers

Sandra Grassl
Sandra Grassl
6,933 Points

I have exactly the same issue. and the trick with installing bundle before sqlite3 doesn't work for me. Also the file dabatase.yml is existing and contains the proposed information automatically. Any other idea. Is this a windows issue.

Anthony Lucio
Anthony Lucio
20,431 Points

Start over and install Ruby 2.0. Not Ruby 2.2.

Kenneth Myers
Kenneth Myers
16,009 Points

I can confirm what Anthony said, starting over with Ruby 2.0 worked for me

Bryn Price
seal-mask
.a{fill-rule:evenodd;}techdegree
Bryn Price
Full Stack JavaScript Techdegree Student 7,253 Points

Dunno if this will work. I had a similar error. I uninstalled everything and this time round, I used "bundle install" before "gem install sqlite3" and that seemed to have done the trick. Dunno why it's done the trick though. But hope this helps.

Leisa Clark
Leisa Clark
4,531 Points

Ok I will try this also. Cheers

Leisa Clark
Leisa Clark
4,531 Points

Thanks Anthony, I started over and installed Ruby 2.0 and it has worked!!! Finally, thank you.

morgan segura
PLUS
morgan segura
Courses Plus Student 6,934 Points

In the Gemfile, at the top remove the 's' from https:// and force the json version to be 1.8.1 as specified in the code below.

source 'http://rubygems.org'
gem 'json', '1.8.1'

finally, run 'bundle install' this worked for me. Finally ^^

Malith Senanayake
Malith Senanayake
12,488 Points

Yep, Anthony's trick worked for me. Ruby 2.0 works fine and server is up and running.

Purvi Agrawal
Purvi Agrawal
7,960 Points

I agree with Anthony. I was facing the same error with exec command. Uninstalled everything and installed same versions of ruby and sqlite as mentioned in tutorial. Now my exec commands works exactly as it should !

Anthony Lucio
Anthony Lucio
20,431 Points

Glad it worked! I hope this course is as fun for you as it was for me.

Purvi Agrawal
Purvi Agrawal
7,960 Points

@Anthony Hey did u face any issues while doing Vagrant SSH ? Mine is giving error. I possibly did everything available on net to rectify it but still it is unresolved. Any insights ?