微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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.

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

原文地址:https://www.jb51.cc/ubuntu/348498.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐