osx - Error running '__rvm_make -j 1' during rvm Ruby installation | openssl error -
you searching error running '__rvm_make -j 1'
says, went wrong while compiling ruby. question relevant if openssl
and/or ossl_ssl
part of error message.
maybe problem similar 1 , can solve problem customizations.
background
today wanted delete gems of project forgot specify path bundler beforehand gems installed in ~/.rvm/gems/ruby-2.2.4/gems/
.
as it's ruby 2.2.4 project though rm -rf ~/.rvm/gems/ruby-2.2.4/gems/*
fine. wasn't. bundler gone , gem install bundler
didn't worked anymore well.
i removed hole ruby installation rvm remove ruby-2.2.4
ant tried reinstall it. console output error got:
console output
> rvm install ruby-2.2.4 searching binary rubies, might take time. no binary rubies available for: osx/10.11/x86_64/ruby-2.2.4. continuing compilation. please read 'rvm mount' more information on binary rubies. checking requirements osx. certificates in '/usr/local/etc/openssl/cert.pem' date. requirements installation successful. installing ruby source to: /users/fkammer/.rvm/rubies/ruby-2.2.4, may take while depending on cpu(s)... ruby-2.2.4 - #downloading ruby-2.2.4, may take while depending on connection... % total % received % xferd average speed time time time current dload upload total spent left speed 100 12.7m 100 12.7m 0 0 655k 0 0:00:19 0:00:19 --:--:-- 234k no checksum downloaded archive, recording checksum in user configuration. ruby-2.2.4 - #extracting ruby-2.2.4 /users/fkammer/.rvm/src/ruby-2.2.4.... ruby-2.2.4 - #configuring.......................................................... ruby-2.2.4 - #post-configuration. ruby-2.2.4 - #compiling.............................................................. error running '__rvm_make -j 1', showing last 15 lines of /users/fkammer/.rvm/log/1456431932_ruby-2.2.4/make.log ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ossl_ssl.c:19:35: note: expanded macro 'numberof' #define numberof(ary) (int)(sizeof(ary)/sizeof((ary)[0])) ^~~~~ ossl_ssl.c:2217:21: error: invalid application of 'sizeof' incomplete type 'const struct (anonymous struct @ ossl_ssl.c:115:14) []' (i = 0; < numberof(ossl_ssl_method_tab); i++) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ossl_ssl.c:19:35: note: expanded macro 'numberof' #define numberof(ary) (int)(sizeof(ary)/sizeof((ary)[0])) ^~~~~ 9 errors generated. make[2]: *** [ossl_ssl.o] error 1 make[1]: *** [ext/openssl/all] error 2 make: *** [build-ext] error 2 ++ return 2 there has been error while running make. halting installation.
retrying not change anything. tried uninstall rvm (rvm implode
) , reinstall neither successful.
system
mac os x – el capitan (10.11.3)
rvm 1.26.11 (latest)
homebrew 0.9.5
looks there problem openssl.
rvm uses homebrew package manager on installation (it's default guess). can ensure rvm autolibs homebrew
.
i reinstalled openssl with
brew reinstall openssl
and saw via brew list
there openssl package called openssl098 installed on system. trying reinstall caused following error:
> brew reinstall openssl098 error: no available formula name "openssl098"
i removed package with
brew uninstall --force openssl098
and reinstalled openssl again sure openssl098 wasn't needed dependency. wasn't installed again.
afterwards tried installing ruby-2.2.4 via rvm again , worked charm :) guess openssl package broken reason.
Comments
Post a Comment