mitchellh/vagrant — Issue #570: Can't get Vagrant to work on Mac 10.6.8
Author: kevinburke
Created: 2011-11-26 01:58:51+00:00
State: open

$ sudo gem install vagrant
Password:
Successfully installed vagrant-0.8.7
1 gem installed
Installing ri documentation for vagrant-0.8.7...
Installing RDoc documentation for vagrant-0.8.7...

$ vagrant box add lucid32 http://files.vagrantup.com/lucid32.box
-bash: vagrant: command not found

$ echo $PATH
/usr/local/bin:/usr/local/php-5.3.8/bin:/Users/kevin/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/usr/local/mysql/bin:/usr/local/share/python:/opt/local/etc:/opt/local/bin:/opt/local/sbin:/Users/kevin/.gem/ruby/1.8/bin:/Users/kevin/bin

$ find /usr/local -name vagrant
./Cellar/ruby/1.9.2-p290/bin/vagrant
./lib/ruby/gems/1.9.1/doc/vagrant-0.8.7/rdoc/lib/vagrant
./lib/ruby/gems/1.9.1/gems/vagrant-0.8.7/bin/vagrant
./lib/ruby/gems/1.9.1/gems/vagrant-0.8.7/keys/vagrant
./lib/ruby/gems/1.9.1/gems/vagrant-0.8.7/lib/vagrant
./lib/ruby/gems/1.9.1/gems/vagrant-0.8.7/test/unit/vagrant

$ export PATH=/usr/local/Cellar/ruby/1.9.2-p290/bin/:$PATH

$ vagrant box add lucid32 http://files.vagrantup.com/lucid32.box
Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed.
If VirtualBox is installed, it may be an incorrect version. Vagrant currently
requires VirtualBox 4.1.x. Please install the proper version to continue.

If you have an older or newer version of VirtualBox, please make sure you're
using the proper version of Vagrant. Ask the mailing list if you have questions.

$ irb
irb(main):001:0> require 'virtualbox'
=> true

What is going on? Why can't vagrant detect virtualbox? I read this - https://github.com/mitchellh/vagrant/issues/562 so I tried:

$ vagrant --version
Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed.
If VirtualBox is installed, it may be an incorrect version. Vagrant currently
requires VirtualBox 4.1.x. Please install the proper version to continue.

If you have an older or newer version of VirtualBox, please make sure you're
using the proper version of Vagrant. Ask the mailing list if you have questions.

So I don't know which version of Vagrant I have.

$ gem environment
gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.11
- RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [x86_64-darwin10.8.0]
- INSTALLATION DIRECTORY: /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: /usr/local/Cellar/ruby/1.9.2-p290/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/Cellar/ruby/1.9.2-p290/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-10
- GEM PATHS:
- /usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/gems/1.9.1
- /Users/kevin/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/

I also tried:

$ git clone https://github.com/mitchellh/vagrant.git
Cloning into 'vagrant'...
remote: Counting objects: 17924, done.
remote: Compressing objects: 100% (5803/5803), done.
remote: Total 17924 (delta 12051), reused 17490 (delta 11691)
Receiving objects: 100% (17924/17924), 2.86 MiB | 596 KiB/s, done.
Resolving deltas: 100% (12051/12051), done.

$ cd vagrant

$ bundle install
Invalid gemspec in [/Library/Ruby/Gems/1.8/specifications/heroku-2.13.0.gemspec]: invalid date format in specification: "2011-11-10 00:00:00.000000000Z"
Fetching git://github.com/mitchellh/virtualbox.git
remote: Counting objects: 5910, done.
remote: Compressing objects: 100% (1855/1855), done.
remote: Total 5910 (delta 4079), reused 5766 (delta 3951)
Receiving objects: 100% (5910/5910), 1.06 MiB | 749 KiB/s, done.
Resolving deltas: 100% (4079/4079), done.
Fetching source index for http://rubygems.org/
Invalid gemspec in [/Library/Ruby/Gems/1.8/specifications/heroku-2.13.0.gemspec]: invalid date format in specification: "2011-11-10 00:00:00.000000000Z"
Using rake (0.9.2.2)
Installing archive-tar-minitar (0.5.2) Invalid gemspec in [/Library/Ruby/Gems/1.8/specifications/heroku-2.13.0.gemspec]: invalid date format in specification: "2011-11-10 00:00:00.000000000Z"

Installing ffi (1.0.11) with native extensions
Installing childprocess (0.2.2)
Installing contest (0.1.3)
Using diff-lcs (1.1.3)
Using erubis (2.7.0)
Using i18n (0.6.0)
Installing json (1.5.4) with native extensions
Installing log4r (1.1.9)
Installing metaclass (0.0.1)
Installing minitest (2.5.1)
Installing mocha (0.10.0)
Installing net-ssh (2.1.4)
Using net-scp (1.0.4)
Using rspec-core (2.7.1)
Using rspec-expectations (2.7.0)
Using rspec-mocks (2.7.0)
Installing sys-proctable (0.9.1) with native extensions
Using thor (0.14.6)
Using virtualbox (0.9.4.dev) from git://github.com/mitchellh/virtualbox.git (at master)
Using vagrant (0.8.8.dev) from source at /Users/kevin/vagrant
Using bundler (1.0.21)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.

$ sudo rake install
(in /Users/kevin/vagrant)
rake aborted!
no such file to load -- bundler/setup
/usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/Users/kevin/vagrant/Rakefile:2:in `'
/usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/rake.rb:2373:in `load'
/usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/rake.rb:2373:in `raw_load_rakefile'
/usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/rake.rb:2007:in `block in load_rakefile'
/usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'
/usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/rake.rb:2006:in `load_rakefile'
/usr/local/Cellar/ruby/1.9.2-p290/lib/ruby/1.9.1/rake.rb:1991:in `run'
/usr/local/bin/rake:31:in `

'

I'm totally spinning my wheels; I have no idea what I should do to get this to work. I'd appreciate your help.

Best,
Kevin