我在启用傀儡代理时出现以下错误。我在安装过程中遇到了这个错误。
[root@rgenupula1c puppet-enterprise-2019.0.2-el-7-x86_64]# /opt/puppetlabs/puppet/bin/puppet agent --enable
Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2
Ignoring gem-wrappers-1.3.2 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.3.2
Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2
Ignoring gem-wrappers-1.3.2 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.3.2
cannot load such file -- semantic_puppet
[root@rgenupula1c puppet-enterprise-2019.0.2-el-7-x86_64]# 发布于 2019-07-23 06:04:56
semantic_puppet需要executable-hooks-1.3.2和gem-wrappers-1.3.2。然而,这两个扩展都无法加载,因为--根据错误消息--它们的‘扩展没有构建’。
当你安装了多个红宝石并且宝石在它们之间混淆时,这可能会发生。只要您处于正确的ruby环境中,就可以使用gem pristine --all修复问题。
根据您的puppet安装和本地ruby安装,可能会有不同的方法来指定您正在使用的ruby。但是,您可能希望尝试以下内容:
PATH=/opt/puppetlabs/puppet/bin:$PATH
export PATH
sudo gem pristine --all发布于 2019-11-19 18:59:00
在我的例子中,semantic_puppet没有安装在默认设置为puppet的ruby环境中。这就是我的工作原理:
$ sudo service pe-puppetserver stop
$ puppetserver gem安装semantic_puppet
$ sudo服务pe-puppetserver重启
以超级用户身份运行此命令时,请确保环境变量指向/opt/puppetlabs/bin。
发布于 2019-12-07 01:28:14
有点晚了-但是-如果你是因为木偶特工的问题来这里的..这可能是因为您的系统中有另一个ruby副本,并且它妨碍了puppet安装的那个副本。检查你的路径,你可能会在那里看到rvm或者其他类似的东西。
如果你可以卸载任何其他的ruby安装,那么这可能会解决这个问题。
如果您无法卸载它们,请尽您所能确保puppet ruby安装位于路径的第一位。
https://stackoverflow.com/questions/54504354
复制相似问题