Ubuntu 12.04 LTS(32ビット、サーバー)、puppet 2.7.17、Ruby 1.8.7.352 rubygems1.8.15。およびApache2.2.22)を使用しています。
コマンドを実行してDBを移行しようとすると、
<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.
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.
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.
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.
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.
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.
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.
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.
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)
ラックは明確に設置されています。読んだ後 この質問 ラック1.4.1を取り外して1.1.0だけを残しましたが、同じエラーが発生しました。
Puppet-dashboardは、10.04 LTSのrubygemsバージョンを使用しないと述べましたが、12.04LTSのパッケージバージョンも機能しないとは言いませんでした。
メーリングリストからの1つの提案の後、puppet-dashboardマニュアルにリストされているスクリプトを実行し、gemインストールを1.3.7にダウングレードしました。
また、rdocgemをインストールしました。
これら2つの変更の間に、問題が修正されました。
Ubuntu 12.04サーバーAMD64の新しいインストールで、次の2つのコマンドを実行して、db:migrate
を機能させました。
Sudo gem install rack --version=1.1.0
Sudo gem install rack --version=1.1.2
この変更を除いて、私はインストールドキュメントに正確に従い、それは機能しました。これらの両方が必要かどうかはわかりませんが、最初のメッセージだけでエラーメッセージがわずかに変わるだけです。 :-)
Rubyバージョンマネージャーにも興味があるかもしれません。このツールは、gemの競合なしに、同じボックスで複数のRuby環境をサポートします。