rvm

RVM doesn't switch Rubies

血红的双手。 提交于 2019-11-29 23:07:09
I'm running Ruby 1.9.1p243 on CentOS, and I decided to install rvm to handle upgrading to 1.9.2 or downgrading to 1.8.7 (whichever turns out to work better for rails3). I followed the instructions here: http://rvm.beginrescueend.com/rvm/install/ and everything installed correctly. I was able to compile and install Ruby 1.8.7, 1.9.1, and 1.9.2. However, if I try to actually switch to one of the rvm installed Rubies, with rvm use 1.8.7, for example, nothing works. My system still uses the Ruby I have installed in /usr/local/bin/ruby. An example of the output I get: $ rvm use 1.8.7 $ ruby -v ruby

What are the differences between rbenv, rvm, and chruby? [closed]

倖福魔咒の 提交于 2019-11-29 22:46:54
I'm new-ish to Ruby and Rails. I am looking for a purely objective list of features and advantages/disadvantages of each. In an effort to keep preference out of this, please refrain from answering unless you have used all 3 systems. There's three main options available today: rvm which is the most established, but also the most intrusive in terms of shell modifications. rbenv which is lower impact, and still works as well. chruby which purports to be even lighter than rbenv . Personally I prefer rbenv because it works well with Homebrew and doesn't mangle the shell environment as much, but

How to manage multiple gemsets and ruby versions with RVM?

白昼怎懂夜的黑 提交于 2019-11-29 22:40:37
I am really confused by the explanations given in RVM website. The relation between different ruby interpretors and gemsets are not clear to me. According to me, it is like this - My Account in my Mac have one rvm That rvm installs and manages set of different versions of ruby interpretors. each ruby version has set of gemsets. Am i getting things clear... Any more amount of explanations are welcome. I am in a position to work on (Ruby 1.8.7 + rails 2.3.8 and its dependencies) and (Ruby 1.9.2 and Rails 3.0 and its dependencies)... If any one is well versed with handling many ruby versions and

RVM gem permissions error

旧时模样 提交于 2019-11-29 21:04:08
问题 I started trying to set up a local rails installation for development. After I installed in using apt-get , however, I learned about RVM, so I removed the earlier one, and reinstalled from RVM. It looks like I have residual problems, though. Specifically, when I try to install rails I get... $ gem install rails ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions into the /var/lib/gems/1.9.1 directory. This already looks like a problem, because I don't

Why should I care about RVM's Gemset feature when I use Bundler?

倖福魔咒の 提交于 2019-11-29 21:00:54
I just don't get it. I thought, Bundler was developed to resolve version conflicts between gems. So that I just have to require "bundler/setup" and everything is fine, knowing that Bundler will load the correct versions of all my gems and their dependencies. Now, RVM is great for managing multiple Rubies, I know, but why should I care about the Gemset feature? Do I miss something here? Can it make my development even easier? Maybe, some of you can give me some hints on the perfect RVM + Bundler workflow for both, development and production. I also don't know when RVM starts switching to

RVM system-wide install script url broken — what is replacement?

自古美人都是妖i 提交于 2019-11-29 20:29:27
问题 My RVM system-wide installation scripts are broken, both in the form of Linode StackScripts and Chef-solo Recipes. Per the instructions on the RVM website, my scripts execute the following commands as root to install RVM on a system-wide basis: echo "Installing RVM system-wide" >> $logfile bash < <( curl -L http://bit.ly/rvm-install-system-wide ) cat >> /etc/profile <<'EOF' # Load RVM if it is installed, # first try to load user install # then try to load root install, if user install is not

Change rails version used by rvm

亡梦爱人 提交于 2019-11-29 20:19:33
Here are my local gems : $ gem list *** LOCAL GEMS *** actionmailer (4.0.0, 3.2.14) actionpack (4.0.0, 3.2.14) activemodel (4.0.0, 3.2.14) activerecord (4.0.0, 3.2.14) activerecord-deprecated_finders (1.0.3) activeresource (3.2.14) activesupport (4.0.0, 3.2.14) arel (4.0.0, 3.0.2) atomic (1.1.13) builder (3.1.4, 3.0.4) bundler (1.3.5) bundler-unload (1.0.1) erubis (2.7.0) hike (1.2.3) i18n (0.6.5) journey (1.0.4) json (1.8.0) mail (2.5.4) mime-types (1.24) minitest (4.7.5) multi_json (1.7.9) polyglot (0.3.3) rack (1.5.2, 1.4.5) rack-cache (1.2) rack-ssl (1.3.3) rack-test (0.6.2) rails (3.2.14)

How do you install Rails 4.0 in an RVM gemset?

心已入冬 提交于 2019-11-29 20:11:04
I am trying to install Rails into a new rvm gemset. I tried the following: rvm gemset create rails-4.0 output: gemset created rails-4.0 Next I did: rvm 2.0.0@rails-4.0 rvm gemset list: gemsets for ruby-2.0.0-p0 (found in /Users/me/.rvm/gems/ruby-2.0.0-p0) (default) global => rails-4.0 rails -v Rails is not currently installed on this system. To get the latest version, simply type: $ sudo gem install rails Do the rvm commands I listed not install rails 4.0? This command: rvm gemset create rails-4.0 is creating basically a directory structure to hold the gems. You could have just as easily

“rails generate” not working

亡梦爱人 提交于 2019-11-29 19:59:29
When using ruby 2.1.0 (or 2.1.1) and I type rails g nothing happens. It simply hangs. But when I change to 1.9.3, using rvm use 1.9.3 it works as expected. How can I debug this? What might be causing this command to hang, only on ruby > 2.0.0? I have tried reinstalling both rails and ruby! Have you tried to run: spring stop rails generate hangs may because spring is already running. see https://github.com/rails/spring/issues/265 I tried all of this and it didn't work for me. Turns out that I had a bad rails file in my /bin folder. This is what I had: #!/usr/bin/env ruby begin load File.expand

Rails on Passenger not recognizing RVM

狂风中的少年 提交于 2019-11-29 19:55:32
I have shifted to ree using rvm by: rvm use ree@mygemset and installed kaminari gem through Gemfile and bundle install. But Phusion passenger seems to still look for the gem in system default directory. It says: Error message: Could not find kaminari-0.10.4 in any of the sources (Bundler::GemNotFound) What do I missing? Rails need any specific configuration to recognize the current ruby version and gemset I am using?? Michelle Tilley You need to instruct Passenger to load RVM and then setup the environment for your gemset. The easiest way to go about this involves three steps: Create a .rvmrc