安装puppet时报错“no such file to load -- securerandom (LoadError)”
在执行puppet的时候,出现下面的问题,大家遇到过吗?
系统环境:
OS:Red Hat Enterprise Linux Server release 5.8 (Tikanga) x86_64
ruby版本:ruby 1.8.5 (2006-08-25) [x86_64-linux]
安装的是 puppet-3.7.4.tar.gz
现象如下:
# puppet
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- securerandom (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:12
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/site_ruby/1.8/puppet.rb:8
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:12
from /usr/bin/puppet:7:in `require'
from /usr/bin/puppet:7
我打开util.rb文件,找到报错的第12行,需要加载一个叫securerandom的模块,但我不知道这个依赖的模块怎么找到?朋友们有遇到过的吗?给个建议
# vi /usr/lib/ruby/site_ruby/1.8/puppet/util.rb
12 require 'securerandom'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论