我以root用户的身份安装了rbenv、Ruby、gems和Rails,所以我不能以普通用户的身份运行Ruby。当我尝试使用bundle install时,它返回: Don't run Bundler as root.for all non-root
users on this machine.我试着以普通用户的身份运
我在生产服务器上的包安装有问题。我在DigitalOcean运行Rails和Ubuntu14.02有一个新的液滴。如果我作为root运行:我收到以下消息,我的应用程序中断,开始从Nginx获得"Bad Gateway“错误:
Don't run Bundler as root.Bundler can ask for sudo if it is needed, and installing your bundle as root will
qichunren@zhaobak:~> gem install hpricot You don't have write permissions into the /opt/ruby-enterprise-1.8.7/lib/ruby/gems/1.8 directory.我想知道为什么gem</e