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 trialmelissa brown
4,670 PointsCould not locate gem file or bundle directory
Hi my installation has been working up until the point where i type in bundle exec rails server. then i got the following error msg.
could not locate Gemfile or .bundle / directory.
im using windows and ruby 2.0.0
5 Answers
Colin Bell
29,679 PointsYou have a space between test & app.
- Remove that so it's
testapp
exactly (rails new testapp
thencd testapp
). - Then run
bundle install
followed bybundle exec rails server
.
If that doesn't work:
- type
ls
to see a list of files and directories that are in your current directory. - Look for the name of the project you created and spell it exactly how you see it.
Colin Bell
29,679 PointsAre you in your application's root directory when you run the command and is a gemfile in that directory?
melissa brown
4,670 PointsIm not sure how do i check that?
Colin Bell
29,679 PointsWhat is your project's folder called? It looks like you're just in your user folder.
I'm guessing after you installed rails, you did something like: rails new testapp
correct? testapp
would be the name of your project (as well as the name of the folder it is in).
melissa brown
4,670 PointsHi Colin, yes i did. and it ran fine. however i just typed in the testapp and it couldnt find anything this time http://imgur.com/JB5PJac
what should i type into the command prompt to check if im a in the applications root directory when i run it and if the gemfile is in that directory?
melissa brown
4,670 PointsOmg it worked thank you so much!!!!
Colin Bell
29,679 PointsGood deal. Glad you got it working!