如何在 Centos 6 上安装 Foreman?

如何在 Centos 6 上安装 Foreman?

试图

根据本文档木偶应在安装前安装领班

木偶

sudo rpm -ivh http://yum.puppetlabs.com/el/6.4/products/x86_64/puppetlabs-release-6-11.noarch.rpm
sudo yum -y install puppet

[vagrant@localhost ~]$ puppet --version
3.7.1

领班

sudo yum -y install http://yum.theforeman.org/releases/1.1/el6/x86_64/foreman-release.rpm
sudo yum -y install foreman-installer

结果

--> Finished Dependency Resolution
Error: Package: rubygem-apipie-bindings-0.0.8-4.el6.noarch (foreman)
           Requires: rubygem(mime-types) < 2.0.0
Error: Package: rubygem-rest-client-1.6.7-2.el6.noarch (foreman)
           Requires: rubygem(mime-types) >= 1.16
Error: Package: rubygem-apipie-bindings-0.0.8-4.el6.noarch (foreman)
           Requires: rubygem(fastercsv)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

第二次尝试

检查错误消息,想法是通过尝试安装以下包来尝试修复依赖性问题:

rubygem mime-types < 2.0.0
rubygem mime-types >= 1.16
rubygem fastercsv

通过发出以下命令:

sudo gem install mime-types -v 1.25.1
sudo gem install gem install fastercsv

结果二

mime 类型

[vagrant@localhost ~]$ sudo gem install mime-types -v 1.25.1
Successfully installed mime-types-1.25.1
1 gem installed

fastercsv

[vagrant@localhost ~]$ sudo gem install gem install fastercsv
ERROR:  Could not find a valid gem 'gem' (>= 0) in any repository
ERROR:  Could not find a valid gem 'install' (>= 0) in any repository
Successfully installed fastercsv-1.5.5
1 gem installed
Installing ri documentation for fastercsv-1.5.5...
Installing RDoc documentation for fastercsv-1.5.5...

领班

sudo yum -y install foreman-installer

尽管安装了缺失的软件包,但gem install问题仍然存在。

答案1

您忘记安装并启用 EPEL 存储库。请执行此操作,然后再次尝试安装 Foreman。

相关内容