Topic: therubyracer error during installation
Hey all... I've looked around for an answer and can't find anyone who's had this problem. I'm trying to install therubyracer gem on Ubuntu 10.04 LTS (Lucid). Ruby version is ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]. Rails version is 3.2.5. I have the latest gems version. I get the following error and I'm not sure what to do about it. I'm really new to Ruby and to Rails so patience is greatly appreciated.
Building native extensions. This could take a while...
ERROR: Error installing therubyracer:
ERROR: Failed to build gem native extension.
g++ -I. -I/var/lib/gems/1.8/gems/libv8-220.127.116.11-x86_64-linux/lib/libv8/v8/include -I/usr/lib/ruby/1.8/x86_64-linux -I/usr/lib/ruby/1.8/x86_64-linux -I. -Wall -g -rdynamic -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -c v8_array.cpp
make: g++: Command not found
make: *** [v8_array.o] Error 127
Gem files will remain installed in /var/lib/gems/1.8/gems/therubyracer-0.10.1 for inspection.
Results logged to /var/lib/gems/1.8/gems/therubyracer-0.10.1/ext/v8/gem_make.out