joelmoss / strano

Capistrano and Github sittin' in a tree...
http://developwithstyle.com
MIT License
579 stars 70 forks source link

Can't install therubyracer-0.10.0 #32

Closed yevgenko closed 11 years ago

yevgenko commented 11 years ago

I'm running Ubuntu 12.04, here is output of gem install therubyracer -v '0.10.0'

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

        /home/wik/.rbenv/versions/1.9.3-p194/bin/ruby extconf.rb
*** 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=/home/wik/.rbenv/versions/1.9.3-p194/bin/ruby
extconf.rb:15:in `<main>': undefined method `include_path' for Libv8:Module (NoMethodError)

Gem files will remain installed in /home/wik/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/therubyracer-0.10.0 for inspection.
Results logged to /home/wik/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/therubyracer-0.10.0/ext/v8/gem_make.out
yevgenko commented 11 years ago

Most likely some libraries/headers, as it said, are missed, but the following workaround finally did the trick:

bundle update capistrano therubyracer
yevgenko commented 11 years ago

Fixed