Created
June 18, 2012 19:06
-
-
Save kevinrutherford/2950115 to your computer and use it in GitHub Desktop.
Transcript of a clean RVM installation on Ubuntu 12.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ uname -a | |
Linux kr-laptop 3.2.0-25-generic #40-Ubuntu SMP Wed May 23 20:30:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux | |
$ rvm implode | |
# and edit .bashrc to remove RVM stuff there | |
# No RVM packages installed, no RVM gem, no other RVM config files found | |
$ curl -L https://get.rvm.io | bash -s stable | |
#... | |
rvm 1.14.2 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/] | |
$ . /home/kevin/.rvm/scripts/rvm | |
$ type rvm|head -1 | |
rvm is a function | |
$ rvm list | |
rvm rubies | |
# No rvm rubies installed yet. Try 'rvm help install'. | |
$ rvm install 1.9.3 | |
#... | |
Install of ruby-1.9.3-p194 - #complete | |
$ rvm use 1.9.3 | |
Using /home/kevin/.rvm/gems/ruby-1.9.3-p194 | |
$ irb | |
1.9.3p194 :001 > p 'hi' | |
"hi" | |
=> "hi" | |
1.9.3p194 :002 > | |
$ ruby -v | |
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] | |
$ cd | |
$ cd project/ | |
==================================================================================== | |
= NOTICE = | |
==================================================================================== | |
= RVM has encountered a new or modified .rvmrc file in the current directory = | |
= This is a shell script and therefore may contain any shell commands. = | |
= = | |
= Examine the contents of this file carefully to be sure the contents are = | |
= safe before trusting it! ( Choose v[iew] below to view the contents ) = | |
==================================================================================== | |
Do you wish to trust this .rvmrc file? (/home/kevin/Working/git/project/.rvmrc) | |
y[es], n[o], v[iew], c[ancel]> y | |
Using /home/kevin/.rvm/gems/ruby-1.9.3-p194 with gemset project | |
$ gem list | |
*** LOCAL GEMS *** | |
bundler (1.1.4) | |
rake (0.9.2.2) | |
rubygems-bundler (1.0.2) | |
rvm (1.11.3.3) | |
$ rake -T | |
/usr/bin/env: ruby_bundler_wrapper: No such file or directory | |
$ bundle exec rake -T | |
/usr/bin/env: ruby_bundler_wrapper: No such file or directory | |
$ | |
$ which rake | |
/home/kevin/.rvm/gems/ruby-1.9.3-p194@global/bin/rake | |
$ head -n 1 $( which rake ) | |
#!/usr/bin/env ruby_bundler_wrapper | |
$ gem env | |
RubyGems Environment: | |
- RUBYGEMS VERSION: 1.8.24 | |
- RUBY VERSION: 1.9.3 (2012-04-20 patchlevel 194) [x86_64-linux] | |
- INSTALLATION DIRECTORY: /home/kevin/.rvm/gems/ruby-1.9.3-p194@project | |
- RUBY EXECUTABLE: /home/kevin/.rvm/rubies/ruby-1.9.3-p194/bin/ruby | |
- EXECUTABLE DIRECTORY: /home/kevin/.rvm/gems/ruby-1.9.3-p194@project/bin | |
- RUBYGEMS PLATFORMS: | |
- ruby | |
- x86_64-linux | |
- GEM PATHS: | |
- /home/kevin/.rvm/gems/ruby-1.9.3-p194@project | |
- /home/kevin/.rvm/gems/ruby-1.9.3-p194@global | |
- GEM CONFIGURATION: | |
- :update_sources => true | |
- :verbose => true | |
- :benchmark => false | |
- :backtrace => false | |
- :bulk_threshold => 1000 | |
- "gemcutter_key" => "********************************" | |
- :sources => ["http://gemcutter.org", "http://gems.rubyforge.org/", "http://gems.github.com", "http://gems.github.com", "http://gems.github.com"] | |
- "install" => "--no-rdoc --no-ri" | |
- "update" => "--no-rdoc --no-ri" | |
- "custom_shebang" => "$env ruby_bundler_wrapper" | |
- REMOTE SOURCES: | |
- http://gemcutter.org | |
- http://gems.rubyforge.org/ | |
- http://gems.github.com | |
- http://gems.github.com | |
- http://gems.github.com | |
$ rvm info | |
ruby-1.9.3-p194@project: | |
system: | |
uname: "Linux kr-laptop 3.2.0-25-generic #40-Ubuntu SMP Wed May 23 20:30:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux" | |
bash: "/bin/bash => GNU bash, version 4.2.24(1)-release (x86_64-pc-linux-gnu)" | |
zsh: " => not installed" | |
rvm: | |
version: "rvm 1.14.2 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]" | |
updated: "28 minutes 32 seconds ago" | |
ruby: | |
interpreter: "ruby" | |
version: "1.9.3p194" | |
date: "2012-04-20" | |
platform: "x86_64-linux" | |
patchlevel: "2012-04-20 revision 35410" | |
full_version: "ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]" | |
homes: | |
gem: "/home/kevin/.rvm/gems/ruby-1.9.3-p194@project" | |
ruby: "/home/kevin/.rvm/rubies/ruby-1.9.3-p194" | |
binaries: | |
ruby: "/home/kevin/.rvm/rubies/ruby-1.9.3-p194/bin/ruby" | |
irb: "/home/kevin/.rvm/rubies/ruby-1.9.3-p194/bin/irb" | |
gem: "/home/kevin/.rvm/rubies/ruby-1.9.3-p194/bin/gem" | |
rake: "/home/kevin/.rvm/gems/ruby-1.9.3-p194@global/bin/rake" | |
environment: | |
PATH: "/home/kevin/.rvm/gems/ruby-1.9.3-p194@project/bin:/home/kevin/.rvm/gems/ruby-1.9.3-p194@global/bin:/home/kevin/.rvm/rubies/ruby-1.9.3-p194/bin:/home/kevin/.rvm/bin:/home/kevin/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" | |
GEM_HOME: "/home/kevin/.rvm/gems/ruby-1.9.3-p194@project" | |
GEM_PATH: "/home/kevin/.rvm/gems/ruby-1.9.3-p194@project:/home/kevin/.rvm/gems/ruby-1.9.3-p194@global" | |
MY_RUBY_HOME: "/home/kevin/.rvm/rubies/ruby-1.9.3-p194" | |
IRBRC: "/home/kevin/.rvm/rubies/ruby-1.9.3-p194/.irbrc" | |
RUBYOPT: "" | |
gemset: "project" | |
$ | |
$ which ruby_bundler_wrapper | |
$ echo $PATH | |
/home/kevin/.rvm/gems/ruby-1.9.3-p194@project/bin:/home/kevin/.rvm/gems/ruby-1.9.3-p194@global/bin:/home/kevin/.rvm/rubies/ruby-1.9.3-p194/bin:/home/kevin/.rvm/bin:/home/kevin/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games | |
$ find ~/.rvm -name \*bundler_wrapper\* -print | |
$ | |
$ ruby -rrubygems-bundler/wrapper -e "puts RubygemsBundler::Wrapper.destination" | |
/home/kevin/.rvm/gems/ruby-1.9.3-p194@project/bin/ruby_noexec_wrapper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rvm system | |
$ rvm use 1.9.3 --default | |
Using /home/kevin/.rvm/gems/ruby-1.9.3-p194 | |
$ cd | |
$ rake -T | |
/usr/bin/env: ruby_bundler_wrapper: No such file or directory | |
$ echo $PATH | |
/home/kevin/.rvm/gems/ruby-1.9.3-p194/bin:/home/kevin/.rvm/gems/ruby-1.9.3-p194@global/bin:/home/kevin/.rvm/rubies/ruby-1.9.3-p194/bin:/home/kevin/.rvm/bin:/home/kevin/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games | |
$ head -1 `which rake` | |
#!/usr/bin/env ruby_bundler_wrapper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ which ruby_bundler_wrapper ; echo $PATH ; ls -l /home/kevin/.rvm/gems/ruby-1.9.3-p194@project/bin/ruby_noexec_wrapper | |
/home/kevin/.rvm/gems/ruby-1.9.3-p194/bin:/home/kevin/.rvm/gems/ruby-1.9.3-p194@global/bin:/home/kevin/.rvm/rubies/ruby-1.9.3-p194/bin:/home/kevin/.rvm/bin:/home/kevin/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games | |
-rwxrwxr-x 1 kevin kevin 296 Jun 18 20:11 /home/kevin/.rvm/gems/ruby-1.9.3-p194@project/bin/ruby_noexec_wrapper | |
$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment