Re: cannot bundle install due to missing therubyracer

Colin Law
Sat, 25 Aug 2012 10:32:29 -0000

On 25 August 2012 10:40, Soichi Ishida
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:
> 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.

Make sure you have all the build environment packages installed.  For
Ubuntu I do
sudo apt-get install build-essential bison openssl libreadline6
libreadline6-dev curl git-core \
zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev autoconf
libc6-dev ncurses-dev automake \
libtool

Colin

>
>         /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/.
>
> --
> You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit https://groups.google.com/groups/opt_out.
>
>