我使用的是Ubuntu 12.04 LTS(32位,服务器),木偶2.7.17,红宝石1.8.7.352
rubygems 1.8.15.和Apache 2.2.22.
原文链接:/ubuntu/348498.html当我尝试运行命令来迁移数据库时,
<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,但我得到了同样的错误.