rails 4.0.0.beta1 installation error

I get the same error, I solved with the 32bit version, ruby+devkit