0

Redmine を Ubuntu システムにインストールしようとしていますが、正しく実行されているはずです。しかし、ここで立ち往生しているようです:

Your config/database.yml may not be written correctly. Please check it and fix any errors.
Your database schema may be out of date or nonexistant. Please run rake db:migrate to ensure that the database schema is up-to-date.
The database server may not be running. Please check whether it's running, and start it if it isn't.

database.yml が正しくセットアップされ、mysql が実行されており、クレデンシャルが正しい。

production:
adapter: mysql
database: myredminedb
host: localhost
username: redmine
password: password
encoding: utf8w

現在、別の仮想ホストを使用してhttp://track.hutber.com/にあります。

<VirtualHost *:80>
        DocumentRoot /var/www/hutber.com/track.hutber.com
        ServerName track.hutber.com

    <Directory /var/www/hutber.com/track.hutber.com>
       Options FollowSymLinks
       RailsBaseURI /usr/share/redmine
       PassengerResolveSymlinksinDocumentRoot on               
       AllowOverride None
     </Directory>
</VirtualHost>

私は完全に困惑しています。私自身はphpの男です...

rake db:migrate の実行時

RAILS_ENV=production rake db:migrate
(in /usr/share/redmine)
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/redmine/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/redmine/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.
Please install RDoc 2.4.2+ to generate documentation.
Character set 'utf8w' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index.xml' file
rake aborted!
Can't initialize character set utf8w (path: /usr/share/mysql/charsets/)

Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
4

1 に答える 1

1

rake db:migrateアプリケーション ルート内から実行する必要があります。それは、ファイルが含まれるディレクトリになりますRakefile。あなたの質問の詳細からはわかりませんが、これを行う必要があると思います:

cd /var/www/hutber.com/track.hutber.com
RAILS_ENV=production rake db:migrate

アップデート

database.yml文字セットをに変更しますutf8。現在はutf8w

于 2013-09-14T18:09:45.530 に答える