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 trialLeisa Clark
4,531 Pointsbundle 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
Leisa Clark
4,531 Pointsfabriziodurso: I installed gem sqlite3 in cmd as per tutorial. I do not know about dabatase.yml ?
fabriziodurso
2,455 PointsAdd 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
4,531 PointsHi 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
20,431 PointsStart over and install Ruby 2.0. Not Ruby 2.2.
8 Answers
Sandra Grassl
6,933 PointsI 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
20,431 PointsStart over and install Ruby 2.0. Not Ruby 2.2.
Kenneth Myers
16,009 PointsI can confirm what Anthony said, starting over with Ruby 2.0 worked for me
Anthony Lucio
20,431 PointsSuper glad it worked.
Bryn Price
Full Stack JavaScript Techdegree Student 7,253 PointsDunno 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
4,531 PointsOk I will try this also. Cheers
Leisa Clark
4,531 PointsThanks Anthony, I started over and installed Ruby 2.0 and it has worked!!! Finally, thank you.
Anthony Lucio
20,431 PointsYou are very welcome.
morgan segura
Courses Plus Student 6,934 PointsIn 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
12,488 PointsYep, Anthony's trick worked for me. Ruby 2.0 works fine and server is up and running.
Purvi Agrawal
7,960 PointsI 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
20,431 PointsGlad it worked! I hope this course is as fun for you as it was for me.
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 ?
Anthony Lucio
20,431 PointsNo issues when I have used vagrant. Check out these common vagrant issues: https://www.google.com/search?q=common+vagrant+issues+windows&oq=common+vagrant+issues+windows&aqs=chrome..69i57.5440j0j7&sourceid=chrome&es_sm=122&ie=UTF-8
fabriziodurso
2,455 Pointsfabriziodurso
2,455 PointsDo you have
gem sqlite3
in your gem file? Do you have the dabatase.yml file in your config folder?