Skip to content

Instantly share code, notes, and snippets.

@mingderwang
Created April 14, 2013 02:00
Show Gist options
  • Save mingderwang/5381043 to your computer and use it in GitHub Desktop.
Save mingderwang/5381043 to your computer and use it in GitHub Desktop.
Your Ruby version is 1.8.7, but your Gemfile specified 1.9.3
ming$ script/tests
Your Ruby version is 1.8.7, but your Gemfile specified 1.9.3
Wangs-MacBook-Air:boxen-web ming$ rvm use 1.9.3
-bash: rvm: command not found
Wangs-MacBook-Air:boxen-web ming$ ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
Wangs-MacBook-Air:boxen-web ming$ \curl -#L https://get.rvm.io | bash -s stable --autolibs=3 --ruby
######################################################################## 100.0%
Please read and follow further instructions.
Press ENTER to continue.
Downloading RVM from wayneeseguin branch stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 124 100 124 0 0 101 0 0:00:01 0:00:01 --:--:-- 134
100 3263k 100 3263k 0 0 150k 0 0:00:21 0:00:21 --:--:-- 348k
Installing RVM to /Users/ming/.rvm/
Adding rvm PATH line to /Users/ming/.bashrc /Users/ming/.zshrc.
Adding rvm loading line to /Users/ming/.bash_profile /Users/ming/.zprofile.
* WARNING: You're using ~/.profile, make sure you load it,
add the following line to ~/.bash_profile if it exists
otherwise add it to ~/.bash_login:
source ~/.profile
# RVM: Shell scripts enabling management of multiple ruby environments.
# RTFM: https://rvm.io/
# HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)
# Cheatsheet: http://cheat.errtheblog.com/s/rvm
# Screencast: http://screencasts.org/episodes/how-to-use-rvm
# In case of any issues run 'rvm requirements' or read 'rvm notes'
Installation of RVM in /Users/ming/.rvm/ is almost complete:
* To start using RVM you need to run `source /Users/ming/.rvm/scripts/rvm`
in all your open shell windows, in rare cases you need to reopen all shell windows.
# ming,
#
# Thank you for using RVM!
# I sincerely hope that RVM helps to make your life easier and
# more enjoyable!!!
#
# ~Wayne
rvm 1.19.4 (stable) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/]
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p0.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing requirements for osx, might require sudo password.
Installing homebrew....
Initialized empty Git repository in /Users/ming/.homebrew/.git/
remote: error: refs/pull/18952/merge does not point to a valid object!
remote: Counting objects: 108659, done.
remote: Compressing objects: 100% (40644/40644), done.
remote: Total 108659 (delta 77305), reused 96173 (delta 67073)
Receiving objects: 100% (108659/108659), 16.32 MiB | 111 KiB/s, done.
Resolving deltas: 100% (77305/77305), done.
From https://github.com/mxcl/homebrew
* [new branch] gh-pages -> origin/gh-pages
* [new branch] go -> origin/go
* [new branch] master -> origin/master
* [new branch] superwip -> origin/superwip
HEAD is now at 91abd5b nicovideo-dl 0.0.20120212
Already up-to-date.
Installing required packages: autoconf, automake, libtool, pkg-config, libyaml, readline, libxml2, libxslt, libksba, openssl, sqlite..........................................................................................................................................................
Updating certificates in '/Users/ming/.rvm/etc/openssl/cert.pem'.
Installing Ruby from source to: /Users/ming/.rvm/rubies/ruby-2.0.0-p0, this may take a while depending on your cpu(s)...
ruby-2.0.0-p0 - #downloading ruby-2.0.0-p0, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10.3M 100 10.3M 0 0 83361 0 0:02:09 0:02:09 --:--:-- 24236
ruby-2.0.0-p0 - #extracting ruby-2.0.0-p0 to /Users/ming/.rvm/src/ruby-2.0.0-p0
ruby-2.0.0-p0 - #extracted to /Users/ming/.rvm/src/ruby-2.0.0-p0
ruby-2.0.0-p0 - #configuring.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
ruby-2.0.0-p0 - #compiling.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
ruby-2.0.0-p0 - #installing ..................................................................................................................................
Retrieving rubygems-2.0.3
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 326k 100 326k 0 0 277k 0 0:00:01 0:00:01 --:--:-- 322k
Extracting rubygems-2.0.3 ...
Removing old Rubygems files...
Installing rubygems-2.0.3 for ruby-2.0.0-p0................................................................................................................................................................................................................................................................................................................................................................................................
Installation of rubygems completed successfully.
Saving wrappers to '/Users/ming/.rvm/wrappers/ruby-2.0.0-p0'........
ruby-2.0.0-p0 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-2.0.0-p0 - #importing default gemsets, this may take time.......................
Install of ruby-2.0.0-p0 - #complete
Creating alias default for ruby-2.0.0-p0.
Recording alias default for ruby-2.0.0-p0.
Creating default links/files
Saving wrappers to '/Users/ming/.rvm/bin'........
* To start using RVM you need to run `source /Users/ming/.rvm/scripts/rvm`
in all your open shell windows, in rare cases you need to reopen all shell windows.
Wangs-MacBook-Air:boxen-web ming$ ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
Wangs-MacBook-Air:boxen-web ming$ rvm use 1.9.3
-bash: rvm: command not found
Wangs-MacBook-Air:boxen-web ming$ rvm
-bash: rvm: command not found
Wangs-MacBook-Air:boxen-web ming$ source /Users/ming/.rvm/scripts/rvm
RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,
you can ignore these warnings with 'rvm rvmrc warning ignore /Users/ming/git/boxen-web/Gemfile'.
To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.
ruby-1.9.3-p392 is not installed.
To install do: 'rvm install ruby-1.9.3-p392'
Wangs-MacBook-Air:boxen-web ming$ rvm install ruby-1.9.3-p392
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p392.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing requirements for osx, might require sudo password.
Already up-to-date.
Cloning into '/Users/ming/.homebrew/Library/Taps/homebrew-dupes'...
remote: Counting objects: 865, done.
remote: Compressing objects: 100% (374/374), done.
remote: Total 865 (delta 543), reused 801 (delta 491)
Receiving objects: 100% (865/865), 127.96 KiB | 111 KiB/s, done.
Resolving deltas: 100% (543/543), done.
Tapped 41 formula
Installing required packages: apple-gcc42................
Certificates in '/Users/ming/.rvm/etc/openssl/cert.pem' already are up to date.
Installing Ruby from source to: /Users/ming/.rvm/rubies/ruby-1.9.3-p392, this may take a while depending on your cpu(s)...
ruby-1.9.3-p392 - #downloading ruby-1.9.3-p392, this may take a while depending on your connection...
######################################################################## 100.0%
ruby-1.9.3-p392 - #extracting ruby-1.9.3-p392 to /Users/ming/.rvm/src/ruby-1.9.3-p392
ruby-1.9.3-p392 - #extracted to /Users/ming/.rvm/src/ruby-1.9.3-p392
ruby-1.9.3-p392 - #configuring.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
ruby-1.9.3-p392 - #compiling..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
ruby-1.9.3-p392 - #installing .........................................................................................................
Retrieving rubygems-1.8.25
######################################################################## 100.0%
Extracting rubygems-1.8.25 ...
Removing old Rubygems files...
Installing rubygems-1.8.25 for ruby-1.9.3-p392.....................
Installation of rubygems completed successfully.
Saving wrappers to '/Users/ming/.rvm/wrappers/ruby-1.9.3-p392'........
ruby-1.9.3-p392 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
ruby-1.9.3-p392 - #importing default gemsets, this may take time.......................
Install of ruby-1.9.3-p392 - #complete
Wangs-MacBook-Air:boxen-web ming$ rvm use 1.9.3
Using /Users/ming/.rvm/gems/ruby-1.9.3-p392
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment