What is the effect of installing applications as root versus sudo, specifically when ruby is involved?
The reason I ask is I have been trying to install gitlab on Centos 6.5 which uses ruby per https://github.com/gitlabhq/gitlab-r...install/centos
. The instructions often use sudo in the command.
When doing the install, I was logged on as root. All the files in the newly created git user have user as root. When attempting to do some commands, I would often get "sudo: bundle: command not found". Since I was root, I could perform the commands by eliminating the sudo part, but then had other problems.
When installing some applications such as gitlab, should I be logged on as a normal user, and use sudo? How is PATH involved with this? Any other considerations I need to be aware of?