Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ruby] require 'v8eval' raises LoadError; native extension build error #9

Closed
ktimothy opened this issue Dec 12, 2015 · 6 comments
Closed

Comments

@ktimothy
Copy link

code:

require 'v8eval'

exception:

/home/vagrant/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- v8eval/v8eval (LoadError)
    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/v8eval-0.2.1/ruby/lib/v8eval.rb:2:in `<top (required)>'
    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `require'
    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
    from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require'
@ktimothy
Copy link
Author

Oh, I look like something was wrong with the installation. Now I get an error:

compiling v8eval_wrap.cxx
cc1plus: error: unrecognized command line option '-std=c++11'
make: *** [v8eval_wrap.o] Error 1

make failed, exit code 2

I guess I have wrong version of g++ or something else... Any ideas?

@ktimothy ktimothy changed the title [ruby] require 'v8eval' raises LoadError [ruby] require 'v8eval' raises LoadError; native extension build error Dec 12, 2015
@ktimothy
Copy link
Author

I have solved the problem: I had g++ compiler 4.6 while v8 (or swig or whatever else) needed 4.8 to build.

I think it is good to add to README that g++ 4.8 is needed.

@YoshiyukiMineo
Copy link
Member

Hi

What is your platform?

v8eval supports Mac and Linux.
v8eval/build.sh uses clang that is the default compiler in Mac
or uses clang that is fetched together with V8 in Linux.

See https://github.com/sony/v8eval/blob/master/build.sh#L5-L20

@ktimothy
Copy link
Author

Hi, I use Ubuntu 12.04.5 LTS.

@YoshiyukiMineo
Copy link
Member

I think v8eval don't set the compiler correctly in 'gem install'.
We will fix the bug.

@YoshiyukiMineo
Copy link
Member

We have fixed this issue. Thank you for your feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants