Mac10.12.6 rvm 安装1.8.7_Ruby_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > Ruby > Mac10.12.6 rvm 安装1.8.7

Mac10.12.6 rvm 安装1.8.7

 2017/7/31 19:38:47  snow_14  程序员俱乐部  我要评论(0)
  • 摘要:rvminstall1.8.7会获得以下错误showinglast15linesof/Users/gaolei/.rvm/log/1501493685_ruby-1.8.7-p374/make.log^openssl_missing.c:107:28:error:dereferencingpointertoincompletetypeEVP_MD_CTX_cleanup(&ctx->o_ctx);^openssl_missing.c:108:28:error
  • 标签:安装 Mac RVM

?

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`

?

发表评论
用户名: 匿名