Skip to content

Instantly share code, notes, and snippets.

@josephlord
Last active December 14, 2015 07:29
Show Gist options
  • Save josephlord/5050901 to your computer and use it in GitHub Desktop.
Save josephlord/5050901 to your computer and use it in GitHub Desktop.
Created new user on OS X. 1) Installed RVM (stable) with Ruby (it defaulted to 2.0.0). - Rubygems install failed (openssl). 2) Logged out/in 3) rvm get head - failed openssl related 4) rvm install 1.9.3 - failed (Requested installation with homebrew libs, but homebrew is not available.) 5) rvm install 1.9.3 --autolibs=3 (currently proceeding but…
ebsite/hfwebsite » ssh temp@localhost
Password:
jl-mbp:~ temp$ uname -a
Darwin jl-mbp.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
jl-mbp:~ temp$ ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
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 128 0 0:00:01 0:00:01 --:--:-- 169
100 11525 100 11525 0 0 4431 0 0:00:02 0:00:02 --:--:-- 14719
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 88 0 0:00:01 0:00:01 --:--:-- 95
0 124 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
100 1490k 100 1490k 0 0 295k 0 0:00:05 0:00:05 --:--:-- 729k
Installing RVM to /Users/temp/.rvm/
Adding rvm PATH line to /Users/temp/.bashrc /Users/temp/.zshrc.
Adding rvm loading line to /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.14 (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 212k 0 0:00:02 0:00:02 --:--:-- 229k
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 2416k 0 0:00:01 0:00:01 --:--:-- 3078k
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 255k 0 0:00:41 0:00:41 --:--:-- 224k
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 545k 0 --:--:-- --:--:-- --:--:-- 582k
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$ rvm get head
-bash: rvm: command not found
jl-mbp:~ temp$ exit
logout
Connection to localhost closed.
website/hfwebsite » ssh temp@localhost
Password:
Last login: Wed Feb 27 19:01:21 2013 from localhost
jl-mbp:~ temp$ rvm reload
RVM reloaded!
jl-mbp:~ temp$ rvm get head
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 185 100 185 0 0 134 0 0:00:01 0:00:01 --:--:-- 258
100 11525 100 11525 0 0 6662 0 0:00:01 0:00:01 --:--:-- 53356
Downloading RVM from wayneeseguin branch master
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 124 100 124 0 0 290 0 --:--:-- --:--:-- --:--:-- 382
0 124 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 1620k 100 1620k 0 0 405k 0 0:00:03 0:00:03 --:--:-- 729k
Upgrading the RVM installation in /Users/temp/.rvm/
RVM PATH line found in /Users/temp/.bashrc /Users/temp/.zshrc.
RVM sourcing line found in /Users/temp/.bash_profile /Users/temp/.zprofile.
Installing rvm gem in 1 gemsets ERROR: Loading command: install (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
Upgrade Notes:
* If you encounter any issues with a ruby 'X' your best bet is to:
rvm get head && rvm reinstall X --debug
* RVM will run 'rvm requirements' by default, to disable run:
echo rvm_autolibs_flag=0 >> ~/.rvmrc
* RVM will set first installed ruby as default and use it if run as function.
To avoid this behavior either use full path to rvm binary or prefix it with `command `.
* To update RVM loading code run 'rvm get ... --auto-dotfiles'
* RVM will try automatically use available package manager, might require `sudo`,
read more about it in `rvm help autolibs`
# 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'
Upgrade of RVM in /Users/temp/.rvm/ is complete.
# temp,
#
# Thank you for using RVM!
# I sincerely hope that RVM helps to make your life easier and
# more enjoyable!!!
#
# ~Wayne
RVM reloaded!
jl-mbp:~ temp$ zs
-bash: zs: command not found
jl-mbp:~ temp$ ls -al
total 40
drwxr-xr-x+ 18 temp staff 612 27 Feb 19:10 .
drwxr-xr-x 9 root admin 306 27 Feb 18:38 ..
-rw------- 1 temp staff 3 27 Feb 18:38 .CFUserTextEncoding
-rw------- 1 temp staff 78 27 Feb 19:10 .bash_history
-rw-r--r-- 1 temp staff 118 27 Feb 19:02 .bash_profile
-rw-r--r-- 1 temp staff 59 27 Feb 19:02 .bashrc
drwxr-xr-x 29 temp staff 986 27 Feb 19:11 .rvm
drwxr-xr-x 6 temp staff 204 27 Feb 19:07 .subversion
-rw-r--r-- 1 temp staff 118 27 Feb 19:02 .zprofile
-rw-r--r-- 1 temp staff 59 27 Feb 19:02 .zshrc
drwx------+ 3 temp staff 102 27 Feb 18:38 Desktop
drwx------+ 3 temp staff 102 27 Feb 18:38 Documents
drwx------+ 4 temp staff 136 27 Feb 18:38 Downloads
drwx------+ 25 temp staff 850 27 Feb 18:38 Library
drwx------+ 3 temp staff 102 27 Feb 18:38 Movies
drwx------+ 3 temp staff 102 27 Feb 18:38 Music
drwx------+ 3 temp staff 102 27 Feb 18:38 Pictures
drwxr-xr-x+ 4 temp staff 136 27 Feb 18:38 Public
jl-mbp:~ temp$ cat .zshrc
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
jl-mbp:~ temp$ cat .zprofile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
jl-mbp:~ temp$ rvm -v
rvm 1.18.14 (master) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
jl-mbp:~ temp$
jl-mbp:~ temp$ rvm install 1.9.3
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/10.8/x86_64, might require sudo password
Requested installation with homebrew libs, but homebrew is not available.
jl-mbp:~ temp$ rvm install 1.9.3 --autolibs=3
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/10.8/x86_64, might require sudo password
Installing homebrew.....
Initialized empty Git repository in /Users/temp/.homebrew/.git/
remote: Counting objects: 102833, done.
remote: Compressing objects: 100% (43573/43573), done.
remote: Total 102833 (delta 72711), reused 85609 (delta 58352)
Receiving objects: 100% (102833/102833), 15.19 MiB | 1.03 MiB/s, done.
Resolving deltas: 100% (72711/72711), 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 e396f1c highlight 3.12
Already up-to-date.
Cloning into '/Users/temp/.homebrew/Library/Taps/homebrew-dupes'...
remote: Counting objects: 722, done.
remote: Compressing objects: 100% (305/305), done.
remote: Total 722 (delta 449), reused 677 (delta 417)
Receiving objects: 100% (722/722), 108.00 KiB, done.
Resolving deltas: 100% (449/449), done.
Tapped 41 formula
Installing required packages: autoconf, automake, libtool, pkg-config, apple-gcc42, libyaml, readline, libxml2, libxslt, libksba, openssl, sqlite...........................................................................................................................................................................
Doing /Users/temp/.rvm/etc/openssl
cert.pem => b4b4052d.0
Installing Ruby from source to: /Users/temp/.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/temp/.rvm/src/ruby-1.9.3-p392
ruby-1.9.3-p392 - #extracted to /Users/temp/.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/temp/.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
Ruby 'ruby-1.9.3-p392' was built using clang - but it's not (fully) supported, expect errors.
jl-mbp:~ temp$
jl-mbp:~ temp$ rvm use 1.9.3
Using /Users/temp/.rvm/gems/ruby-1.9.3-p392
jl-mbp:~ temp$ rvm reload
RVM reloaded!
jl-mbp:~ temp$ rvm get head
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 185 100 185 0 0 132 0 0:00:01 0:00:01 --:--:-- 250
100 11525 100 11525 0 0 6676 0 0:00:01 0:00:01 --:--:-- 10.9M
Downloading RVM from wayneeseguin branch master
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 124 100 124 0 0 120 0 0:00:01 0:00:01 --:--:-- 133
0 124 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 1620k 100 1620k 0 0 416k 0 0:00:03 0:00:03 --:--:-- 1421k
Upgrading the RVM installation in /Users/temp/.rvm/
RVM PATH line found in /Users/temp/.bashrc /Users/temp/.zshrc.
RVM sourcing line found in /Users/temp/.bash_profile /Users/temp/.zprofile.
Installing rvm gem in 1 gemsets ERROR: Loading command: install (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
Upgrade Notes:
* No new notes to display.
# 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'
Upgrade of RVM in /Users/temp/.rvm/ is complete.
# temp,
#
# Thank you for using RVM!
# I sincerely hope that RVM helps to make your life easier and
# more enjoyable!!!
#
# ~Wayne
RVM reloaded!
[2013-02-27 19:09:01] /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
@josephlord
Copy link
Author

Created new user on OS X.

  1. Installed RVM (stable) with Ruby (it defaulted to 2.0.0). - Rubygems install failed (openssl).
  2. Logged out/in
  3. rvm get head - failed openssl related
  4. rvm install 1.9.3 - failed (Requested installation with homebrew libs, but homebrew is not available.)
  5. rvm install 1.9.3 --autolibs=3 (currently proceeding but I wouldn't want to do this on my main user account - if I wanted Homebrew installed it would already be installed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment