Could not locate Gemfile

2,842 views
Skip to first unread message

Jason Hazel

unread,
Mar 28, 2012, 1:14:42 PM3/28/12
to vagra...@googlegroups.com
I installed Vagrant yesterday using the deb provided by vagrantup.com (Running Xubuntu 11.10).  Everything worked fine then, and even worked fine this morning.

I've been playing around with veewee today and now, all of a sudden, vagrant won't run.

[~]$ vagrant
Could not locate Gemfile
[~]$ bundle exec vagrant
Could not locate Gemfile

I have uninstalled vagrant and reinstalled using both the .deb and gem install.  No luck.  Everyone on the IRC channel appears to be idle at this time.

Does anyone have any insight into this issue.  I'm pulling my hair out over here.

Patrick Debois

unread,
Mar 28, 2012, 1:18:37 PM3/28/12
to vagra...@googlegroups.com
It's the .rvmrc in veewee that probably enabled the alias to bundle exec
vagrant.

Simply unalias vagrant

Jason Hazel

unread,
Mar 28, 2012, 1:20:34 PM3/28/12
to vagra...@googlegroups.com
I had a feeling it had something to do with RVM, but I'm pretty new to it so didn't know where to go from there.

Thank you very much, this solved the problem.
Message has been deleted

Jason Hazel

unread,
Mar 28, 2012, 2:12:30 PM3/28/12
to vagra...@googlegroups.com
Unfortunately, it looks like I spoke too soon.

Vagrant works fine in the veewee directory, but nowhere else.  I assume this is related to RVM, but I have no idea how to resolve it and my searches are coming up fruitless.

[~]$ vagrant -v
Could not locate Gemfile
[~]$ cd veewee/
Using /home/jason/.rvm/gems/ruby-1.9.2-p290
'veewee' gemset created (/home/jason/.rvm/gems/ruby-1.9.2-p290@veewee).
Using /home/jason/.rvm/gems/ruby-1.9.2-p290 with gemset veewee
[veewee (master)]$ vagrant -v
Vagrant version 1.0.2
[veewee (master)]$ cd ..
[~]$ vagrant -v
Could not locate Gemfile
[~]$ bundle exec vagrant -v
Could not locate Gemfile
[~]$ mkdir new_vagrant
[~]$ cd new_vagrant/
[new_vagrant]$ vagrant -v
Could not locate Gemfile
[new_vagrant]$ bundle exec vagrant -v
Could not locate Gemfile
[new_vagrant]$ rvm info

ruby-1.9.2-p290@vagrant:

  system:
    uname:       "Linux JasonLaptop 3.0.0-17-generic #30-Ubuntu SMP Thu Mar 8 20:45:39 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux"
    bash:        "/bin/bash => GNU bash, version 4.2.10(1)-release (x86_64-pc-linux-gnu)"
    zsh:         " => not installed"

  rvm:
    version:      "rvm 1.10.2 by Wayne E. Seguin <waynee...@gmail.com>, Michal Papis <mpa...@gmail.com> [https://rvm.beginrescueend.com/]"
    updated:      "1 month 25 days 2 hours 14 minutes 10 seconds ago"

  ruby:
    interpreter:  "ruby"
    version:      "1.9.2p290"
    date:         "2011-07-09"
    platform:     "x86_64-linux"
    patchlevel:   "2011-07-09 revision 32553"
    full_version: "ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]"

  homes:
    gem:          "/home/jason/.rvm/gems/ruby-1.9.2-p290@vagrant"
    ruby:         "/home/jason/.rvm/rubies/ruby-1.9.2-p290"

  binaries:
    ruby:         "/home/jason/.rvm/rubies/ruby-1.9.2-p290/bin/ruby"
    irb:          "/home/jason/.rvm/rubies/ruby-1.9.2-p290/bin/irb"
    gem:          "/home/jason/.rvm/rubies/ruby-1.9.2-p290/bin/gem"
    rake:         "/home/jason/.rvm/rubies/ruby-1.9.2-p290/bin/rake"

  environment:
    PATH:         "/home/jason/.rvm/gems/ruby-1.9.2-p290@vagrant/bin:/home/jason/.rvm/gems/ruby-1.9.2-p290@global/bin:/home/jason/.rvm/rubies/ruby-1.9.2-p290/bin:/home/jason/.rvm/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/vagrant/bin"
    GEM_HOME:     "/home/jason/.rvm/gems/ruby-1.9.2-p290@vagrant"
    GEM_PATH:     "/home/jason/.rvm/gems/ruby-1.9.2-p290@vagrant:/home/jason/.rvm/gems/ruby-1.9.2-p290@global"
    MY_RUBY_HOME: "/home/jason/.rvm/rubies/ruby-1.9.2-p290"
    IRBRC:        "/home/jason/.rvm/rubies/ruby-1.9.2-p290/.irbrc"
    RUBYOPT:      ""
    gemset:       "vagrant"

Jason Hazel

unread,
Mar 28, 2012, 2:54:54 PM3/28/12
to vagra...@googlegroups.com
I was finally able to get things to work, but doubtful that I did it the 'correct' way.

I uninstalled RVM.  Reinstalled RVM and the installed Vagrant from the deb provided on vagrantup.com.  It is working now.  Only lost about 3 hours of my time toying around.


On Wednesday, March 28, 2012 1:14:42 PM UTC-4, Jason Hazel wrote:
I installed Vagrant yesterday using the deb provided by vagrantup.com (Running Xubuntu 11.10).  Everything worked fine then, and even worked fine this morning.

I've been playing around with veewee today and now, all of a sudden, vagrant won't run.

[~]$ vagrant
Could not locate Gemfile
[~]$ bundle exec vagrant
Could not locate Gemfile

I have uninstalled vagrant and reinstalled using both the .deb and gem install.  No luck.  Everyone on the IRC channel appears to be idle at this time.

Does anyone have any insight into this issue.  I'm pulling my hair out over here.

Reply all
Reply to author
Forward
0 new messages