简体   繁体   中英

Rails Server won't start after Ruby upgrade - Segmentation Fault

After upgrading my Ruby to 1.9.3-p429, I tried to start the Rails server. It told me rails was not installed so, I boldly did a 'gem install rails'. Now when I try to start the server, I'm getting this:

andrunix@amp-laptop~/code/madrilla$ rails s
/Users/andrunix/.rvm/gems/ruby-1.9.3-p429/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle: [BUG] Segmentation fault
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]

Abort trap: 6

I have no idea why that says, "ruby 1.8.7" in that output. Perhaps that's a clue to my problem.

But anyway, super frustrated at this point.

And by the way, this is on OS X.

Help me please!

尝试将已安装的版本设置为整个系统的默认版本:

rvm --default use  ruby-1.9.3-p429

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM