I want to install a gem but I get the following error:
Building native extensions. This could take a while...
ERROR: Error installing twitter-login:
.jrubyrc edits suggested by Rodrigo didn't work for me (jdk 7u25 / JRuby 1.7.4), but exporting the JRUBY_OPTS did do the trick:
export JRUBY_OPTS="--1.9 -Xcext.enabled=true"
Make sure you are using the latest openjdk (7 update 21, at the time of this writing) and latest JRuby (1.7.4).
Create a file called .jrubyrc in your user home folder.
add the following;
cext.enabled=true
done