I moved to Rbenv from RVM on a Ubuntu server.
When I use RVM, there is no problem using the package. After switching to rbenv, I got a "command not found" error in the Jenkins runtime shell.
I blew and deleted RVM and deleted all RVM related strings from ~ / .bashrc '. I still get this error after using:
rvm implode
rm ~/.rvm -rf
rm ~/.rvmrc
gem install bundler
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
. ~/.bashrc
rbenv versions
jenkins@testserver:~/jobs/myjob/workspace$ rbenv versions
* 1.9.3-p374 (set by RBENV_VERSION environment variable)
source
share