rubyの./configureでエラーが出る件

$ ./configure --prefix=/usr/local/stow/ruby-1.8.7-p72
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.

このへん。
MSN Japan - ニュース, 天気, メール (Outlook, Hotmail), Bing検索, Skype

sudo apt-get install build-essential

で直る。