rvm

Create a RVM gemset in a shared host environment

点点圈 提交于 2020-01-14 05:49:24
问题 Anyone know if there is a configuration variable to tell rvm to create the gemset in my home directory (no root access)? [p3r66567@cp40 (ruby-1.8.6) ~]$ type rvm | head -1 rvm is a function [p3r66567@cp40 (ruby-1.8.6) ~]$ which rvm /usr/local/rvm/bin/rvm [p3r66567@cp40 (ruby-1.8.6) ~]$ rvm gemset create testgemset mkdir: cannot create directory `/usr/local/rvm/gems/ruby-1.8.6-p399@testgemset': Permission denied info: Gemset 'testgemset' created. 回答1: Add this line: export rvm_gems_path="$HOME

Embedding JRuby in Java code using rvm jruby install

我只是一个虾纸丫 提交于 2020-01-14 03:52:07
问题 I'm trying to embed and evaluate ruby code from within a Java application. Instead of putting jruby-complete.jar in my classpath, I need to be able to use jruby environment that's installed with rvm. I can execute basic kernel code, but I'm having issues requiring standard libraries (fileutils, tmpdir, etc.). I created the test file below that uses a JRuby installed via RVM, anyone should be able to compile+run it if you have a local rvm + jruby installation (change JRUBY_VERSION to a version

Change version of rails

故事扮演 提交于 2020-01-13 16:24:06
问题 I accidentally changed my rails version to 4.0.0. I've tried gem uninstall rails --version=4.0.0.rc1 and install version 3.2.13 but when rails -v it's still version 4.0.0. I then tried gem uninstall rails, which gives me "Successfully uninstalled rails-3.2.13". Thought this was easy to do, but I can't find a simple solution. 回答1: Try this: rvm use <ruby version> You can also check your installed ruby versions using rvm list and then switch over. Then do: rvm gemset create rails3.2.13 rvm

i installed ruby 1.9.2 with RVM, but when i type “ruby -v” is telling me the ruby v i have is 1.8.7 (mac)

北战南征 提交于 2020-01-13 10:22:32
问题 when i write in the treminal "rvm list" i get this: rvm rubies ruby-1.9.1-p378 [ x86_64 ] ruby-1.9.2-p136 [ x86_64 ] but when i type "ruby -v" i get this: ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] what shoud i do? 回答1: Have you tried rvm use 1.9.2 ? Installing rubies does not make them the executable version of ruby. RVM will only make ruby the 1.9.2 version if you tell it to, with rvm use 1.9.2 or rvm use 1.9.1 If you want rvm to use 1.9.2 by default, use rvm --default

i installed ruby 1.9.2 with RVM, but when i type “ruby -v” is telling me the ruby v i have is 1.8.7 (mac)

筅森魡賤 提交于 2020-01-13 10:22:12
问题 when i write in the treminal "rvm list" i get this: rvm rubies ruby-1.9.1-p378 [ x86_64 ] ruby-1.9.2-p136 [ x86_64 ] but when i type "ruby -v" i get this: ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] what shoud i do? 回答1: Have you tried rvm use 1.9.2 ? Installing rubies does not make them the executable version of ruby. RVM will only make ruby the 1.9.2 version if you tell it to, with rvm use 1.9.2 or rvm use 1.9.1 If you want rvm to use 1.9.2 by default, use rvm --default

Using RVM in eshell of Emacs

早过忘川 提交于 2020-01-12 07:38:07
问题 Using RVM in eshell of emacs, I am not able to set the ruby version. Why? Environment : Ubuntu 9.10 /media/Work/rubyworkspace $ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux] /media/Work/rubyworkspace $ rvm use 1.9.2 Using /usr/local/rvm/gems/ruby-1.9.2-p180 /media/Work/rubyworkspace $ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux] 回答1: As far as I can tell, RVM relies on the shell being a "regular" UNIX shell. Selection of the correct interpreter etc. is done using

rvm install 1.9.2 fails when running autoconf?

落爺英雄遲暮 提交于 2020-01-12 04:37:14
问题 when I run rvm install 1.9.2 I get an error trying to run autoconf. This is the stacktrace: kenmare:ruby-1.9.2-p0 lee$ rvm install 1.9.2-p0 /Users/lee/.rvm/rubies/ruby-1.9.2-p0, this may take a while depending on your cpu(s)... ruby-1.9.2-p0 - #fetching ruby-1.9.2-p0 - #extracted to /Users/lee/.rvm/src/ruby-1.9.2-p0 (already extracted) Running autoconf Error running 'autoconf', please check /Users/lee/.rvm/log/ruby-1.9.2-p0/autoconf.error.log Skipping configure step, 'configure' does not

Trouble downgrading Ruby on OS X Mavericks

别等时光非礼了梦想. 提交于 2020-01-12 03:43:29
问题 OS X 10.9 comes with ruby 2.0.0p195 but I need to install Ruby 1.8.7. I keep running into errors. I have Xcode5-DP install and I believe Command Line Tools is installed too. In the terminal: sudo rvm install 1.8.7 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10/x86_64/ruby-1.8.7-p371. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Installing requirements for osx, might require sudo password.

Zshell starts up with exit status of 1 after uninstalling RVM

拈花ヽ惹草 提交于 2020-01-11 12:51:28
问题 I've just uninstalled rvm—I ran rvm implode and removed rvm from $PATH in my .zshrc , as specified in this Stack Overflow post. Since uninstalling, I've noticed that my shell startup has an exit status of 1 . I've checked this by using echo $? after loading the shell—I always get 1 back. I briefly reinstalled rvm to confirm that's what caused the change, and sure enough, after reinstalling, my exit status was back to zero on startup. I've tried commenting out my zshell so that there's no

Zshell starts up with exit status of 1 after uninstalling RVM

你。 提交于 2020-01-11 12:51:12
问题 I've just uninstalled rvm—I ran rvm implode and removed rvm from $PATH in my .zshrc , as specified in this Stack Overflow post. Since uninstalling, I've noticed that my shell startup has an exit status of 1 . I've checked this by using echo $? after loading the shell—I always get 1 back. I briefly reinstalled rvm to confirm that's what caused the change, and sure enough, after reinstalling, my exit status was back to zero on startup. I've tried commenting out my zshell so that there's no