Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reinstall rvm_system_ruby #109

Open
cloud-hot opened this issue Feb 1, 2014 · 0 comments
Open

reinstall rvm_system_ruby #109

cloud-hot opened this issue Feb 1, 2014 · 0 comments

Comments

@cloud-hot
Copy link

If i first install the blow dvm
rvm_system_ruby {
'ree-1.8.7-2012.02':
ensure => 'present',
require => Class['rvm::system'],
default_use => true;
}
and then i want to install ruby-other-version, and if i exec again puppet command it will report the blow error:
puppet apply --debug --modulepath '/tmp/vagrant-puppet-1/modules-0' --manifestdir /tmp/vagrant-puppet-1/manifests --detailed-exitcodes /tmp/vagrant-puppet-1/manifests/hotspot-precise64.pp || [ $? -eq 2 ]

Stdout from the command:

Stderr from the command:

stdin: is not a tty
/opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems.rb:900:in report_activate_error': Could not find RubyGem puppet (>= 0) (Gem::LoadError) from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems.rb:248:inactivate'
from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1276:in `gem'
from /opt/vagrant_ruby/bin/puppet:18

The root cause is the current $PATH already have the ree-1.8.7 execution env, so its ruby version will be conflict with puppet ruby version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant