ubuntu – 安装puppet-dashboard的问题

前端之家收集整理的这篇文章主要介绍了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.

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

猜你在找的Ubuntu相关文章