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
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
Is It Right to Assign Multiple Variables Like This a = B = C = D = 5
How to Get All Class Names in a Namespace in Ruby
Converting Upper-Case String into Title-Case Using Ruby
How to Debug Http of Ruby Google-Api-Client
How to Call Java API from Ruby 1.8 or 1.9
How to I Make Private Class Constants in Ruby
How to Reference Global Variables and Class Variables
Undefined Method 'Devise' for User
Bundler Install Getting "I18N Requires Ruby Version >= 1.9.3"
Rails Model Name Conflict with Included Gem
How to Emit Comments in a Yaml Document Using Psych
How to Add Custom Filter to Active Admin
How to Login a User with Devise
Getting Rails Url Helpers to Automatically Output Https Urls