I''m struggling to install therubyracer gem. Using CentOS 6.2 x86_64, ruby 1.9.3p194, gem 1.8.24, libv8 (3.10.8.0, 3.3.10.4 x86_64-linux) Trying to install therubyracer gives me: Building native extensions. This could take a while... ERROR: Error installing therubyracer: ERROR: Failed to build gem native extension. /usr/local/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=/usr/local/bin/ruby extconf.rb:15:in `<main>'': undefined method `include_path'' for Libv8:Module (NoMethodError) Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/ therubyracer-0.10.1 for inspection. Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/ therubyracer-0.10.1/ext/v8/gem_make.out Any ideas? -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Don''t suppose anyone else has had any problems installing therubyracer? Is there anything particular to look out for installing on 64-bit linux? On May 18, 3:19 pm, tfp44 <ol.robin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m struggling to install therubyracer gem. Using CentOS 6.2 x86_64, > ruby 1.9.3p194, gem 1.8.24, libv8 (3.10.8.0, 3.3.10.4 x86_64-linux) > > Trying to install therubyracer gives me: > > Building native extensions. This could take a while... > ERROR: Error installing therubyracer: > ERROR: Failed to build gem native extension. > > /usr/local/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=/usr/local/bin/ruby > extconf.rb:15:in `<main>'': undefined method `include_path'' for > Libv8:Module (NoMethodError) > > Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/ > therubyracer-0.10.1 for inspection. > Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/ > therubyracer-0.10.1/ext/v8/gem_make.out > > Any ideas?-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Try this: $ gem uninstall libv8 $ gem install therubyracer It works for me. -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Rails hosts, for instance Heroku, are strongly advising against therubyracer because of memory usage. I removed therubyracer from my gems and just did $sudo apt-get install nodejs. Not sure if that is the preferred method, but it works for me. On Saturday, May 19, 2012 4:36:22 PM UTC+1, tfp44 wrote:> > Don''t suppose anyone else has had any problems installing > therubyracer? Is there anything particular to look out for installing > on 64-bit linux? > > On May 18, 3:19 pm, tfp44 <ol.robin...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I''m struggling to install therubyracer gem. Using CentOS 6.2 x86_64, > > ruby 1.9.3p194, gem 1.8.24, libv8 (3.10.8.0, 3.3.10.4 x86_64-linux) > > > > Trying to install therubyracer gives me: > > > > Building native extensions. This could take a while... > > ERROR: Error installing therubyracer: > > ERROR: Failed to build gem native extension. > > > > /usr/local/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=/usr/local/bin/ruby > > extconf.rb:15:in `<main>'': undefined method `include_path'' for > > Libv8:Module (NoMethodError) > > > > Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/ > > therubyracer-0.10.1 for inspection. > > Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/ > > therubyracer-0.10.1/ext/v8/gem_make.out > > > > Any ideas?-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/yuF2hHnquOsJ. 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Just wanted to mention that I performed the steps mentioned by Meck Z. on osx lion to deal with the same issue. (was playing with fatfreecrm which now apparently uses therubyracer). Thanks! -- 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 this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I found a similar problem, but got a little nugget of info in the error on OS X 10.8 Mountain Lion: make compiling rr.cpp make: g++-4.2: No such file or directory make: *** [rr.o] Error 1 I found that all you need to do on Mountain Lion is: 1: Make sure you''ve installed Xcode command line tools so that the g++ directory is in /usr/bin 2: Type "sudo ln -s g++ g++-4.2" Enjoy :) -- 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.
Thanks zorz that worked for me. However anytime I type anything in terminal I get this line after: "-bash: __git_ps1: command not found" is there a way to get rid of this? -- 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.
@johnrlive install git with homebrew rather than relying on the os x version. -- 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.
Meck Z. wrote in post #1061376:> Try this: > > $ gem uninstall libv8 > $ gem install therubyracer > > It works for me.Worked for me too. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2c29dd62b5c3c983728511b5458183ff%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.