0

There are a handful of questions that sort of skirt around this question, but nothing that really gets to what I'm looking for.

After I bundle install my Gemfile, listed below, I run annotate and come up with the following error:

/Users/nickcoelius/.rvm/gems/ruby-1.8.7-p334@nick/gems/sqlite3-ruby-1.3.2/lib/sqlite3/sqlite3_native.bundle: [BUG] Segmentation fault
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin10]

Abort trap

I'm running ruby 1.8.7, rails 3.0.7, and Mac OS 10.6.7. Thoughts?

Ruby -v: ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin10] Rails -v: Rails 3.0.7

Gem list:

abstract (1.0.0)
actionmailer (3.0.7)
actionpack (3.0.7)
activemodel (3.0.7)
activerecord (3.0.7)
activeresource (3.0.7)
activesupport (3.0.7)
annotate (2.4.0)
annotate-models (1.0.4)
arel (2.0.10)
builder (2.1.2)
bundler (1.0.14)
diff-lcs (1.1.2)
erubis (2.6.6)
i18n (0.5.0)
mail (2.2.19)
mime-types (1.16)
nokogiri (1.4.4)
polyglot (0.3.1)
rack (1.2.3)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (3.0.7)
railties (3.0.7)
rake (0.9.2, 0.8.7)
rspec (2.5.0)
rspec-core (2.5.2)
rspec-expectations (2.5.0)
rspec-mocks (2.5.0)
rspec-rails (2.5.0)
spork (0.9.0.rc5)
sqlite3-ruby (1.3.2)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.27)
webrat (0.7.3)
Nick Coelius
  • 4,668
  • 3
  • 24
  • 30
  • Did you install the correct libraries for the native sqlite3 gem? If you have the incorrect architecture that would cause a segfault. – Devin M Jun 08 '11 at 05:28
  • Also, try restarting your terminal and can you provide the output of `ruby -v` and `rails -v` – Devin M Jun 08 '11 at 05:30
  • What do you mean by "correct libraries"? I'm a rails novice, obviously, so I'm not sure what you're driving at. Edited post with rails/ruby -v. – Nick Coelius Jun 08 '11 at 05:43
  • Side note: Thanks for the edits, but how do you get scrollbar boxes in the first place? SO newb as well :-/ – Nick Coelius Jun 08 '11 at 05:46
  • Try upgrading `sqlite3-ruby` (latest version is 1.3.3): `gem update && bundle update` – neezer Jun 08 '11 at 14:36
  • I ran gem update && bundle update, got no errors, but did not apparently update sqlite3-ruby. Obviously I'm doing something wrong, but what is it? – Nick Coelius Jun 08 '11 at 16:27

2 Answers2

3

This error probably were caused by some rvm crash. I had the same problem and after a hour Googling, I found the following solution:

  1. Uninstall all gems: gem list | cut -d" " -f1 | xargs gem uninstall -aIx
  2. gem install rake
  3. gem install bundler
  4. bundle install

Now it should work

dpaluy
  • 3,537
  • 1
  • 28
  • 42
0

Why don't you try bundle exec annotate?

Peter DeWeese
  • 18,141
  • 8
  • 79
  • 101
digitalWestie
  • 2,647
  • 6
  • 28
  • 45