Could Not Locate Gemfile

Could not locate Gemfile

You do not have Gemfile in a directory where you run that command.
Gemfile is a file containing your gem settings for a current program.

bundle install returns Could not locate Gemfile

You just need to change directories to your app, THEN run bundle install :)

Could not locate Gemfile: gemfile not found

Try this

rails new mySite
cd mySite
bundle install

You need to be inside the project home directory to use bundle command.

Hope that helps!

Could not locate gemfile in termux app

Make sure you have installed Bundler with bundler -v. If you don't have it, install it with gem install bundler.

Later, create a new gemfile with bundle init command.

RVM: Could not locate Gemfile or .bundle/ directory when running $bundle install command

Error in red text

You Just need to check whether you are currently in the rails app folder (In most cases) or double check whether you have created the rails app properly.

Here I am trying to execute the command for starting the rails server,

bundle exec rails server

As you can see since I'm not in that folder it cant locate the required gem to start up the service.

And an Error pops up like below

Could not locate Gemfile or .bundle/ directory

To remove just cd into the app folder

cd YourAPPfolder

And run the required rails command again.

You are done. Voila !!

Rails : Could not locate Gemfile

It's either not in the proper path or it isn't installed. Do this gem install bundler also if you are running rails -v you should get a version like this:

rails -v
Rails 4.2.0.beta2

If you don't, then that means rails is not installed either. Run gem install rails

Here is information of setting up rails: http://guides.rubyonrails.org/getting_started.html



Related Topics



Leave a reply



Submit