Skip to content

reinstall rvm_system_ruby #109

@cloud-hot

Description

@cloud-hot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions