gpt4 book ai didi

jruby - Rails5 jruby 无法启动

转载 作者:行者123 更新时间:2023-12-04 17:16:49 26 4
gpt4 key购买 nike

无法使用 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位服务器
  • VM 25.91-b14 on 1.8.0_91-8u91-b14-0ubuntu4~16.04.1-b14 +jit [linux-x86_64]
  • 导轨 5.0.0
  • 最佳答案

    Rails 5 的 ActiveRecord JDBC gem 尚未更新。在 GitHub 中查看该项目显示了今年年初的一些开发事件,但没有迹象表明何时会为 Rails 5 发布新的 gem。

    关于jruby - Rails5 jruby 无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38562472/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com