ubuntu – 安装puppet-dashboard的问题

我使用的是Ubuntu 12.04 LTS(32位,服务器),木偶2.7.17,红宝石1.8.7.352 ruby​​gems 1.8.15.和Apache 2.2.22.

当我尝试运行命令来迁移数据库时,

<server>:/usr/share/puppet-dashboard# rake RAILS_ENV=production db:migrate

我收到以下错误

NOTE: Gem.source_index is deprecated,use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/share/puppet-dashboard/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21.
NOTE: Gem::SourceIndex#initialize is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#initialize called from /usr/share/puppet-dashboard/config/../vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:100.
NOTE: Gem::SourceIndex#add_spec is deprecated,use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated,use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
rake aborted!
no such file to load -- rdoc/task

(See full trace by running task with --trace)

当我第一次尝试启动puppet-dashboard服务时,它抱怨它找不到rake~> 1.1.0所以我安装了.

现在我收到以下错误

Missing these required gems:
 rack  >= 0

然而…

# gem list
*** LOCAL GEMS ***
hiera (0.3.0)
rack (1.4.1,1.1.0)
rack-test (0.6.1)

机架已明确安装.读完this question之后,我甚至删除了机架1.4.1只留下了1.1.0,但我得到了同样的错误.

木偶仪表板表示不使用10.04 LTS中的rubygems版本,但没有说12.04 LTS中的打包版本也不起作用.

根据邮件列表中的一条建议,我运行了puppet-dashboard手册中列出的脚本,并将我的gem install降级为1.3.7.

我还安装了rdoc gem.

在这两个变化之间,它解决了这个问题.

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...