Your first mistake is installing Rails. You're second mistake is attempting to do so on your development machine and not in a jail or vm.
Much of the time, development can be done in all sorts of ways that needs little connection to the final production environment.