sudo:rvm:找不到命令-在Ubuntu 12.04服务器上安装RVM多用户 [英] sudo: rvm: command not found - RVM MultiUser install on Ubuntu 12.04 server
问题描述
我正在设置服务器,它是Ubuntu 12.04
首先我安装了RVM多用户:
me@ubuntu$ \curl -L https://get.rvm.io | sudo bash -s stable
然后在安装RVM后,由于安装提示,我将自己添加到RVM组中
usermod -a -G me rvm
已安装的红宝石
rvm insall 1.9.3 --default
然后我尝试安装系统范围的gem passenger,我得到了:
me@ubuntu:~$ rvmsudo gem install passenger
sudo: gem: command not found
实际上,任何用rvmsudo
运行的命令都只说sudo : {command}: not found
我需要在整个系统范围内安装gems,因为它是生产服务器设置,安装passenger-install-nginx-module
时也需要root权限,因为它将int安装到/opt/nginx/
也许此错误会影响您.
您可以安装旧版本的rvm,而不是等待固定版本的发布:
\curl -L https://get.rvm.io | sudo bash -s -- --version 1.16.20
有关详细信息,请参见 https://rvm.io/rvm/install/.
>现在已解决此问题. rvmsudo
为我工作(Ubuntu 12.04).
I'm setting up a server, it's an Ubuntu 12.04
first I installed RVM multi-user:
me@ubuntu$ \curl -L https://get.rvm.io | sudo bash -s stable
then after RVM installed, as the installation suggests I added myself to RVM group
usermod -a -G me rvm
installed ruby
rvm insall 1.9.3 --default
then I tried to install system wide gem passenger and I get this:
me@ubuntu:~$ rvmsudo gem install passenger
sudo: gem: command not found
In fact any command run with rvmsudo
just says sudo : {command}: not found
I need gems to be installed system wide, because it's a production server setup, also installing passenger-install-nginx-module
requires root permissions as it installs int to /opt/nginx/
any thoughts?
Maybe this bug affects you.
Instead of waiting for a fixed release you might install an older version of rvm:
\curl -L https://get.rvm.io | sudo bash -s -- --version 1.16.20
See https://rvm.io/rvm/install/ for details.
EDIT: This issue is now solved. rvmsudo
is working for me (Ubuntu 12.04).
这篇关于sudo:rvm:找不到命令-在Ubuntu 12.04服务器上安装RVM多用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!