My Rails is 3.2.1.4, Ruby is 1.9.3p448.
3.2.1.4
1.9.3p448
I got an error when I install ruby-debug:
ruby-debug
Building native extensions.
I had the issue because gcc wasn't available on my machine.
gcc
Fixed it by installing gcc.
sudo apt install build-essential