Tag: rvm

RVM默认值为2.1.1,但最初加载2.1.2

当我运行rvm list我得到以下内容: rvmruby ruby-1.9.2-p318 [x86_64] ruby-1.9.3-head [x86_64] ruby-1.9.3-p125 [x86_64] ruby-1.9.3-p484 [x86_64] ruby-2.0.0-p353 [x86_64] = * ruby​​-2.1.1 [x86_64] 这会让我觉得2.1.1是我的默认ruby版本。 但是,当我打开一个新的终端窗口并运行ruby -v我得到了 ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0] 我的.bash_profile除了设置$ PATH和其他一些变量之外什么都不做,所以我无法理解为什么这样设置。 原因是这个问题是我有一个Rakefile加载我的自动化框架,我宁愿不指定设置ruby版本。

将RVM安装到当前用户HOME目录中

从网站引用: 如果安装脚本作为标准的非root用户运行,则RVM将安装到当前用户的主目录中。 好: demas@demas:/www/sites/in_use/dev/public_html$ su demas Password: demas@demas:/www/sites/in_use/dev/public_html$ \curl -L https://get.rvm.io | bash -s % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 184 100 184 0 0 174 0 0:00:01 0:00:01 –:–:– 229 100 13641 100 13641 0 0 8774 0 0:00:01 0:00:01 –:–:– […]

耙资产:预编译找不到ruby

我正在建立一个Ruby on Rails生产环境。 我正在使用RVM的多用户安装。 运行rake资产时:预编译我收到以下错误。 其他rake任务似乎工作正常。 ruby@myserver:/sites/rails/necura_staging/shared/cached-copy$ bundle exec rake assets:precompile –trace ** Invoke assets:precompile (first_time) ** Execute assets:precompile /usr/local/rvm/rubies/ruby-1.9.3-p448/bin/ruby ruby /usr/local/rvm/gems/ruby-1.9.3-p448@global/bin/rake assets:precompile –trace assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets –trace /usr/local/rvm/rubies/ruby-1.9.3-p448/bin/ruby: No such file or directory — ruby /usr/local/rvm/gems/ruby-1.9.3-p448@global/bin/rake assets:precompile –trace (LoadError) rake aborted! Command failed with status (1): [/usr/local/rvm/rubies/ruby-1.9.3-p448/bin/…] /usr/local/rvm/gems/ruby-1.9.3-p448@global/gems/rake-10.1.0/lib/rake/file_utils.rb:55:in `block in create_shell_runner’ /usr/local/rvm/gems/ruby-1.9.3-p448@global/gems/rake-10.1.0/lib/rake/file_utils.rb:45:in `call’ /usr/local/rvm/gems/ruby-1.9.3-p448@global/gems/rake-10.1.0/lib/rake/file_utils.rb:45:in […]

使用Clang安装Ruby 1.9.3故障

我试图在Mac OS X Lion上安装Ruby 1.9.3,方法与我在此处发现的相同: 基本上它是: rvm install 1.9.3 –with-gcc=clang –with-readline-dir=$rvm_path/usr 但是,这次Clang在–with-readline-dir选项上抛出错误: Larson:~ andrewjl$ rvm install 1.9.3 –with-gcc=clang –with-readline-dir=$rvm_path/usr clang: error: unsupported option ‘–with-readline’ clang: error: unsupported option ‘–with-opt-dir=/Users/andrewjl/.rvm/usr’ 这是Clang的问题吗? 有谁知道怎么解决这个问题? 编辑 在尝试Shigeya的答案后,我得到了这个错误: Larson:~ andrewjl$ rvm install 1.9.3-p125 –patch xcode-debugopt-fix-r34840.diff –with-readline-dir=$rvm_path/usr –with-openssl-dir=$rvm_path/usr –with-tcl-lib=/usr –with-tk-lib=/usr Installing Ruby from source to: /Users/andrewjl/.rvm/rubies/ruby-1.9.3-p125, this may take a while […]

我无法加载Ruby Gems

每当我尝试加载ruby gem时,我都会收到此错误 /home/hilarl/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require’: cannot load such file — twit ter (LoadError) from /home/hilarl/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require’ from sample.rb:2:in `’ 你能帮忙吗?

打开终端时正确的Ruby版本

每次我打开一个终端,我的Ruby版本都是错误的。 我不得不手动执行以下命令: source /usr/local/rvm/scripts/rvm 我读过RVM不会修改.bashrc或.bash_profile但我注意到我的.bashrc最后有: PATH=$PATH:$HOME/.rvm/bin 不仅我自己没有插入,而且rvm的路径是错误的! 我改变了: PATH=$PATH:/usr/local/rvm/bin 我重新打开了一个终端,但Ruby版本总是错的!

rvm安装1.8.7错误

我正在尝试安装ruby 1.8.7 Searching for binary rubies, this might take some time. No binary rubies available for: ubuntu/12.04/x86_64/ruby-1.8.7-p371. Continuing with compilation. Please read ‘rvm mount’ to get more information on binary rubies. Installing Ruby from source to: ~/.rvm/rubies/ruby-1.8.7-p371, this may take a while depending on your cpu(s)… ruby-1.8.7-p371 – #downloading ruby-1.8.7-p371, this may take a while […]

使用rvm安装ruby 1.9.3时出错

我正在尝试使用rvm安装ruby。 我在下面的命令中得到以下错误 – rvm install 1.9.3 提取rubygems-latest-1.8 … 错误:运行’gunzip </usr/share/ruby-rvm/archives/rubygems-latest-1.8.tgz |时出错 tar xf – -C / usr / share / ruby​​-rvm / src',请阅读/usr/share/ruby-rvm/log/ruby-1.9.3-p194/rubygems.extract.log 为/usr/share/ruby-rvm/rubies/ruby-1.9.3-p194/bin/ruby安装rubygems 错误:运行错误’GEM_PATH =“/ usr / share / ruby​​-rvm / gems / ruby​​-1.9.3-p194:/usr/share/ruby-rvm/gems/ruby-1.9.3-p194@global:/ usr /share/ruby-rvm/gems/ruby-1.9.3-p194:/usr/share/ruby-rvm/gems/ruby-1.9.3-p194@global“GEM_HOME =”/ usr / share / ruby​​-rvm / gems / ruby​​-1.9.3-p194“”/ usr / share / ruby​​-rvm / rubies / […]

无法运行rake或rails命令(如rails c) – libcrypto错误

尝试运行任何rake,rails或bundle命令时,出现以下错误: /home/username/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require’: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory – /home/username/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-linux/digest/sha1.so 我试过rvm pkg install openssl,rvm remove 1.9.3,rvm重新安装1.9.3,重新安装bundler和所有gem。 我在另一个论坛上看到我可能要卸载rvm,ruby和rails并从头开始。 呃 – 真的吗? 提前致谢。

长期安装rails-4.0.2的ri文档

我有两台带Ubuntu和Debian的机器。 我在每台机器上安装了RVM,并安装了最新的稳定ruby。 但是,当我正在尝试使用gem install rails gem开始安装所有gem并停止“为rails-4.0.2安装ri文档”。 我做错了什么? 谢谢