如何将新的安装Puppet目录永久添加到RHEL7上的ruby LOAD_PATH?

时间:2018-09-19 19:41:44

标签: ruby puppet rhel

木偶安装成功,但命令

sudo puppet apply /etc/puppet/manifests/site.pp

导致错误:

/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- puppet/util/command_line (LoadError)
from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
from /bin/puppet:7:in `<main>'

据我了解,新的人偶安装目录/usr/lib/ruby/site_ruby/1.8/不在ruby LOAD_PATH中。

我尝试使用ruby -I或LOAD_PATH.unshift或RUBYLIB手动更改LOAD_PATH。所有这些并没有导致LOAD_PATH的永久更改,而只是发生了临时更改。

LOAD_PATH中的目录为[“ / usr / local / share / ruby​​ / site_ruby”,“ / usr / local / lib64 / ruby​​ / site_ruby”,“ / usr / share / ruby​​ / vendor_ruby”,“ / usr / lib64 / ruby​​ / vendor_ruby”,“ / usr / share / ruby​​gems”,“ / usr / share / ruby​​”,“ / usr / lib64 / ruby​​ /”]

0 个答案:

没有答案