Project

General

Profile

Bug #11169

Symbol not found: _rb_str_new_static

Added by buihdk (Khoa Bui) over 5 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:<unknown>]

Description

when i'm running rails server i'm getting this message below:

Warning: You're using Rubygems 2.0.14 with Spring. Upgrade to at least Rubygems 2.1.0 and run `gem pristine --all` for better startup performance.
dyld: lazy symbol binding failed: Symbol not found: _rb_str_new_static
  Referenced from: /Users/buihdk/.rvm/gems/ruby-2.2.1/gems/json-1.8.2/lib/json/ext/parser.bundle
  Expected in: flat namespace

dyld: Symbol not found: _rb_str_new_static
  Referenced from: /Users/buihdk/.rvm/gems/ruby-2.2.1/gems/json-1.8.2/lib/json/ext/parser.bundle
  Expected in: flat namespace

Trace/BPT trap: 5

Does anyone know the solution for this issue?

Thanks!

#1

Updated by nobu (Nobuyoshi Nakada) over 5 years ago

  • Status changed from Open to Feedback
  • Priority changed from 5 to 3

Seems you are running 2.0.0 with an extension library for 2.2.
Check your ruby's version.

Updated by buihdk (Khoa Bui) over 5 years ago

Nobuyoshi Nakada wrote:

Seems you are running 2.0.0 with an extension library for 2.2.
Check your ruby's version.

My ruby version is 2.2.1
I am new to Ruby and Rails so any help would be greatly appreciated! :)

Updated by buihdk (Khoa Bui) over 5 years ago

  • Assignee set to nobu (Nobuyoshi Nakada)

Nobuyoshi Nakada wrote:

Seems you are running 2.0.0 with an extension library for 2.2.
Check your ruby's version.

My ruby version is 2.2.1
I am new to Ruby and Rails so any help would be greatly appreciated! :)

Updated by buihdk (Khoa Bui) over 5 years ago

I figured out how to solve it. I ran 'gem pristine --all' 2 times and it worked!

Updated by buihdk (Khoa Bui) over 5 years ago

  • Assignee deleted (nobu (Nobuyoshi Nakada))

Updated by nobu (Nobuyoshi Nakada) over 5 years ago

  • Status changed from Feedback to Rejected

Updated by kleinjm007@gmail.com (James Klein) over 4 years ago

This saved me such a huge headache. I was stuck on this for an hour with Puma right out of the box. Thank you so much

Also available in: Atom PDF