Questions tagged [therubyracer]

a Ruby Gem that allows Ruby to access JavaScript objects and allows JavaScript to access Ruby object.

The Ruby Racer is a Ruby Gem that allows Ruby to access JavaScript objects and allows JavaScript to access Ruby object. It accomplishes this by embedding the V8 engine via the gem.

Resources

Related Tags

128 questions
91
votes
12 answers

"gem install therubyracer -v '0.10.2'" on osx mavericks not installing

Trying to install therubyracer on mavericks using "gem install therubyracer -v '0.10.2'" but i am getting the following error: /Users/dennischen/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb checking for main() in -lobjc... yes creating…
user2711889
  • 990
  • 1
  • 7
  • 9
85
votes
15 answers

therubyracer - Gem::Ext::BuildError: ERROR: Failed to build gem native extension

I'm trying to install the following gem versions on Mavericks libv8 (3.16.14.3) therubyracer (0.12.1) Obviously therubyracer gems depends on libv8. 1) Installing libv8 What is libv8? My bit of research seems to indicaite it's some sort of…
user2490003
  • 10,706
  • 17
  • 79
  • 155
40
votes
14 answers

therubyracer install error

As you can see below, libv8 installs fine, but therubyracer doesn't. I'm using Mac 10.7.4. ~/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1> gem install libv8 Building native extensions. This could take a while... Successfully installed…
Rose Perrone
  • 61,572
  • 58
  • 208
  • 243
28
votes
10 answers

Install therubyracer gem on OSX 10.11 El Capitan

bundle install fails with Make sure that `gem install therubyracer -v '0.12.1'` succeeds before bundling gem install therubyracer -v '0.12.1' fails with errors which appear to relate to compilation Prior to this, libv8 gem was having problems but…
xxjjnn
  • 14,591
  • 19
  • 61
  • 94
24
votes
7 answers

Fix therubyracer/libv8 (0.12.1) installation on Mavericks

OK, I’m at the end of my tether with this. There are a few similar questions but they all refer to therubyracer 0.10, and they mostly conclude that the problem can be fixed by upgrading to 0.12. I’m having similar problems, but when I use…
Chris S
  • 719
  • 1
  • 6
  • 13
16
votes
2 answers

What is therubyracer or libv8 for in a rails application?

I was working on a project and was having issues with therubyracer and libv8 often, so i decided to remove them. It seemed to be the only thing that used them as a dependency was less-rails which I wanted to remove anyways. My main question is what…
Weston Ganger
  • 6,324
  • 4
  • 41
  • 39
13
votes
2 answers

Unable To Install 'therubyracer v0.12.3' gem in M1 Macbook Pro

I am using M1 Macbook Pro and wants to install therubyracer and libv8 for a rails webapp. But I am unable to do so because of the errors described below. There are several solutions available on the internet but none of them is working for…
10
votes
3 answers

Lazy symbol binding failed Ruby Racer

I'm running El Capitan (Fresh install) and a Rails 4.2.1 app with Ruby 2.2.2. I've ran into issues initially with installing libv8 and had to force an install with brew install v8 and gem install libv8 (version) with systemv8 as a flag. Bundle…
nulltek
  • 3,247
  • 9
  • 44
  • 94
10
votes
3 answers

Gem install therubyracer -v '0.11.4'?

I'm nearly crazy to install therubyracer. I know there're many people have the same problem with me, and I had also viewd these issues, however it's too complicated for me cause different situations have the different solutions. And in fact,…
frank jorsn
  • 489
  • 1
  • 9
  • 27
9
votes
1 answer

Using less (2.2.1) raises an error requiring therubyracer (can't install therubyracer on windows)

I've been working to get twitter-bootstrap-rails gem working on my windows machine and ran into an error attempting to install 'therubyracer' gem which is a dependency of older version of the less gem. I think upgraded to less 2.2.1 which is not…
8
votes
2 answers

Error installing therubyracer gem for Mac 10.9 / Rails 3.2.11

Any idea why I can't install therubyracer gem for Mac 10.9 and Rails 3? Installing therubyracer (0.11.3) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/xiruki/.rvm/rubies/ruby-1.9.3-p448/bin/ruby…
xirukitepe
  • 1,575
  • 7
  • 26
  • 54
8
votes
3 answers

Could not find a JavaScript runtime despite therubyracer and nodejs being installed

I'm trying to run a Rails app on CentOS 5 and keep getting this error: Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable) I have both NodeJS (v0.8.15) and…
user1932315
7
votes
2 answers

Error running rails server - Symbol not found - therubyracer

I have this setup: 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 ok, but when I run rails server, it returns this message: dyld: lazy symbol binding failed: Symbol not…
Cleyton
  • 2,338
  • 6
  • 23
  • 39
7
votes
1 answer

Stack trace from javascript error from therubyracer / v8 in rails 3

I am running some javascript inside a rails 3 app using therubyracer and v8 If anything goes wrong, the error message gets sent to me via email through the usual rails 3 exception notification process. However, the error message I get back is pretty…
leeroid
  • 192
  • 2
  • 10
6
votes
2 answers

Unable to install therubyracer on clean install of Yosemite and clean version of ruby

There are many people with similar issues and I've been one of them in the past on other machines and none of the solutions out there appear to work -- I also appear to have different error than others who have similar problems: Building native…
Ecnalyr
  • 5,792
  • 5
  • 43
  • 89
1
2 3
8 9