$:/Users/dev/.rvm/gems/
ruby-1.9.2-head@rails3/gems/sqlite3-ruby-1.3.1/lib/sqlite3/sqlite3_native.bundle:[BUG]分段错误
红宝石1.8.7(2009-06-12 patchlevel 174)[universal-darwin10.0]
红宝石1.8.7(2009-06-12 patchlevel 174)[universal-darwin10.0]
Abort trap
似乎ruby不是正确的版本(1.8.7),但是:
$: ruby - v $: ruby 1.9.2dev (2010-07-15 revision 28653) [x86_64-darwin10.4.0] $: gem list *** LOCAL GEMS *** abstract (1.0.0) actionmailer (3.0.0.beta4,3.0.0.beta3) actionpack (3.0.0.beta4,3.0.0.beta3) activemodel (3.0.0.beta4,3.0.0.beta3) activerecord (3.0.0.beta4,3.0.0.beta3) activeresource (3.0.0.beta4,3.0.0.beta3) activesupport (3.0.0.beta4,3.0.0.beta3) arel (0.4.0,0.3.3) builder (2.1.2) bundler (0.9.26) erubis (2.6.6) i18n (0.4.1,0.3.7) mail (2.2.5) memcache-client (1.8.5) mime-types (1.16) polyglot (0.3.1) rack (1.1.0) rack-mount (0.6.9) rack-test (0.5.4) rails (3.0.0.beta4,3.0.0.beta3) railties (3.0.0.beta4,3.0.0.beta3) rake (0.8.7) rdoc (2.5.9) sqlite3-ruby (1.3.1) text-format (1.0.0) text-hyphen (1.0.0) thor (0.13.8) treetop (1.4.8) tzinfo (0.3.22) will_paginate (3.0.pre)
更多信息 :
$: ~ dev$ruby -v ruby 1.9.2dev (2010-07-15 revision 28653) [x86_64-darwin10.4.0] $:~ dev$rails -v /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:827:in `report_activate_error': Could not find RubyGem rails (>= 0) (Gem::LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:261:in `activate' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:68:in `gem' from /usr/bin/rails:18
有任何想法吗 ?
非常感谢 :)
解决方法
我不知道这是怎么发生在你的情况,但它看起来我Rails已经尝试运行与您的系统安装的Ruby,但正在加载宝石从1.9.2加载路径.很奇怪.
您在shell中看到正确的Ruby版本(RVM在本地路径中具有优先权),但这并不是Rails正在开始的.
检查您是如何启动Rails,并且您没有Ruby版本之间的路径或链接或别名混乱