在 OS X 上设置 redmine

在 OS X 上设置 redmine

我正在遵循 redmine 安装说明。我在 OS X 10.6.2 上安装 mysql 5.1.41。我在本地 Db 中定义了数据库;我可以使用 redmine 用户登录本地 Db 并使用 redmine 数据库,但是当我运行时:

RAILS_ENV=production rake db:migrate --trace

有人可以为以下堆栈跟踪添加一些含义吗:

** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
can't convert Hash into String
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1408:in `directory?'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1408:in `fu_each_src_dest0'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:840:in `install'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:1070:in `install'
/Users/wrbarbour/projects/redmine/config/environment.rb:60
/Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/initializer.rb:111:in `run'
/Users/wrbarbour/projects/redmine/config/environment.rb:20
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:156:in `require'
/Library/Ruby/Gems/1.8/gems/rails-2.3.4/lib/tasks/misc.rake:4
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `call'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `execute'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `each'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `execute'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:578:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:571:in `invoke_with_call_chain'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:588:in `invoke_prerequisites'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:585:in `each'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:585:in `invoke_prerequisites'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:577:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:571:in `invoke_with_call_chain'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:564:in `invoke'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:2027:in `invoke_task'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `top_level'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `each'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `top_level'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in `standard_exception_handling'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:1999:in `top_level'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:1977:in `run'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in `standard_exception_handling'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:1974:in `run'
/Users/wrbarbour/.gem/ruby/1.8/gems/rake-0.8.4/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19

答案1

您遵循什么指令?

您的 Redmine、Rails 是什么版本?

您是否使用生产数据库设置更新了 redmine_dir/config/database.yml?

答案2

事实证明,我的问题出在 mysql 2.8.1 gem 上在这篇博文中

相关内容