Jeremy Evans [jeremyeva...@gmail.com] wrote:
> 
> Like I mentioned earlier, there's libv8 the shared library, and libv8 the
> ruby gem.  The port you installed is for the shared library.   The rails
> app is complaining because it wants you to install the libv8 ruby gem.  The
> Gemfile includes gem 'libv8', so it appears to be a direct dependency of
> the rails app you are working on.
> 

I think it uses node.js. Or somehow other uses libv8.

I mentioned that I installed libv8 from ports so that you could provide
me with the secret handshake for make it all work together!

What I think you're saying is that bundle should just work ?

> You didn't mention what happens when you run `bundle install`.  As the
> rails app you are working on uses bundler, running `bundle install` is
> basically the first thing you should do after cloning the repository.
> 

bundle tries to compile libv8 and fails because g++44, g++45, g++46 don't exist 
(eg++
of course) which appear to be the debian/ubuntu names for explicit versions of
g++.

When I run gem by hand, it tries to compile libv8 with g++ and runs into
some error (that may be related to the fact that it isn't g++ 4.4 or higher.)

Building native extensions.  This could take a while...
ERROR:  Error installing libv8:
        ERROR: Failed to build gem native extension.

    /usr/local/bin/ruby20 extconf.rb
creating Makefile
Compiling v8 for x64
Using python 2.7.4
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
Using compiler: g++
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
cc1plus: warnings being treated as errors
In file included from ../src/elements.h:33,
                 from ../src/objects-inl.h:38,
                 from ../src/v8.h:60,
                 from ../src/accessors.cc:28:
../src/heap.h: In member function 'v8::internal::byte** 
v8::internal::Heap::store_buffer_top_address()':
../src/heap.h:1317: warning: dereferencing type-punned pointer will break 
strict-aliasing rules
gmake[1]: *** 
[/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/v8_base/src/accessors.o]
 Error 1
gmake: *** [x64.release] Error 2
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/ext/libv8/location.rb:36:in 
`block in verify_installation!': libv8 did not install properly, expected 
binary v8 archive 
'/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/tools/gyp/libv8_base.a'to
 exist, but it was not found (Libv8::Location::Vendor::ArchiveNotFound)
        from 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/ext/libv8/location.rb:35:in 
`each'
        from 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/ext/libv8/location.rb:35:in 
`verify_installation!'
        from 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/ext/libv8/location.rb:26:in 
`install!'
        from extconf.rb:7:in `<main>'
GYP_GENERATORS=make \
build/gyp/gyp --generator-output="out" build/all.gyp \
              -Ibuild/standalone.gypi --depth=. \
              -Dv8_target_arch=x64 \
              -S.x64  -Dv8_enable_backtrace=1 
-Dv8_can_use_vfp2_instructions=true -Darm_fpu=vfpv2 
-Dv8_can_use_vfp3_instructions=true -Darm_fpu=vfpv3
gmake[1]: Entering directory 
`/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out'
  CXX(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o
  CXX(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o
  CXX(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o
  CXX(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum-dtoa.o
  CXX(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o
  CXX(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/preparser_lib/src/conversions.o
  CXX(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/preparser_lib/src/diy-fp.o
  CXX(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/preparser_lib/src/dtoa.o
  CXX(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fast-dtoa.o
  CXX(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fixed-dtoa.o
  CXX(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/preparser_lib/src/once.o
  CXX(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparse-data.o
  CXX(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser.o
  CXX(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser-api.o
  CXX(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/preparser_lib/src/scanner.o
  CXX(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/preparser_lib/src/strtod.o
  CXX(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/preparser_lib/src/token.o
  CXX(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/preparser_lib/src/unicode.o
  CXX(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/preparser_lib/src/utils.o
  AR(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/tools/gyp/libpreparser_lib.a
  CXX(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/preparser/preparser/preparser-process.o
  LINK(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/preparser
  CXX(target) 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out/x64.release/obj.target/v8_base/src/accessors.o
gmake[1]: Leaving directory 
`/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/vendor/v8/out'


Gem files will remain installed in 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1 for inspection.
Results logged to 
/usr/local/lib/ruby/gems/2.0/gems/libv8-3.16.14.1/ext/libv8/gem_make.out

Reply via email to