Error starting rails server - Symbol not found - therubyracer

I have this setting:

  • OSX El Capitan 10.11.1
  • Ruby 2.0.0p247 (Rbenv) (I don't have RVM)
  • Rails 4.1.14.1

I run bundle install and everything looks fine, but when I run rails server , it returns this message:

 dyld: lazy symbol binding failed: Symbol not found: __ZN2v82V821AddGCPrologueCallbackEPFvNS_6GCTypeENS_15GCCallbackFlagsEES1_ Referenced from: /Users/cleytonmessias/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/therubyracer-0.12.1/lib/v8/init.bundle Expected in: flat namespace dyld: Symbol not found: __ZN2v82V821AddGCPrologueCallbackEPFvNS_6GCTypeENS_15GCCallbackFlagsEES1_ Referenced from: /Users/cleytonmessias/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/therubyracer-0.12.1/lib/v8/init.bundle Expected in: flat namespace Trace/BPT trap: 5 

I have seen some people with this problem here , but so far there has been no solution.

Here is my gemfile .

+5
source share
1 answer

I'm not really a Mac user, but for curiosity I tried to find a solution. I see that there is software incompatibility with a specific version of OS X. The main part of the solution is a software update. Of the many subsequent answers, it seems correct to me:

 gem uninstall therubyracer gem install therubyracer -v '0.12.2' -- --with-system-v8 

On my Ubuntu system, I use NodeJS as the javascript runtime. I suggest using it if possible.

Hope this helps!

+1
source

Source: https://habr.com/ru/post/1244439/


All Articles