我能够设置我的 rails 项目(rails 版本 3.2.7)并运行 rails generate rspec:install(rspec 版本 2.11.1)。它还在 specs 目录中构建了测试文件,但是当我运行“rspec”时,开始出现一堆错误:
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- bundler/setup (LoadError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
...
我也试过“bundle exec rspec”,然后错误是:
/var/lib/gems/1.9.1/gems/sqlite3-1.3.6/lib/sqlite3/sqlite3_native.so: [BUG] Segmentation fault
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
Aborted (core dumped)
有任何想法吗?