ruby - Error running Rails server on OS 10.10.2 -
versions
mac os: osx 10.10.2
ruby: 2.2.1p85
rails: 4.2.0
context
i following "install rails" tutorial online @ www.installrails.com. made through after encountering many errors. on last step of creating sample app, worked fine, , running server. now, run error.
errors
here seeing:
/users/work/.rvm/gems/ruby-2.2.1/gems/json-1.8.2/lib/json/ext/parser.bundle: [bug] segmentation fault @ 0x00000000000418 ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14] -- crash report log information -------------------------------------------- see crash report log file under 1 of following: * ~/library/logs/crashreporter * /library/logs/crashreporter * ~/library/logs/diagnosticreports * /library/logs/diagnosticreports more details. -- control frame information ----------------------------------------------- *a lot of information listed here* -- ruby level backtrace information ---------------------------------------- *a lot of information listed here* -- machine register context ------------------------------------------------ *a lot of information listed here* -- c level backtrace information ------------------------------------------- *a lot of information listed here* -- other runtime information ----------------------------------------------- * loaded script: bin/rails * loaded features: *and long list of files listed here* [note] may have encountered bug in ruby interpreter or extension libraries. bug reports welcome. don't forget include above crash report log file. details: http://www.ruby-lang.org/bugreport.html abort trap: 6
help
now, wondering if json gem causing problem?
let me know if need of removed information. bug report long removed codes says a lot of information listed here brevity.
per suggestion @maxd, ended having uninstall , reinstall ruby.
here process followed.
- i uninstalled ruby command line
rvm remove 2.2.1
- i reinstall 2.2.1 command line
rvm install 2.2.1
- then reinstalled rails command line
sudo gem install rails
- then used
bundle install
reinstall missing gems - next, used
gem install rubygems-update
update rubygems 2.0.14 2.1. - then reset gems pristine condition
gem pristine --all
. - then reason had rerun
bundle install
because actionmailer 4.2.0 no longer showing being installed, though in list after firstbundle install
. - finally running
rails -v
gave me output ofrails 4.2.0
instead of error codes.
so, ran rails server
, well.
Comments
Post a Comment