Get a copy from sunfreeware.com. I used version 1.11. Gunzip/tar xvf the archive and then cd to the newly created directory.
./configure --prefix=/usr make make install This should be done before you compile ruby. If not, you'll have problem down the road.