It seems either the build of ruby-1.9.1 isn't completed, or some of build-in modules for the ruby are absent, for example mkmf
. So you have to add-in the module into the ruby-1.9.1 installation if any, in order to be able to build native gems with the ruby.
When reading about Troubleshooting Installation Problem they have mentioned to Install ruby1.9.1-dev package through
sudo apt-get install ruby1.9.1-dev
Of course try to install, and then do in irb of the ruby-1.9.1:
require 'mkmf'