rubyjs / therubyracer

Embed the V8 Javascript Interpreter into Ruby
1.66k stars 193 forks source link

libV8 breaks it all #221

Closed benbonnet closed 11 years ago

benbonnet commented 11 years ago

Since when the rubyracer requires the libv8 gem to be included in the Gemfile ?

gem "therubyracer", :require => 'v8' breaks.

Then you're told ton add gem 'libv8', '~> 3.11.8' in the gemfile. The bundler takes a 30minutes something to complete, stuck on libv8 99% of the time.

benbonnet commented 11 years ago

ok… So I could have thought about it before.

From another deployment that worked very well, I took the version and specified it in the Gemfile :

gem "execjs", "1.4.0" gem "therubyracer", "0.10.2"

Then, well, it works.

But otherwise, the latest version(s) of the rubyracer are very troublesome.

GirlBossRush commented 11 years ago

+1 libv8 is a show stopper.

kylerippey commented 11 years ago

I spent several hours fighting with therubyracer 0.11 and compiling libv8 on Ubuntu 12.04... Finally found this thread and tried:

gem "execjs", "1.4.0" gem "therubyracer", "0.10.2"

Worked like a charm, thanks!

kurko commented 11 years ago

Unfortunately, therubyracer 0.10 is segfaulting badly for me (stacktrace https://gist.github.com/4421218). Updating to 0.11 seems impossible due to libv8 (gem install libv8 just hangs)

cowboyd commented 11 years ago

@kurko it is not hanging, it is compiling v8 which can take anywhere from 2-15 minutes depending on your CPU. I am working on binary version.

I can help compiling binary version, but will need access to your production enviroment.

benbonnet commented 11 years ago

Issue closed… maybe it takes up to 15 minutes; but in the end it did not worked at all

ignisf commented 11 years ago

@bbnnt which versions of therubyracer and libv8 have you specified in your Gemfile?

cowboyd commented 11 years ago

Note that there are now binary gems for most popular development and deployment platforms including Linux, OSX and FreeBSD so it may very well be all you need to do is upgrade.