ruby-build: Ruby 2.2.0 build fails on MacOS 10.10.2
I’m consistently getting a failure trying to install Ruby 2.2.0 on Yosemite 10.10.2. I tried the recipe in post:
https://bearmetal.eu/theden/install-ruby-2-dot-2-0-yosemite-openssl-error/
but can’t get it work on my machine. I’ve installed openssl using brew and modified the PATH variable so that this version of openssl is found first.
$ openssl version -a
OpenSSL 1.0.2 22 Jan 2015
built on: reproducible build, date unspecified
platform: darwin64-x86_64-cc
options: bn(64,64) rc4(ptr,int) des(idx,cisc,16,int) idea(int) blowfish(idx)
compiler: clang -I. -I.. -I../include -fPIC -fno-common -DOPENSSL_PIC -DZLIB_SHARED -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch x86_64 -O3 -DL_ENDIAN -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM
OPENSSLDIR: "/usr/local/etc/openssl"
$ rbenv install 2.2.0
Downloading ruby-2.2.0.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/7671e394abfb5d262fbcd3b27a71bf78737c7e9347fa21c39e58b0bb9c4840fc
Installing ruby-2.2.0...
BUILD FAILED (OS X 10.10.2 using ruby-build 20150303)
Inspect or clean up the working tree at /var/folders/74/59dpfdlj6c90v3q84wn8lj8h0000gn/T/ruby-build.20150322163125.2886
Results logged to /var/folders/74/59dpfdlj6c90v3q84wn8lj8h0000gn/T/ruby-build.20150322163125.2886.log
Last 10 log lines:
ossl_ssl.c:19:35: note: expanded from macro 'numberof'
#define numberof(ary) (int)(sizeof(ary)/sizeof((ary)[0]))
^~~~~
1 warning and 9 errors generated.
make[2]: *** [ossl_ssl.o] Error 1
make[1]: *** [ext/openssl/all] Error 2
make[1]: *** Waiting for unfinished jobs....
linking shared-object psych.bundle
installing default psych libraries
I tried using rbenv to install because installing via rvm failed (with I’m pretty sure the same error).
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 17 (2 by maintainers)
Wow! I just did an ls -l on openssl and found this: