Put /root/.rbenv/shims first in PATH :
export PATH=/root/.rbenv/SHIMS:$PATH
(Before you run this command, you must be sure that PATH already exists - if it is not, it adds the current working directory to your PATH , which is almost always an error.)
source share