新人求助..thin start 出错 WINDOWS环境

killer0717 2016-06-06 03:34:39
在网上找了教程 安装ruby devkit gem安装了thin以及所有的依赖库 但是启动的时候报错
报错内容如下
E:\lt_bridge>thin start
Using rails adapter
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/activerecord-2.2.2/lib/active_record/base.rb:1205: warning: circular argument reference - table_name
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/activerecord-2.2.2/lib/active_record/base.rb:394:in `<class:Base>': undefined method `cattr_accessor' for ActiveRecord::B
ase:Class (NoMethodError)
Did you mean? attr_accessor
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/activerecord-2.2.2/lib/active_record/base.rb:391:in `<module:ActiveRecord>'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/activerecord-2.2.2/lib/active_record/base.rb:4:in `<top (required)>'
from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/activerecord-2.2.2/lib/active_record.rb:34:in `<top (required)>'
from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/composite_primary_keys-2.2.2/lib/composite_primary_keys.rb:29:in `<top (required)>'
from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `require'
from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in `rescue in require'
from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in `require'
from E:/lt_bridge/config/environment.rb:13:in `<top (required)>'
from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thin-1.7.0/lib/rack/adapter/rails.rb:32:in `load_application'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thin-1.7.0/lib/rack/adapter/rails.rb:23:in `initialize'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thin-1.7.0/lib/rack/adapter/loader.rb:45:in `new'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thin-1.7.0/lib/rack/adapter/loader.rb:45:in `for'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thin-1.7.0/lib/thin/controllers/controller.rb:170:in `load_adapter'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thin-1.7.0/lib/thin/controllers/controller.rb:74:in `start'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thin-1.7.0/lib/thin/runner.rb:200:in `run_command'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thin-1.7.0/lib/thin/runner.rb:156:in `run!'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/thin-1.7.0/bin/thin:6:in `<top (required)>'
from C:/Ruby23-x64/bin/thin:23:in `load'
from C:/Ruby23-x64/bin/thin:23:in `<main>'


gem list
actionmailer (2.2.2)
actionpack (2.2.2)
activerecord (2.2.2)
activerecord-odbc-adapter (2.0)
activerecord-sqlserver-adapter (2.3.5)
activeresource (2.2.2)
activesupport (2.2.2)
bigdecimal (1.2.8)
composite_primary_keys (2.2.2)
daemons (1.2.3)
did_you_mean (1.0.0)
eventmachine (1.2.0.1 x64-mingw32)
io-console (0.4.5)
json (1.8.3)
minitest (5.8.3)
net-telnet (0.1.1)
power_assert (0.2.6)
psych (2.0.17)
rack (1.6.4)
rails (2.2.2)
rake (10.4.2)
rdoc (4.2.1)
test-unit (3.1.5)
thin (1.7.0)


只是想把别人开发的一个项目给跑起来 求大神们指点 或者 给推荐一个好用的集成环境 用过 rubystack InstantRails 都会报错
...全文
6201 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
killer0717 2016-06-06
  • 打赏
  • 举报
回复
唉 都没大神来帮一下么?

2,763

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Ruby/Rails
社区管理员
  • Ruby/Rails社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧