Len character binding failed Ruby Racer

I am running El Capitan (Fresh install) and a Rails 4.2.1 application with Ruby 2.2.2. At first I ran into problems installing libv8 and had to install using brew, install v8 and gem install libv8 (version) with systemv8 as a flag. Bundle works fine and installs all gem dependencies.

But when I go to download rails s or bundle exec thin start to start my application server, I get the following error.

 dyld: lazy symbol binding failed: Symbol not found: __ZN2v82V821AddGCPrologueCallbackEPFvNS_6GCTypeENS_15GCCallbackFlagsEES1_ Referenced from: /Users/shakycode/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/therubyracer-0.12.2/v8/init.bundle Expected in: flat namespace dyld: Symbol not found: __ZN2v82V821AddGCPrologueCallbackEPFvNS_6GCTypeENS_15GCCallbackFlagsEES1_ Referenced from: /Users/shakycode/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/extensions/x86_64-darwin-15/2.2.0-static/therubyracer-0.12.2/v8/init.bundle Expected in: flat namespace 

I am looking for Google and looking for answers, but have not come up with much that still works. My other machine, which was upgrading to El Capitan, does not cause any problems, but this clean install is problematic with libv8 / v8 / therubyracer.

Any thoughts on how I can debug this one? I want a code.

+5
source share
2 answers

I had this problem and solved it by uninstalling and reinstalling therubyracer as follows:

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

For me, this was caused by updating libv8 in the Gemfile. bundle install appeared without problems after the upgrade, but I saw the same error as the OP when I tried to do something on the command line.

+2
source

Just reinstalling therubyracer also didn't work for me. Complete instructions:

 gem uninstall therubyracer libv8 gem install libv8 therubyracer -- --with-system-v8 
+5
source

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


All Articles