Skip to content

Instantly share code, notes, and snippets.

@buildmaster
Created March 18, 2013 22:42
Show Gist options
  • Save buildmaster/5191538 to your computer and use it in GitHub Desktop.
Save buildmaster/5191538 to your computer and use it in GitHub Desktop.
RVM failure
owen:/Volumes/Storage/Projects$ rvm install 2.0.0
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/owen/.rvm/archives
######################################################################## 100.0%
Extracting yaml to /Users/owen/.rvm/src/yaml-0.1.4
Configuring yaml in /Users/owen/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/owen/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/owen/.rvm/usr
Fetching openssl-1.0.1c.tar.gz to /Users/owen/.rvm/archives
######################################################################## 100.0%
Extracting openssl to /Users/owen/.rvm/src/openssl-1.0.1c
Configuring openssl in /Users/owen/.rvm/src/openssl-1.0.1c.
Compiling openssl in /Users/owen/.rvm/src/openssl-1.0.1c.
Installing openssl to /Users/owen/.rvm/usr
Updating openssl certificates
Installing Ruby from source to: /Users/owen/.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...
######################################################################## 100.0%
ruby-2.0.0-p0 - #extracting ruby-2.0.0-p0 to /Users/owen/.rvm/src/ruby-2.0.0-p0
ruby-2.0.0-p0 - #extracted to /Users/owen/.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
######################################################################## 100.0%
Extracting rubygems-2.0.3 ...
Removing old Rubygems files...
Installing rubygems-2.0.3 for ruby-2.0.0-p0 ...
Error running 'env GEM_PATH=/Users/owen/.rvm/gems/ruby-2.0.0-p0:/Users/owen/.rvm/gems/ruby-2.0.0-p0@global:/Users/owen/.rvm/gems/ruby-2.0.0-p0:/Users/owen/.rvm/gems/ruby-2.0.0-p0@global GEM_HOME=/Users/owen/.rvm/gems/ruby-2.0.0-p0 /Users/owen/.rvm/rubies/ruby-2.0.0-p0/bin/ruby /Users/owen/.rvm/src/rubygems-2.0.3/setup.rb', please read /Users/owen/.rvm/log/ruby-2.0.0-p0/rubygems.install.log
Installation of rubygems did not complete successfully.
Saving wrappers to '/Users/owen/.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
@buildmaster
Copy link
Author

log file:
[2013-03-19 11:37:58] /Users/owen/.rvm/rubies/ruby-2.0.0-p0/bin/ruby
/Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/core_ext/kernel_require.rb:45:in require': cannot load such file -- openssl (LoadError) from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/security/policy.rb:23:in initialize' from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/security/policies.rb:6:innew'
from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/security/policies.rb:6:in <module:Security>' from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/security/policies.rb:1:in<top (required)>'
from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/core_ext/kernel_require.rb:45:in require' from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/security.rb:583:in <top (required)>' from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/core_ext/kernel_require.rb:45:in require' from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/package.rb:43:in<top (required)>'
from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/core_ext/kernel_require.rb:45:in require' from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/installer.rb:8:in <top (required)>' from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/core_ext/kernel_require.rb:45:in require' from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/request_set.rb:5:in<top (required)>'
from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems.rb:195:in finish_resolve' from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/rdoc.rb:14:in<top (required)>'
from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/core_ext/kernel_require.rb:45:in require' from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/uninstaller.rb:10:in <top (required)>' from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/core_ext/kernel_require.rb:45:in require' from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/commands/setup_command.rb:462:inuninstall_old_gemcutter'
from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/commands/setup_command.rb:146:in execute' from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/command.rb:305:ininvoke_with_build_args'
from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/command_manager.rb:170:in process_args' from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/command_manager.rb:130:inrun'
from /Users/owen/.rvm/src/rubygems-2.0.3/lib/rubygems/gem_runner.rb:60:in run' from setup.rb:45:in

'
RubyGems 2.0.3 installed

@buildmaster
Copy link
Author

using --with-openssl-dir

rvm reinstall 2.0.0 --with-openssl-dir=$rvm_path/usr
Removing /Users/owen/.rvm/src/ruby-2.0.0-p0...
Removing /Users/owen/.rvm/rubies/ruby-2.0.0-p0...
Fetching yaml-0.1.4.tar.gz to /Users/owen/.rvm/archives
Extracting yaml to /Users/owen/.rvm/src/yaml-0.1.4
Configuring yaml in /Users/owen/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/owen/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/owen/.rvm/usr
Fetching openssl-1.0.1c.tar.gz to /Users/owen/.rvm/archives
Extracting openssl to /Users/owen/.rvm/src/openssl-1.0.1c
Configuring openssl in /Users/owen/.rvm/src/openssl-1.0.1c.
Error running './Configure darwin64-x86_64-cc -I/Users/owen/.rvm/usr/include -L/Users/owen/.rvm/usr/lib zlib no-asm no-krb5 --prefix=/Users/owen/.rvm/usr --with-openssl-dir=/Users/owen/.rvm/usr no-shared', please read /Users/owen/.rvm/log/ruby-2.0.0-p0/openssl/configure.log
Compiling openssl in /Users/owen/.rvm/src/openssl-1.0.1c.
Error running 'make', please read /Users/owen/.rvm/log/ruby-2.0.0-p0/openssl/make.log
Updating openssl certificates
Installing Ruby from source to: /Users/owen/.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...
ruby-2.0.0-p0 - #extracting ruby-2.0.0-p0 to /Users/owen/.rvm/src/ruby-2.0.0-p0
ruby-2.0.0-p0 - #extracted to /Users/owen/.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
Removing old Rubygems files...
Installing rubygems-2.0.3 for ruby-2.0.0-p0 ...
Error running 'env GEM_PATH=/Users/owen/.rvm/gems/ruby-2.0.0-p0:/Users/owen/.rvm/gems/ruby-2.0.0-p0@global:/Users/owen/.rvm/gems/ruby-2.0.0-p0:/Users/owen/.rvm/gems/ruby-2.0.0-p0@global GEM_HOME=/Users/owen/.rvm/gems/ruby-2.0.0-p0 /Users/owen/.rvm/rubies/ruby-2.0.0-p0/bin/ruby /Users/owen/.rvm/src/rubygems-2.0.3/setup.rb', please read /Users/owen/.rvm/log/ruby-2.0.0-p0/rubygems.install.log
Installation of rubygems did not complete successfully.
Saving wrappers to '/Users/owen/.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
Making gemset ruby-2.0.0-p0 pristine.
Error running '' under ,
please read /Users/owen/.rvm/log/ruby-2.0.0-p0/gemset.pristine.log
Making gemset ruby-2.0.0-p0@global pristine.
Error running '' under ,
please read /Users/owen/.rvm/log/ruby-2.0.0-p0/gemset.pristine.log

@buildmaster
Copy link
Author

config log:

[2013-03-19 11:47:09] ./Configure
Usage: Configure [no- ...] [enable- ...] [experimental- ...] [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [no-hw-xxx|no-hw] [[no-]threads] [[no-]shared] [[no-]zlib|zlib-dynamic] [no-asm] [no-dso] [no-krb5] [sctp] [386] [--prefix=DIR] [--openssldir=OPENSSLDIR] [--with-xxx[=vvv]] [--test-sanity] os/compiler[:flags]

  • /Users/owen/.rvm/log/ruby-2.0.0-p0/gemset.pristine.log*

[2013-03-19 11:52:12] rvm gemset pristine # under ruby-2.0.0-p0
Restoring gems to pristine condition...
bigdecimal-1.2.0 ERROR: Loading command: pristine (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method invoke_with_build_args' for nil:NilClass io-console-0.4.2 ERROR: Loading command: pristine (LoadError) cannot load such file -- openssl ERROR: While executing gem ... (NoMethodError) undefined methodinvoke_with_build_args' for nil:NilClass
json-1.7.7 ERROR: Loading command: pristine (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method invoke_with_build_args' for nil:NilClass minitest-4.3.2 ERROR: Loading command: pristine (LoadError) cannot load such file -- openssl ERROR: While executing gem ... (NoMethodError) undefined methodinvoke_with_build_args' for nil:NilClass
psych-2.0.0 ERROR: Loading command: pristine (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method invoke_with_build_args' for nil:NilClass rake-0.9.6 ERROR: Loading command: pristine (LoadError) cannot load such file -- openssl ERROR: While executing gem ... (NoMethodError) undefined methodinvoke_with_build_args' for nil:NilClass
rdoc-4.0.0 ERROR: Loading command: pristine (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method invoke_with_build_args' for nil:NilClass test-unit-2.0.0.0 ERROR: Loading command: pristine (LoadError) cannot load such file -- openssl ERROR: While executing gem ... (NoMethodError) undefined methodinvoke_with_build_args' for nil:NilClass

'gem pristine bigdecimal --version 1.2.0 io-console --version 0.4.2 json --version 1.7.7 minitest --version 4.3.2 psych --version 2.0.0 rake --version 0.9.6 rdoc --version 4.0.0 test-unit --version 2.0.0.0' failed, you need to fix this gems manually.
[2013-03-19 11:52:13] rvm gemset pristine # under ruby-2.0.0-p0@global
Restoring gems to pristine condition...
bigdecimal-1.2.0 ERROR: Loading command: pristine (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method invoke_with_build_args' for nil:NilClass io-console-0.4.2 ERROR: Loading command: pristine (LoadError) cannot load such file -- openssl ERROR: While executing gem ... (NoMethodError) undefined methodinvoke_with_build_args' for nil:NilClass
json-1.7.7 ERROR: Loading command: pristine (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method invoke_with_build_args' for nil:NilClass minitest-4.3.2 ERROR: Loading command: pristine (LoadError) cannot load such file -- openssl ERROR: While executing gem ... (NoMethodError) undefined methodinvoke_with_build_args' for nil:NilClass
psych-2.0.0 ERROR: Loading command: pristine (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method invoke_with_build_args' for nil:NilClass rake-0.9.6 ERROR: Loading command: pristine (LoadError) cannot load such file -- openssl ERROR: While executing gem ... (NoMethodError) undefined methodinvoke_with_build_args' for nil:NilClass
rdoc-4.0.0 ERROR: Loading command: pristine (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method invoke_with_build_args' for nil:NilClass test-unit-2.0.0.0 ERROR: Loading command: pristine (LoadError) cannot load such file -- openssl ERROR: While executing gem ... (NoMethodError) undefined methodinvoke_with_build_args' for nil:NilClass

'gem pristine bigdecimal --version 1.2.0 io-console --version 0.4.2 json --version 1.7.7 minitest --version 4.3.2 psych --version 2.0.0 rake --version 0.9.6 rdoc --version 4.0.0 test-unit --version 2.0.0.0' failed, you need to fix this gems manually.

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