cannot bundle install due to missing therubyracer

Soichi Ishida
Sat, 25 Aug 2012 09:40:27 -0000

ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
rails 3.1.3
Ubuntu 10.04 LTS

I have another environment with MacOSX Snow Leopard, and am sharing the
Rails project files through Dropbox.
When I chose to develop a project further in this Ubuntu machine, I have
executed ''bundle install'' which gave an error


#---------
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
extension.

        /home/soichi/.rvm/rubies/ruby-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.

....


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

so, I did "gem install therubyracer -v ''0.9.10''" as
told.
But it gave an error,

#----------
*** 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.
#----------

I tried to find the log file by

 find ~/.rvm/ -type f -name "mkmf.log" |grep therubyracer

but there is no such log file.

Can anyone point out the problems causing this "bundle install" error?

--
Posted via http://www.ruby-forum.com/.