Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Postgres segmentation fault ruby gem

I am trying to run this project https://github.com/eLobato/cartodb-rb-client but apparently either my rvm is messed up or pg has a terrible bug. This is the error trace

/usr/bin/ruby1.8 -S bundle exec rspec "./spec/model/data_spec.rb" "./spec/model/metadata_spec.rb" "./spec/model/scopes_spec.rb" "./spec/client_spec.rb"
/home/daniel/.rvm/gems/ruby-1.9.2-p290@cartodb-rb-client/gems/pg-0.11.0/lib/pg_ext.so: [BUG] Segmentation fault
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

Aborted
rake aborted!
ruby -S bundle exec rspec "./spec/model/data_spec.rb" "./spec/model/metadata_spec.rb" "./spec/model/scopes_spec.rb" "./spec/client_spec.rb" failed

Tasks: TOP => spec
(See full trace by running task with --trace)

The Segmentation fault line really bugs me a lot because I tried to reinstall pg with no avail. I am running Ubuntu 11.10 and I have installed both ruby 1.9.2 and 1.8.7

Any clue?

like image 886
dLobatog Avatar asked Mar 13 '26 13:03

dLobatog


1 Answers

I had this error too. Fixed it by removing all versions of Ruby installed on my system, then re-installing 1.9.3

Like so:

$ rvm remove all

$ rvm install ruby-1.9.3-p392

like image 74
Matt Avatar answered Mar 15 '26 06:03

Matt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!