rvm

Cannot change RVM gemset from shell script via `rvm gemset use`

五迷三道 提交于 2019-12-20 09:59:47
问题 (See update at bottom) I feel like I'm missing something terribly obvious here, but I can't change gemsets from within a shell script. This minimal script demonstrates: #!/usr/bin/env bash rvm gemset use "testing" I even tried the instructions from the Scripting RVM page (although it didn't seem necessary): #!/usr/bin/env bash # Load RVM into a shell session *as a function* if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then # First try to load from a user install source "$HOME/.rvm/scripts/rvm" elif

How do I switch to older versions of the ruby/rails environment?

纵然是瞬间 提交于 2019-12-20 09:47:36
问题 I'm trying to keep along with the Tekpub Build your own blog on rails screencast. I'm still very much a ruby novice and the problem is that I have Rails 3 installed while Rob uses an older version (Of the top of my head: version 2.3.2). I know how to get that version of rails with gem install rails --version=2.3.2 but when I type rails new the version of the application is rails 3. How do I make this particular app work with the older version? I know this has something to do with rvm but I

“RVM is not a function” error

不羁的心 提交于 2019-12-20 08:35:43
问题 RVM is installed on my machine (running Mac OSX 10.6.8), correctly and it runs fine. The odd thing is that to run it, I have to use source ~/.rvm/scripts/rvm for every new session. I tried making a symlink from it to /opt/local/bin/rvm , but when it runs it does nothing. I also tried creating a symlink from ~/.rvm/bin/rvm to /opt/local/bin/rvm , and when I run rvm in the Terminal it displays the help page, as expected. But when I try rvm use some_ruby_version it always displays "RVM is not a

RVM Warning! PATH is not properly set up

我只是一个虾纸丫 提交于 2019-12-20 08:27:42
问题 I just installed rvm on my mac, but I receive this warning on global commands Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-1.9.3-p194/bin' is not at first place, usually this is caused by shell initialization files - check them for 'PATH=...' entries, it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles', to fix temporarily in this shell session run: 'rvm use ruby-1.9.3-p194'. My $PATHS confirms the warning: $echo :$PATH: :/usr/local/rvm/bin:

How to resolve “gpg: command not found” error during RVM installation?

余生颓废 提交于 2019-12-20 08:22:59
问题 I have a new mac pro (OS X 10.9.5) that I get to set up from scratch. I want to install RVM and the first thing it says to do is: Install mpapis public key (might need gpg2 and or sudo ) gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 When I tried I got: gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 zsh: command not found: gpg I've tried to find a good guide on how to overcome this that also looks trustworthy but I've had no luck. Can someone explain what gpg is, why I

RVM equivalent for PHP?

柔情痞子 提交于 2019-12-20 08:21:39
问题 I can't seem to find a way to switch versions of PHP quickly. Is there something equivalent to ruby version manager for php? I need to switch between 5.3 and 5.2 on OS X. 回答1: For PHP alternatives to RVM and rbenv, you have phpbrew, phpenv and php-version. Please be aware that I am the author of php-version so of course I prefer it as I wrote it to scratch my own itch (I wanted something minimal with command completion); however, phpenv is quite good as well. You would do well to use either.

Every time I close terminal rails defaults back to 2.3.5 from 3.0.3?

百般思念 提交于 2019-12-20 06:15:05
问题 I'm going through the rails by example tutorial. Its seems that every time I close terminal rails defaults back to 2.3.5 & I have to go through the process of installing 3.0.3 every time I open the terminal? I installed rails using: $ [sudo] gem install rails --version 3.0.3 Has anyone experienced a similar issue? I've tried googling around and searching stack to no avail. 回答1: Try uninstalling the rails gem: gem uninstall rails If you are prompted to select a version, select 2.3.5 and leave

ERROR: Missing RVM environment file After Doing rvm upgrade command - Passenger 4.0.23

∥☆過路亽.° 提交于 2019-12-20 06:08:11
问题 I was running ruby 2.0.0-p247 on my Mac Mini Server (Mavericks 10.9.1). I read that there was a security vulnerability so I decided to upgrade to use the latest Ruby patch 2.0.0-p353. I did the following commands: gem update --system (RubyGems 2.1.11) rvm get stable (RVM 1.25.0) rvm upgrade 2.0.0-p247 2.0.0-p353 (which should have moved my gemsets) There is nothing in my system that I can find that references 2.0.0-p247 in rvm which is what I expected. When I go to ~/myuser/.rvm/environments

How to tell RVM (Ruby Version Manager) to remember my set default when I open a new terminal window

浪尽此生 提交于 2019-12-20 05:45:15
问题 I used RVM to install Ruby 2.5.1, and set that to the default. However when I open a new terminal window, and type which ruby I get the path to my machine's Ruby not the one I set. For example, when I set the default and run which ruby : => /home/COM-COM/.rvm/rubies/ruby-2.5.1/bin/ruby When I open a new terminal window and run which ruby : => /usr/bin/ruby I thought when I ran rvm --default use 2.5.1 RVM would remember the set default until I changed it. Does anyone know what's going on here,

Errors installing RVM

送分小仙女□ 提交于 2019-12-20 04:37:35
问题 I'm trying to install rvm on redhat 5.5 and I'm getting this error: [mc@owl-ci ~]$ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 979 100 979 0 0 8168 0 --:--:-- --:--:-- --:--:-- 318k Cloning into rvm... remote: Counting objects: 18463, done. remote: Compressing objects: 100% (4985/4985), done. remote: Total 18463 (delta 12517), reused 17903 (delta 12002)