rvm

trouble installing RVM on a mac

爷,独闯天下 提交于 2019-12-05 10:49:50
I am trying to set up a local Rails environment, and I am having issues with getting RVM installed. Here is the error I get: $ bash < <( curl http://rvm.io/releases/rvm-install-head ) % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 185 100 185 0 0 136 0 0:00:01 0:00:01 --:--:-- 0 bash: line 1: html: No such file or directory bash: line 2: syntax error near unexpected token `<' 'ash: line 2: `<head><title>301 Moved Permanently</title></head> The contents of my /usr/local folder are as follows: bin man etc mysql hermes mysql-5.1.56-osx10.5

Running “rvm get stable” in my terminal doesn't do anything. How do I update RVM?

时光怂恿深爱的人放手 提交于 2019-12-05 10:42:35
When I do "rvm get stable" nothing happens. Last login: Sat Feb 11 18:22:14 on ttys000 Adams-MacBook-Pro:~ adam$ rvm -v rvm 1.8.3 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/] Adams-MacBook-Pro:~ adam$ rvm get stable notice nothing happened. It didn't update. Adams-MacBook-Pro:~ adam$ rvm -v rvm 1.8.3 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/] Adams-MacBook-Pro:~ adam$ How do I update my RVM? Phil Aquilina I believe rvm get stable is a newer command, that your version of rvm doesn't yet support. Update yours using rvm get

Can I use RVM to maintain a single version of Ruby for all users?

廉价感情. 提交于 2019-12-05 09:13:52
I love RVM. I realize that the main use case for it is letting different users switch between different versions of Ruby. But let's say I'm deploying a Rails app to a server and I just want a single version of Ruby running. In particular, I want 1.9.2, which is a breeze to install with RVM but a pain without it. Is there a way that I can say "I want this to be the canonical Ruby installation for all users" (along with all of its gems) without having to create a bunch of symlinks by hand and change them every time I update to a newer Ruby release? Install RVM as root and do a sudo rvm use 1.9.2

RVM, Ruby 1.9.2, Rails 2.3.8, Passenger and “invalid byte sequence in US-ASCII”

梦想与她 提交于 2019-12-05 09:11:44
I just started the upgrade process from Ruby 1.8.7 to Ruby 1.9.2 (using RVM). I have all my applications running using 'script/server' (or 'rails server') with 1.9.2, however, only Rails 3.0.0 RC applications work with Passenger. The error message given by Rails 2.3.8 applications is: invalid byte sequence in US-ASCII I'm guessing that this is a Passenger issue. I installed Passenger 2.2.15 using the RVM guide found here . Any ideas how to fix this bug? Thanks. I've updated to include a stack trace: /Users/kevin/.rvm/gems/ruby-1.9.2-p0/gems/actionpack-2.3.8/lib/action_view/template_handlers

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)

≯℡__Kan透↙ 提交于 2019-12-05 08:53:43
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? 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 use 1.9.2 Without actually looking at your system, I can't say for sure what is happening, but it would appear

Why do I need to use “rvm use default” after opening new terminal window?

落爺英雄遲暮 提交于 2019-12-05 07:47:31
On opening a new terminal window (Mac OSX 10.7.2) and entering rails , I get the always fun 'rails is not currently installed..." message. But I enter rvm use default 1.9.2 and all is good with the world. Where did I go wrong? nobody Zabba is right in the comments when he says the correct command to use is rvm use 1.9.2 --default . RVM considers default to be a Ruby, equivalent to the Ruby set to the default. If I type rvm use default into my terminal, I get this output: $ rvm use default Using /Users/tom/.rvm/gems/ruby-1.9.3-p0 However, there is the ability to list multiple Rubies in your

How to tell Bundler to use gems installed systemwide (production deployment)?

核能气质少年 提交于 2019-12-05 07:13:28
问题 When deploying a Rails app with Capistrano, I want Bundler to install gems to shared/bundles dir ONLY IF it can't find gems installed systemwide already. How do I do it? For example, if I have a pg gem v 0.14 already installed on the system, I want Bundler to use it and not build and install a new one into shared/bundles dir of my application. I'm using Ubuntu Server and RVM is installed for multiple users. 回答1: Bundler allows using shared (rubygems) and vendored (bundler) gems, by default

Why doesn't RVM work in a bash script like it works in an interactive shell?

孤人 提交于 2019-12-05 07:12:30
If you type the command in console, it works. But if you put them in a bash script, problem comes. #!/bin/bash rvm use 1.8.7 rvm list # This shows the ruby used in parent shell's rvm. Wayne E. Seguin In the script you are most likely not loading rvm as a function. http://rvm.io/rvm/basics/ Brett The shell functions installed by RVM aren't necessarily exported to subshells. In your shell script, you can re-initialize RVM with something like the same command line that's in your .bash_profile or .bashrc: [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" After you do that, the

Missing Required Packages? - Including libyaml

孤街浪徒 提交于 2019-12-05 07:02:42
问题 I feel like my computer has some deep seated issues and is 100% against me installing rails/ruby/rvm and the rest on it. Or I'm just incompetent :) I have installed rvm and ruby without issues. Here is my current setup (Log from Terminal): Mac-mini:rubygems-1.8.25 Riley$ rvm -v rvm 1.18.15 (master) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/] Mac-mini:rubygems-1.8.25 Riley$ ruby -v ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.2

gcc not working - Xcode 3.2.6 - Snow Leopard

夙愿已清 提交于 2019-12-05 07:01:56
I'm a bit of a novice at messing around with my environment and I seem to have rather broken it. Many thanks in advance for any assistance you can offer. The main symptom is that when trying to run rvm install 1.9.3 I get the following trace: Installing Ruby from source to: /Users/duncanstuart/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)... ruby-1.9.3-p0 - #fetching ruby-1.9.3-p0 - #extracted to /Users/duncanstuart/.rvm/src/ruby-1.9.3-p0 (already extracted) Fetching yaml-0.1.4.tar.gz to /Users/duncanstuart/.rvm/archives Extracting yaml-0.1.4.tar.gz to /Users