libv8がどうのとか言ってる。
http://www.ruby-forum.com/topic/4306127
libv8をアンインストールしてtherubyracerを入れたら上手く言った。
Installing therubyracer (0.10.1) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /home/shohei/.rbenv/versions/1.9.3-p125/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/shohei/.rbenv/versions/1.9.3-p125/bin/ruby extconf.rb:15:in `<main>': undefined method `include_path' for Libv8:Module (NoMethodError) Gem files will remain installed in /home/shohei/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/therubyracer-0.10.1 for inspection. Results logged to /home/shohei/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/therubyracer-0.10.1/ext/v8/gem_make.out An error occurred while installing therubyracer (0.10.1), and Bundler cannot continue. Make sure that `gem install therubyracer -v '0.10.1'` succeeds before bundling. [shohei@www11136ui mongoapi]$ gem install therubyracer -v '0.10.1' Building native extensions. This could take a while... ERROR: Error installing therubyracer: ERROR: Failed to build gem native extension. /home/shohei/.rbenv/versions/1.9.3-p125/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/shohei/.rbenv/versions/1.9.3-p125/bin/ruby extconf.rb:15:in `<main>': undefined method `include_path' for Libv8:Module (NoMethodError) Gem files will remain installed in /home/shohei/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/therubyracer-0.10.1 for inspection. Results logged to /home/shohei/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/therubyracer-0.10.1/ext/v8/gem_make.out [shohei@www11136ui mongoapi]$ [shohei@www11136ui mongoapi]$ [shohei@www11136ui mongoapi]$ gem uninstall libv8 Select gem to uninstall: 1. libv8-3.3.10.4-x86_64-linux 2. libv8-3.11.8.13-x86_64-linux 3. All versions > 3 Successfully uninstalled libv8-3.3.10.4-x86_64-linux You have requested to uninstall the gem: libv8-3.11.8.13-x86_64-linux therubyracer-0.11.3 depends on [libv8 (~> 3.11.8.12)] If you remove this gems, one or more dependencies will not be met. Continue with Uninstall? [Yn] Y Successfully uninstalled libv8-3.11.8.13-x86_64-linux [shohei@www11136ui mongoapi]$ gem install therubyracer -v '0.10.1' Fetching: libv8-3.3.10.4-x86_64-linux.gem (100%) Building native extensions. This could take a while... Successfully installed libv8-3.3.10.4-x86_64-linux Successfully installed therubyracer-0.10.1 2 gems installed Installing ri documentation for libv8-3.3.10.4-x86_64-linux... Installing ri documentation for therubyracer-0.10.1... Installing RDoc documentation for libv8-3.3.10.4-x86_64-linux... Installing RDoc documentation for therubyracer-0.10.1...