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

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?

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

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.

Start over and install Ruby 2.0. Not Ruby 2.2.

8 Answers

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.

Start over and install Ruby 2.0. Not Ruby 2.2.

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

Super glad it worked.

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.

Ok I will try this also. Cheers

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

You are very welcome.

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 ^^

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

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 !

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

@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 ?