1 找到ruby執行文件目錄ruby
$ wherris rubyim
ruby: /usr/lib/ruby /home/rudy/.rbenv/shims/ruby文件
2 設置軟連接sudo
sudo ln -s /home/rudy/.rbenv/shims/ruby /usr/bin/ruby