LoginSignup
1
0

More than 5 years have passed since last update.

bundle install するとlibv8が...noになる

Posted at
  • MacOS EL Capitan 10.11.6
  • Ruby 2.3.3
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

.
.
.
siteconf20170329-3176-1qijbxq.rb extconf.rb
checking for main() in -lpthread... yes
checking for main() in -lobjc... yes
checking for v8.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/Users/taku/.rbenv/versions/2.3.3/bin/$(RUBY_BASE_NAME)
    --with-pthreadlib
    --without-pthreadlib
    --with-objclib
    --without-objclib
    --enable-debug
    --disable-debug
    --with-v8-dir
    --without-v8-dir
    --with-v8-include
    --without-v8-include=${v8-dir}/include
    --with-v8-lib
    --without-v8-lib=${v8-dir}/lib
.
.
.

thanks,
The Mgmt

    from /Users/taku/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/libv8-3.16.14.13/lib/libv8.rb:7:in `configure_makefile'
    from extconf.rb:32:in `<main>'

To see why this extension failed to compile, please check the mkmf.log which can be found here:

.
.
.

extconf failed, exit code 1

.
.
.

An error occurred while installing therubyracer (0.12.2), and Bundler cannot continue.
Make sure that `gem install therubyracer -v '0.12.2'` succeeds before bundling.

libv8をインストールします

$ bundle update libv8

えっ通った?

$ bundle install

.
.
.
Bundle complete! 97 Gemfile dependencies, 200 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.

でけたーーーーーーーーーーー!
2日もかかった...

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0