Skip to content

Instantly share code, notes, and snippets.

@josephlord
Created February 28, 2013 02:19
Show Gist options
  • Save josephlord/5053653 to your computer and use it in GitHub Desktop.
Save josephlord/5053653 to your computer and use it in GitHub Desktop.
Remove RVM for user and follow install instructions for rvm+ruby on the rvm.io website.
jl-mbp:~ temp$ rm -rf .rvm/
jl-mbp:~ temp$ rm .bashrc .zshrc
jl-mbp:~ temp$ exit
logout
Connection to localhost closed.
website/hfwebsite » ssh temp@localhost
Password:
Last login: Wed Feb 27 19:10:49 2013 from localhost
jl-mbp:~ temp$ \curl -L https://get.rvm.io | bash -s stable --ruby
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 185 100 185 0 0 122 0 0:00:01 0:00:01 --:--:-- 214
100 11525 100 11525 0 0 6867 0 0:00:01 0:00:01 --:--:-- 6867
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 289 0 --:--:-- --:--:-- --:--:-- 387
0 124 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 1490k 100 1490k 0 0 386k 0 0:00:03 0:00:03 --:--:-- 690k
Installing RVM to /Users/temp/.rvm/
Adding rvm PATH line to /Users/temp/.bashrc /Users/temp/.zshrc.
RVM sourcing line found in /Users/temp/.bash_profile /Users/temp/.zprofile.
# 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 read output of 'rvm requirements' and/or 'rvm notes'
Installation of RVM in /Users/temp/.rvm/ is almost complete:
* To start using RVM you need to run `source /Users/temp/.rvm/scripts/rvm`
in all your open shell windows, in rare cases you need to reopen all shell windows.
# temp,
#
# Thank you for using RVM!
# I sincerely hope that RVM helps to make your life easier and
# more enjoyable!!!
#
# ~Wayne
rvm 1.18.15 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [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.
Fetching yaml-0.1.4.tar.gz to /Users/temp/.rvm/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 460k 100 460k 0 0 201k 0 0:00:02 0:00:02 --:--:-- 217k
Extracting yaml to /Users/temp/.rvm/src/yaml-0.1.4
Configuring yaml in /Users/temp/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/temp/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/temp/.rvm/usr
Fetching openssl-1.0.1c.tar.gz to /Users/temp/.rvm/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4352k 100 4352k 0 0 2821k 0 0:00:01 0:00:01 --:--:-- 4169k
Extracting openssl to /Users/temp/.rvm/src/openssl-1.0.1c
Configuring openssl in /Users/temp/.rvm/src/openssl-1.0.1c.
Compiling openssl in /Users/temp/.rvm/src/openssl-1.0.1c.
Installing openssl to /Users/temp/.rvm/usr
Updating openssl certificates
Installing Ruby from source to: /Users/temp/.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 131k 0 0:01:20 0:01:20 --:--:-- 167k
ruby-2.0.0-p0 - #extracting ruby-2.0.0-p0 to /Users/temp/.rvm/src/ruby-2.0.0-p0
ruby-2.0.0-p0 - #extracted to /Users/temp/.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.0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 322k 100 322k 0 0 668k 0 --:--:-- --:--:-- --:--:-- 3789k
Extracting rubygems-2.0.0 ...
Removing old Rubygems files...
Installing rubygems-2.0.0 for ruby-2.0.0-p0 ...
Error running 'env GEM_PATH=/Users/temp/.rvm/gems/ruby-2.0.0-p0:/Users/temp/.rvm/gems/ruby-2.0.0-p0@global:/Users/temp/.rvm/gems/ruby-2.0.0-p0:/Users/temp/.rvm/gems/ruby-2.0.0-p0@global GEM_HOME=/Users/temp/.rvm/gems/ruby-2.0.0-p0 /Users/temp/.rvm/rubies/ruby-2.0.0-p0/bin/ruby /Users/temp/.rvm/src/rubygems-2.0.0/setup.rb', please read /Users/temp/.rvm/log/ruby-2.0.0-p0/rubygems.install.log
Installation of rubygems did not complete successfully.
Saving wrappers to '/Users/temp/.rvm/bin'.
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/temp/.rvm/bin'.
* To start using RVM you need to run `source /Users/temp/.rvm/scripts/rvm`
in all your open shell windows, in rare cases you need to reopen all shell windows.
jl-mbp:~ temp$ cat /Users/temp/.rvm/src/rubygems-2.0.0/setup.rb', please read /Users/temp/.rvm/log/ruby-2.0.0-p0/rubygems.install.log
>
jl-mbp:~ temp$ cat /Users/temp/.rvm/log/ruby-2.0.0-p0/rubygems.install.log
[2013-02-28 02:12:45] /Users/temp/.rvm/rubies/ruby-2.0.0-p0/bin/ruby
/Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- openssl (LoadError)
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/security.rb:8:in `<top (required)>'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/package.rb:43:in `<top (required)>'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/installer.rb:8:in `<top (required)>'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/request_set.rb:5:in `<top (required)>'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems.rb:195:in `finish_resolve'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/rdoc.rb:14:in `<top (required)>'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/uninstaller.rb:10:in `<top (required)>'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/core_ext/kernel_require.rb:45:in `require'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/commands/setup_command.rb:440:in `uninstall_old_gemcutter'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/commands/setup_command.rb:144:in `execute'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/command.rb:305:in `invoke_with_build_args'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/command_manager.rb:170:in `process_args'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/command_manager.rb:130:in `run'
from /Users/temp/.rvm/src/rubygems-2.0.0/lib/rubygems/gem_runner.rb:60:in `run'
from setup.rb:45:in `<main>'
RubyGems 2.0.0 installed
jl-mbp:~ temp$
jl-mbp:~ temp$ rvm -v
-bash: rvm: command not found
jl-mbp:~ temp$ exit
logout
Connection to localhost closed.
website/hfwebsite » ssh temp@localhost
Password:
Last login: Thu Feb 28 02:04:28 2013 from localhost
jl-mbp:~ temp$ rvm -v
rvm 1.18.15 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
jl-mbp:~ temp$ rvm list
rvm rubies
=* ruby-2.0.0-p0 [ x86_64 ]
# => - current
# =* - current && default
# * - default
jl-mbp:~ temp$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment