?
class="ruby" name="code">rvm install 1.8.7
?
会获得以下错误
?
showing last 15 lines of /Users/gaolei/.rvm/log/1501493685_ruby-1.8.7-p374/make.log ^ openssl_missing.c:107:28: error: dereferencing pointer to incomplete type EVP_MD_CTX_cleanup(&ctx->o_ctx); ^ openssl_missing.c:108:28: error: dereferencing pointer to incomplete type EVP_MD_CTX_cleanup(&ctx->md_ctx); ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:192:0, from openssl_missing.c:19: openssl_missing.c:109:27: error: invalid application of 'sizeof' to incomplete type 'HMAC_CTX' memset(ctx, 0, sizeof(HMAC_CTX)); ^ make[1]: *** [openssl_missing.o] Error 1 make: *** [all] Error 1 +++ return 2 There has been an error while running make. Halting the installation.
?
采用
?
rvm install 1.8.7 --with-openssl-dir=`brew --prefix openssl`
?