I installed rbenv, Ruby, gems and Rails as the root user, so I cannot run Ruby as a normal user.
When I try using bundle install
, it returns:
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
I tried to run it as a normal user, but rbenv, Ruby, gems and Rails are not working.
How can I make them available to normal users?
I am using Ubuntu 14.04, and followed "Groom your app’s Ruby environment with rbenv." to install.