Rails5 jruby 无法启动
Rails5 jruby not able to start
无法使用 jruby 启动 rails5,出现以下错误。
gavinyap@gavin-ubuntu ~/Development/rails5app rails s
DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from require at bin/rails:4)
Bundler::GemRequireError: There was an error while trying to load the gem 'activerecord-jdbcmysql-adapter'.
Gem Load Error is: uninitialized constant ActiveRecord::ConnectionAdapters::Column::Format
Backtrace for gem load error is:
/home/gavinyap/.rvm/gems/jruby-9.1.2.0/gems/activerecord-jdbc-adapter-1.3.20/lib/arjdbc/jdbc/type_cast.rb:13:in `<module:TypeCast>'
/home/gavinyap/.rvm/gems/jruby-9.1.2.0/gems/activerecord-jdbc-adapter-1.3.20/lib/arjdbc/jdbc/type_cast.rb:7:in `<module:Jdbc>'
/home/gavinyap/.rvm/gems/jruby-9.1.2.0/gems/activerecord-jdbc-adapter-1.3.20/lib/arjdbc/jdbc/type_cast.rb:4:in `< module:ConnectionAdapters>'
/home/gavinyap/.rvm/gems/jruby-9.1.2.0/gems/activerecord-jdbc-adapter-1.3.20/lib/arjdbc/jdbc/type_cast.rb:3:in `<top>'
/home/gavinyap/.rvm/gems/jruby-9.1.2.0/gems/activerecord-jdbc-adapter-1.3.20/lib/arjdbc/jdbc/column.rb:1:in `singleton cla
Jruby 版本和 Rails
- jruby 9.1.2.0 (2.3.0) 2016-05-26 7357c8f
- OpenJDK 64 位服务器
- 1.8 上的 VM 25.91-b14。0_91-8u91-b14-0ubuntu4~16.04.1-b14 +jit [linux-x86_64]
- Rails 5.0.0
ActiveRecord JDBC gem 尚未为 Rails 5 更新。检查 GitHub 中的项目显示今年年初 activity 有一些开发,但是Rails 5.
何时发布新的 gem 没有任何迹象
将 gem 'activerecord-jdbcmysql-adapter', '~> 5.0.pre1'
添加到您的 gemfile
无法使用 jruby 启动 rails5,出现以下错误。
gavinyap@gavin-ubuntu ~/Development/rails5app rails s
DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from require at bin/rails:4)
Bundler::GemRequireError: There was an error while trying to load the gem 'activerecord-jdbcmysql-adapter'.
Gem Load Error is: uninitialized constant ActiveRecord::ConnectionAdapters::Column::Format
Backtrace for gem load error is:
/home/gavinyap/.rvm/gems/jruby-9.1.2.0/gems/activerecord-jdbc-adapter-1.3.20/lib/arjdbc/jdbc/type_cast.rb:13:in `<module:TypeCast>'
/home/gavinyap/.rvm/gems/jruby-9.1.2.0/gems/activerecord-jdbc-adapter-1.3.20/lib/arjdbc/jdbc/type_cast.rb:7:in `<module:Jdbc>'
/home/gavinyap/.rvm/gems/jruby-9.1.2.0/gems/activerecord-jdbc-adapter-1.3.20/lib/arjdbc/jdbc/type_cast.rb:4:in `< module:ConnectionAdapters>'
/home/gavinyap/.rvm/gems/jruby-9.1.2.0/gems/activerecord-jdbc-adapter-1.3.20/lib/arjdbc/jdbc/type_cast.rb:3:in `<top>'
/home/gavinyap/.rvm/gems/jruby-9.1.2.0/gems/activerecord-jdbc-adapter-1.3.20/lib/arjdbc/jdbc/column.rb:1:in `singleton cla
Jruby 版本和 Rails
- jruby 9.1.2.0 (2.3.0) 2016-05-26 7357c8f
- OpenJDK 64 位服务器
- 1.8 上的 VM 25.91-b14。0_91-8u91-b14-0ubuntu4~16.04.1-b14 +jit [linux-x86_64]
- Rails 5.0.0
ActiveRecord JDBC gem 尚未为 Rails 5 更新。检查 GitHub 中的项目显示今年年初 activity 有一些开发,但是Rails 5.
何时发布新的 gem 没有任何迹象将 gem 'activerecord-jdbcmysql-adapter', '~> 5.0.pre1'
添加到您的 gemfile