我在OS上安装了RVM和Ruby。我使用以下方法设置了默认版本:
rvm use 1.9.3-p194 --default
但这只适用于当前的终端会话。当我启动一个新的会话时,ruby -v会返回我的系统的Ruby。
有什么暗示吗?
UPD
macbook:~ mighter$ rvm info
ruby-1.9.3-p194:
system:
uname: "Darwin macbook.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-205
我正在尝试创造一个宝石集。首先,我做了
$ rvm gemset create rails-1.3.7
mkdir: /usr/local/rvm/gems/ruby-1.9.2-p320@rails-1.3.7: Permission denied
Gemset 'rails-1.3.7' does not exist, 'rvm gemset create rails-1.3.7' first, or append '--create'.
Can not create environment file for 'rails-1.3.7
我编辑了我的$Home .bash_profile以包含一些git别名命令。我对这件事很陌生,我不知道到底出了什么问题。
.bash_profile
alias gs='git status '
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gd='git diff'
alias go='git checkout '
alias gk='gitk --all&'
alias gx=
我没有~/.rvm文件,即使我使用以下命令升级了我的RVM版本:
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
此命令会生成以下内容。如何确保创建了.rvm文件夹?
Upgrading the RVM installation in /opt/t/rvm/
chown: rvm: illegal group name
chown: rvm: illegal group name
RVM PATH line found in
我正在尝试在一台新机器上安装RVM。我以前也这么做过,然后一切都很顺利。但现在我一直收到这些错误:
WARNING:
Could not source '/Users/anders/.rvm/scripts/base' as file does not exist.
RVM will likely not work as expected.
WARNING:
Could not source '/Users/anders/.rvm/scripts/version' as file does not exist.
R
ubuntu@ip-10-114-202-137:~$ sudo ./ghgvc.sh
./ghgvc.sh: 4: ./ghgvc.sh: rvmsudo: not found
./ghgvc.sh: 5: ./ghgvc.sh: rvm: not found
./ghgvc.sh: 6: ./ghgvc.sh: rvm: not found
./ghgvc.sh: 8: ./ghgvc.sh: source: not found
SSH back in to re-source RVM
ubuntu@ip-10-114-202-137:~$ which rvmsudo
/home/u
最后,尝试使用Capistrano在mac上运行暂存服务器。现在,我只是尝试在登录时正确地设置环境。
$bundle show rails
-bash: bundle: command not found
$ rvm use 1.9.3
Using /Users/me/.rvm/gems/ruby-1.9.3-p551
$ bundle show rails
/Users/me/.rvm/gems/ruby-1.9.3-p551/gems/rails-3.1.10
这是gem environment的输出
$ gem environment
RubyGems Environment:
-
我在一台运行rvm 1.27.0的Ubuntu 14.04 LTS机器上。
当我运行rvm list时,我收到以下警告:
Warning! PATH is not properly set up, '/home/asarluhi/.rvm/gems/ruby-2.3.1/bin' is not at first place,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
it might also help t
-bash: /etc/profile.d/rvm.sh: No such file or directory
-bash: /Users/janekambani/.bash_profile: line 1: conditional binary operator expected
-bash: /Users/janekambani/.bash_profile: line 1: syntax error near `"$HOME/.rvm/scripts/rvm"'
-bash: /Users/janekambani/.bash_profile: line 1: `[[
我在更新rvm时遇到问题。
基于,我这样做:
Tue Apr 02$ rvm -v
rvm 1.8.1 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]
Tue Apr 02$ rvm get stable
Tue Apr 02$ rvm -v
rvm 1.8.1 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]
但是看起来rvm版本应该更新了。什么是正确的命令,让它更新和更新在
我刚刚使用以下命令在我的机器上安装了rvm
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
在我的终端里找到了这个
Installation of RVM to /home/rahul/.rvm/ is complete.
当我转到/home/rahul/.rvm/时,我能够看到所有必要的文件夹,但是当我在终端中发出rvm命令时,我得到这个错误
rvm --version
No command 'rvm' found, but th
我得到了这个日志:
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as
ubuntu@13.58.220.78: rvm exit status: 127
rvm stdout: bash: /home/ubuntu/.rvm/bin/rvm: No such file or directory
rvm stderr: Nothing written
Caused by:
SSHKit::Command::Faile
键入$ curl -L https://get.rvm.io | bash -s stable --ruby
从输出看,它似乎运行成功:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 185 100 185 0 0 132 0 0:00:01 0:00:01 --:--:-- 29
我在Ubuntu12.10上的/usr/local/rvm/bin中安装了多用户版本的RVM。当我将Ruby从1.9.3升级到2.0.0时,每当我执行rvm version或类似的命令时,似乎都会弹出以下错误消息:
$ rvm version
Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-2.0.0-p247/bin' is not at first place,
usually this is caused by shell initialization files - check them f
我正在做一个新的RVM安装在我的Macbook Air完成后,我认为是一个完整的卸载从我的系统。然而,现在,当我尝试运行"rvm get update“时,我在终端中收到以下冗长的输出:
Scotts-MacBook-Air:~ scotthollingsworth$ rvm get stable
Downloading https://get.rvm.io
Downloading https://github.com/wayneeseguin/rvm/archive/stable.tar.gz
Upgrading the RVM installation in /Users/sco
描述
在运行rvm -v时,我仍然会收到下面的警告。
Warning! PATH is not properly set up, /Users/sarvarkhalimov/.rvm/gems/ruby-2.7.3/bin is not at first place.
Usually this is caused by shell initialization files. Search for PATH=... entries.
You can also re-add RVM to your profile by running: rvm get stab
我正在尝试使用capistrano 安装ruby1.9.3-p 545。一年前对我有用的东西,似乎被rvm打破了:
require "rvm/capistrano"
set :rvm_ruby_string, 'ruby-1.9.3-p327'
set :rvm_type, :user
set :rvm_install_ruby_params, '--with-opensll-dir=$HOME/.rvm/usr'
def rvm_bin
'$HOME/.rvm/bin/rvm'
end
namespace :dep
当我打开终端然后进入rails应用程序时,rvm将加载.ruby-gemset文件中的gemset,如下所示:
> cd my_application/
> rvm gemset list
输出如下所示:
gemsets for ruby-2.2.2 (found in /home/yakout/.rvm/gems/ruby-2.2.2)
(default)
=> my_gemset
global
然后我在终端中打开新选项卡,并运行rvm gemset list,输出将是:
gemsets for ruby-2.2.1 (found in /home/yakou
我刚刚安装了Ubuntu 11.10和RVM 1.12.4 (稳定):
doug@doug-OnixN53SM:~$ curl -L get.rvm.io | bash -s stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 185 100 185 0 0 223 0 -
我正在尝试通过Cygwin安装RVM,遵循。
要创建目录并克隆git存储库,我需要运行./osx_or_cygin_ AFter _off来开始安装过程。
这是我收到的错误消息:
$ ./osx_or_cygwin_kick_off
./automation/rvm/rvm_install: line 2: $'\r': command not found
./automation/rvm/rvm_install: line 3: syntax error near unexpected token `$'\r''
'/autom
以这种方式在debian服务器上安装了rvm:
root@aaa-env1-chef-demo-dal01:/home/partuck# curl -L https://get.rvm.io | bash -s stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 184 100 184 0
当我运行rvm时
$ rvm
-bash: cat -v: command not found
但是,如果我运行rvm -v
$ rvm -v
rvm 1.11.5 (master) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io]
怎么了?
$ which rvm
/Users/me/.rvm/bin/rvm