Installs ruby,rails and its dependencies.