thinのインストール

thinをインストールしようとしたら怒られた。


Building native extensions. This could take a while...
ERROR: Error installing thin:
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb
checking for rb_trap_immediate... yes
checking for rb_thread_blocking_region()... no
checking for inotify_init()... yes
checking for writev()... yes
checking for sys/event.h... no
checking for sys/epoll.h... yes
creating Makefile

make
g++ -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DHAVE_INOTIFY_INIT -DHAVE_INOTIFY -DHAVE_WRITEV -DHAVE_WRITEV -DOS_UNIX -DHAVE_SYS_EPOLL_H -DHAVE_EPOLL -DWITH_SSL -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -fno-strict-aliasing -fPIC -I/usr/kerberos/include -c page.cpp
make: g++: コマンドが見つかりませんでした
make: *** [page.o] エラー 127


Gem files will remain installed in /usr/lib64/ruby/gems/1.8/gems/eventmachine-0.12.8 for inspection.
Results logged to /usr/lib64/ruby/gems/1.8/gems/eventmachine-0.12.8/ext/gem_make.out

なので、以下をインストール


$ yum install -y gcc-c++