If you have multiple version gem , you can change the default version by this command sudo update-alternatives –config gem...