0

I'm trying to build a small application with ruby.

I'm learning to setup the database connecting with sequel in following a Tuts+ course. However, after I finish editing the connection file like I've learned in the the lesson the terminal gives me this message:

/Users/ALROQEE/.rvm/gems/ruby-head/gems/bundler-1.7.2/lib/bundler/shared_helpers.rb:24:in `default_gemfile': Could not locate Gemfile (Bundler::GemfileNotFound)
    from /Users/ALROQEE/.rvm/gems/ruby-head/gems/bundler-1.7.2/lib/bundler.rb:249:in `default_gemfile'
    from /Users/ALROQEE/.rvm/gems/ruby-head/gems/bundler-1.7.2/lib/bundler.rb:193:in `root'
    from /Users/ALROQEE/.rvm/gems/ruby-head/gems/bundler-1.7.2/lib/bundler.rb:100:in `bundle_path'
    from /Users/ALROQEE/.rvm/gems/ruby-head/gems/bundler-1.7.2/lib/bundler.rb:401:in `configure_gem_home_and_path'
    from /Users/ALROQEE/.rvm/gems/ruby-head/gems/bundler-1.7.2/lib/bundler.rb:91:in `configure'
    from /Users/ALROQEE/.rvm/gems/ruby-head/gems/bundler-1.7.2/lib/bundler.rb:152:in `definition'
    from /Users/ALROQEE/.rvm/gems/ruby-head/gems/bundler-1.7.2/lib/bundler.rb:117:in `setup'
    from /Users/ALROQEE/.rvm/gems/ruby-head/gems/bundler-1.7.2/lib/bundler.rb:133:in `require

How can I resolve this error?

Holger Just
  • 52,918
  • 14
  • 115
  • 123

1 Answers1

0

Your probably running the command from the wrong directory.

Below has a similar issue,

bundle install returns "Could not locate Gemfile"

The error means it cannot locate the file entitled 'Gemfile'. If you need anymore help I would recommended posting the link to the tutorial for more context.

Community
  • 1
  • 1