bash profile corrected the error with ruby -v :)