ruby bundler "not found"

1,674 views
Skip to first unread message

Cursedmanchild

unread,
Jun 17, 2021, 2:43:30 AM6/17/21
to RubyInstaller
i litteraly cannot find a fix for this, ive done everything right and still it says Could not locate Gemfile. help

Mohit Sindhwani

unread,
Jun 17, 2021, 4:52:52 AM6/17/21
to rubyin...@googlegroups.com, Cursedmanchild
Hi!

On 2021-6-17 1:04 pm, Cursedmanchild wrote:
> i litteraly cannot find a fix for this, ive done everything right and
> still it says Could not locate Gemfile. help --

Sorry for the trouble you are facing. Could you please share:
* Windows version and Ruby version
* When you do 'bundle update' do you see an error? Could you share that
here?

Based on this error 'Could not locate Gemfile', it seems that your Ruby
installation is fine.
The way Bundler works is:
1) You create a file called Gemfile in your project directory. You can
either create it yourself or you can do this in the project directory
d:\project\ruby_project> bundle init
(this will create a basic Gemfile for you)
2) Edit the Gemfile and to add the list of gems that you want to use in
your project
3) You do `bundle install` from the directory of your Gemfile so that
bundler can find the Gemfile and install the gems you need

Take a look here at Getting Started: https://bundler.io/

Hope this helps! Welcome to the community.

Best Regards,
Mohit.


Yura Inversion

unread,
Jun 29, 2021, 1:03:33 PM6/29/21
to RubyInstaller
And what are trying to do?

>bundle
Could not locate Gemfile
 — this is correct behavior

you really need to prepare a Gemfile file
so you can start from 
bundle init

read more on https://bundler.io 
Reply all
Reply to author
Forward
0 new messages