Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

melissa brown
melissa brown
4,670 Points

Could 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
Colin Bell
29,679 Points

You have a space between test & app.

  • Remove that so it's testapp exactly (rails new testapp then cd testapp).
  • Then run bundle install followed by bundle 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
Colin Bell
29,679 Points

Are you in your application's root directory when you run the command and is a gemfile in that directory?

Colin Bell
Colin Bell
29,679 Points

What 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
melissa brown
4,670 Points

Hi 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
melissa brown
4,670 Points

Omg it worked thank you so much!!!!

Colin Bell
Colin Bell
29,679 Points

Good deal. Glad you got it working!