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.

  1. i uninstalled ruby command line rvm remove 2.2.1
  2. i reinstall 2.2.1 command line rvm install 2.2.1
  3. then reinstalled rails command line sudo gem install rails
  4. then used bundle install reinstall missing gems
  5. next, used gem install rubygems-update update rubygems 2.0.14 2.1.
  6. then reset gems pristine condition gem pristine --all.
  7. then reason had rerun bundle install because actionmailer 4.2.0 no longer showing being installed, though in list after first bundle install.
  8. finally running rails -v gave me output of rails 4.2.0 instead of error codes.

so, ran rails server , well.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -