Skip to content

Instantly share code, notes, and snippets.

@charles-dyfis-net
Created July 13, 2011 20:13
Show Gist options
  • Save charles-dyfis-net/1081213 to your computer and use it in GitHub Desktop.
Save charles-dyfis-net/1081213 to your computer and use it in GitHub Desktop.
trying to install vagrant and dependencies inside an rvm environment
$ rvm gemset create vagrant
'vagrant' gemset created (/home/cduffy/.rvm/gems/ruby-1.8.7-p352@vagrant).
$ rvm gemset use vagrant
$ cd ~/VC/vagrant
~/VC/vagrant$ gem install bundler --pre
Fetching: bundler-1.1.pre.5.gem (100%)
Successfully installed bundler-1.1.pre.5
1 gem installed
Installing ri documentation for bundler-1.1.pre.5...
Installing RDoc documentation for bundler-1.1.pre.5...
~/VC/vagrant$ bundle install
Fetching git://github.com/mitchellh/virtualbox.git
remote: Counting objects: 5677, done.
remote: Compressing objects: 100% (2102/2102), done.
remote: Total 5677 (delta 3946), reused 5038 (delta 3471)
Receiving objects: 100% (5677/5677), 1.04 MiB | 707 KiB/s, done.
Resolving deltas: 100% (3946/3946), done.
Fetching dependency information from the API at http://rubygems.org/.....
Installing rake (0.9.2)
Installing archive-tar-minitar (0.5.2)
Installing bluecloth (2.1.0) with native extensions
Installing contest (0.1.3)
Installing erubis (2.7.0)
Installing ffi (1.0.9) with native extensions
Installing i18n (0.5.0)
Installing json (1.5.3) with native extensions
Installing mocha (0.9.12)
Installing net-ssh (2.1.4)
Installing net-scp (1.0.4)
Installing thor (0.14.6)
Using virtualbox (0.9.0.dev) from git://github.com/mitchellh/virtualbox.git (at master)
Using vagrant (0.8.0.dev) from source at .
Installing yard (0.6.8)
Using bundler (1.1.pre.5)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
~/VC/vagrant$ rake
Loaded suite /home/cduffy/.rvm/gems/ruby-1.8.7-p352@vagrant/gems/rake-0.9.2/lib/rake/rake_test_loader
Started
..........................................................................................................F...............................F....................
...............................................................................................................................................................
...............................................................................................................................................................
.........................................................................................................................
Finished in 10.156278 seconds.
1) Failure:
test_run_chef_client(ChefClientProvisionerTest::TestRunningChefClient)
[/home/cduffy/VC/vagrant/lib/vagrant/provisioners/chef_client.rb:103:in `run_chef_client'
/home/cduffy/VC/vagrant/lib/vagrant/provisioners/chef_client.rb:102:in `run_chef_client'
/home/cduffy/VC/vagrant/test/vagrant/provisioners/chef_client_test.rb:181:in `test_run_chef_client']:
unexpected invocation: #<Mock:ssh>.sudo!('exit 1)')
unsatisfied expectations:
- expected exactly once, not yet invoked: #<Mock:ssh>.sudo!('chef-client -c /tmp/vagrant-chef-12/client.rb -j /tmp/vagrant-chef-12/dna.json')
satisfied expectations:
- allowed any number of times, invoked once: #<Vagrant::SSH:0x7fea57d1f440>.execute(any_parameters)
2) Failure:
test_run_chef_solo(ChefSoloProvisionerTest::TestRunningChefSolo)
[/home/cduffy/VC/vagrant/lib/vagrant/provisioners/chef_solo.rb:116:in `run_chef_solo'
/home/cduffy/VC/vagrant/lib/vagrant/provisioners/chef_solo.rb:115:in `run_chef_solo'
/home/cduffy/VC/vagrant/test/vagrant/provisioners/chef_solo_test.rb:97:in `test_run_chef_solo']:
unexpected invocation: #<Mock:ssh>.sudo!('exit 1)')
unsatisfied expectations:
- expected exactly once, not yet invoked: #<Mock:ssh>.sudo!('chef-solo -c /tmp/vagrant-chef-9/solo.rb -j /tmp/vagrant-chef-9/dna.json')
satisfied expectations:
- allowed any number of times, invoked once: #<Vagrant::SSH:0x7fea5798eee8>.execute(any_parameters)
598 tests, 1090 assertions, 2 failures, 0 errors
rake aborted!
Command failed with status (1): [/home/cduffy/.rvm/rubies/ruby-1.8.7-p352/b...]
Tasks: TOP => default => test
(See full trace by running task with --trace)
~/VC/vagrant$ rake install
vagrant 0.8.0.dev built to pkg/vagrant-0.8.0.dev.gem
vagrant (0.8.0.dev) installed
cduffy@charles-desktop:~/VC/vagrant$ vagrant help
/home/cduffy/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `gem_original_require': no such file to load -- virtualbox (LoadError)
from /home/cduffy/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `require'
from /home/cduffy/.rvm/gems/ruby-1.8.7-p352@vagrant/gems/vagrant-0.8.0.dev/lib/vagrant.rb:4
from /home/cduffy/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `gem_original_require'
from /home/cduffy/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:54:in `require'
from /home/cduffy/.rvm/gems/ruby-1.8.7-p352@vagrant/gems/vagrant-0.8.0.dev/bin/vagrant:2
from /home/cduffy/.rvm/gems/ruby-1.8.7-p352@vagrant/bin/vagrant:19:in `load'
from /home/cduffy/.rvm/gems/ruby-1.8.7-p352@vagrant/bin/vagrant:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment