rvm

How to set default Ruby version with RVM?

寵の児 提交于 2019-11-26 19:23:32
问题 Ubuntu 11. I do the following: $ rvm --default use 1.9.2 and I get: Using /home/md/.rvm/gems/ruby-1.9.2-p180 so that is good. but when I now open a new terminal window I still get: $ ruby -v ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux] 回答1: If you put the RVM source line in your bashrc (in order to ensure that non-interactive shells have access to RVM), you will need to source .bashrc from your .bash_profile with the following as the last lines in your .bash_profile if [ -f "$HOME/

Curl Certificate Error when Using RVM to install Ruby 1.9.2

会有一股神秘感。 提交于 2019-11-26 19:22:29
RVM is running into a certificate error when trying to download Ruby 1.9.2. It looks like curl is having a certificate issue but I am not sure how to bypass it. I have included the exact error info below. $ rvm install 1.9.2 Installing Ruby from source to: /Users/willdennis/.rvm/rubies/ruby-1.9.2-p180, this may take a while depending on your cpu(s)... ruby-1.9.2-p180 - #fetching ERROR: Error running 'bunzip2 '/Users/willdennis/.rvm/archives/ruby-1.9.2-p180.tar.bz2'', please read /Users/willdennis/.rvm/log/ruby-1.9.2-p180/extract.log ruby-1.9.2-p180 - #extracting ruby-1.9.2-p180 to /Users

Ruby RVM apt-get update error

∥☆過路亽.° 提交于 2019-11-26 19:11:05
问题 I get following error when trying to install anything with RVM: Searching for binary rubies, this might take some time. Found remote file https://rvm.io/binaries/ubuntu/13.04/x86_64/ruby-2.1.1.tar.bz2 Checking requirements for ubuntu. Installing requirements for ubuntu. Updating system..kshitiz password required for 'apt-get --quiet --yes update': ............................ Error running 'requirements_debian_update_system ruby-2.1.1', showing last 15 lines of /home/kshitiz/.rvm/log

Installing in Homebrew errors

十年热恋 提交于 2019-11-26 18:45:26
问题 Attempting to install rvm and ruby 1.9.2 I already installed homebrew and git, but couldn't get complete updates because I kept getting permission errors. Re-installed Snow Leopard and repaired permissions. Now this happens... $ brew install wget Error: Cannot write to /usr/local/Cellar 回答1: sudo chown -R $USER /usr/local You'll have to give yourself ownership of /usr/local/ using that line right there. I had to do this myself after using the ruby one-liner at the top of the official docs to

Rails keeps telling me that it's not currently installed

假装没事ソ 提交于 2019-11-26 18:19:46
I use rvm to manage different rubies and their gemsets. My shell is zsh with oh-my-zsh configured with basic settings. Enabled oh-my-zsh plugins are ruby, rails, osx, and git. Here's the command I used to install ruby-1.8.7 and rails-3.0.7. rvm install 1.8.7 rvm use 1.8.7 gem install rails -v=3.0.7 and then I typed rails and got: Rails is not currently installed on this system. To get the latest version, simply type: $ sudo gem install rails You can then rerun your "rails" command. I've tried more thorough installs also, Like reinstall rubygems after switching to ruby-1.8.7, or create a

Getting “Warning! PATH is not properly set up” when doing rvm use 2.0.0 --default

佐手、 提交于 2019-11-26 17:54:41
问题 Above doesn't work first time, works 2nd time. Try to set ruby version to 2.0.0 for any new shell windows. Doing $ rvm use 2.0.0 --default gives Warning! PATH is not properly set up, '/home/durrantm/.rvm/gems/ruby-1.9.3-p125/ 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 --au to-dotfiles', to fix temporarily in this shell session run: 'rvm use ruby-1.9.3

Rails Segmentation Fault on Mac OSX with RVM

谁说胖子不能爱 提交于 2019-11-26 16:39:22
问题 When creating a new rails app, I get the following error: /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:799: [BUG] Segmentation fault ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin10.8.0] All the rails files appear to be generated, but the error above is still there. Any thoughts or suggestions would be greatly appreciated. 回答1: It looks to me like a problem with LLVM GCC, try with GNU GCC. The easiest way to do that is to install osx-gcc-installer and reinstall

rails server fails to start with mysql2 using rvm & ruby 1.9.2-p0 on OSX 10.6.5

折月煮酒 提交于 2019-11-26 16:01:54
I'm getting the following error when I start rails server: $ rails server /Users/ssmith/.rvm/gems/ruby-1.9.2-p0/gems/mysql2-0.2.6/lib/mysql2.rb:7:in `require': dlopen(/Users/ssmith/.rvm/gems/ruby-1.9.2-p0/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.16.dylib (LoadError) Referenced from: /Users/ssmith/.rvm/gems/ruby-1.9.2-p0/gems/mysql2- 0.2.6/lib/mysql2/mysql2.bundle Reason: image not found - /Users/ssmith/.rvm/gems/ruby-1.9.2-p0/gems/mysql2- 0.2.6/lib/mysql2/mysql2.bundle I've installed mysql2 with the following command after the rvm use ruby-1.9.2-p0

Library not loaded: /opt/local/lib/libssl.1.0.0.dylib (LoadError)

北慕城南 提交于 2019-11-26 15:57:38
问题 I just discovered I can no longer gem push … any more and some digging led me to a need to update my RVM SSL certs. I ran rvm osx-ssl-certs status all but that gave me: /Users/davesag/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': dlopen(/Users/davesag/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/2.0.0/x86_64-darwin12.4.0/openssl.bundle, 9): Library not loaded: /opt/local/lib/libssl.1.0.0.dylib (LoadError) Referenced from: /Users/davesag/.rvm

How to use “RVM --default” on MacOSX

只谈情不闲聊 提交于 2019-11-26 15:45:54
问题 After using Ruby and Rails for quite some time now, I wanted to try RVM. Everything works fine, except for one thing: In a freshly opened Terminal ruby points to the system's ruby, despite the fact, that I used the rvm --default command. user@terra ~ $ ruby -v ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10] user@terra ~ $ which ruby /opt/local/bin/ruby user@terra ~ $ rvm list ruby-1.8.7-p334 [ ] => ruby-1.9.2-p180 [ ] Everything is fine after I call rvm reload user@terra ~ $ rvm reload