Segmentation fault when running 'bundle exec rake'
I had the same error too. Googled around and found these two postshttp://community.onemonth.com/t/install-rvm-error/1883/25
https://bugs.ruby-lang.org/issues/9444
The first post's solution fixed it for me, so for you it would be:
rvm get stablervm reinstall ruby-2.1.5
This worked for me:
Uninstall ruby:
rvm remove 2.2.1
Install ruby:
rvm install 2.2.1
Reinstall rails:
sudo gem install rails
Reinstall missing gems:
bundle install
Update RubyGems
gem install rubygems-update
Reset gems
gem pristine --all
Maybe you'll have to rerun
bundle install
Try running rails server rails s
Actually, just recalling rvm use ruby-2.2.5
fixed this for me, and is less destructive than the other solutions.