OS X 10.1.1 ์คํ, ํ์ฌ rbenv 2.1.4 ์ค์น
> brew update && brew upgrade ruby-build
> rbenv install 2.1.5
Downloading ruby-2.1.5.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/4305cc6ceb094df55210d83548dcbeb5117d74eea25196a9b14fa268d354b100
Installing ruby-2.1.5...
BUILD FAILED (OS X 10.10.1 using ruby-build 20141113)
Inspect or clean up the working tree at /var/folders/qv/jbvzshbs76n4tqm3w4mfcx680000gn/T/ruby-build.20141127071426.92947
Results logged to /var/folders/qv/jbvzshbs76n4tqm3w4mfcx680000gn/T/ruby-build.20141127071426.92947.log
Last 10 log lines:
make[1]: *** [ext/openssl/all] Error 2
make[1]: *** Waiting for unfinished jobs....
installing default readline libraries
checking ../.././parse.y and ../.././ext/ripper/eventids2.c
linking shared-object readline.bundle
linking shared-object psych.bundle
installing default psych libraries
installing default ripper libraries
linking shared-object ripper.bundle
make: *** [build-ext] Error 2
====== from build log ...
compiling ossl_asn1.c
In file included from openssl_missing.c:22:
./openssl_missing.h:71:6: error: conflicting types for 'HMAC_CTX_copy'
void HMAC_CTX_copy(HMAC_CTX *out, HMAC_CTX *in);
^
/usr/include/openssl/hmac.h:102:5: note: previous declaration is here
int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx);
^
In file included from openssl_missing.c:22:
./openssl_missing.h:95:5: error: conflicting types for 'EVP_CIPHER_CTX_copy'
int EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, EVP_CIPHER_CTX *in);
^
/usr/include/openssl/evp.h:502:5: note: previous declaration is here
int EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in);
^
openssl_missing.c:26:1: error: conflicting types for 'HMAC_CTX_copy'
HMAC_CTX_copy(HMAC_CTX *out, HMAC_CTX *in)
^
/usr/include/openssl/hmac.h:102:5: note: previous declaration is here
int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx);
^
openssl_missing.c:121:1: error: conflicting types for 'EVP_CIPHER_CTX_copy'
EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, EVP_CIPHER_CTX *in)
^
/usr/include/openssl/evp.h:502:5: note: previous declaration is here
int EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in);
^
4 errors generated.
make[2]: *** [openssl_missing.o] Error 1
make[2]: *** Waiting for unfinished jobs....
๋ค์ ๊ฒฐ๊ณผ๋ฅผ ๋ณด๊ณ ํ ์ ์์ต๋๊น?
for openssl in `which -a openssl`; do echo $openssl `$openssl version | head -1`; done
Homebrew๋ ๋ช ๊ฐ์ง ๋ฐฉ๋ฒ์ผ๋ก Yosemite(OSX 10.10.1์ ์๋ฏธํ๋ ๊ฒ ๊ฐ์ต๋๋ค)์์ Ruby๋ฅผ ์ค๋จํฉ๋๋ค.
brew uninstall ruby
๊ทธ๋ฐ ๋ค์ ๋ค์ ์๋ํ์ญ์์ค. rbenv ๋๋ rvm์์ ์ ๊ณตํ๋ ๋ฃจ๋น๋ฅผ ์ฌ์ฉํ์ง๋ง ํ์ฌ ์ ์ฌ์๋์ง ์๋ Homebrew์ ํจ๊ป python์ด๋ ruby๋ฅผ ์ค์นํ์ง ๋ง์ญ์์ค.
๋ํ Ruby 2๋ Yosemite์ ํจ๊ป ์ ๊ณต๋๋ฏ๋ก rbenv(brew๋ก ์ค์นํ ์ ์์)๊ฐ ์๋ํ๋๋ก ํ๋ ๋ฐ ๋ฌธ์ ๊ฐ ์์ด์ผ ํฉ๋๋ค.
@erwin ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ์ จ์ต๋๊น?
๋ถ์ค๋ก ์ธํด ํ์ํฉ๋๋ค. ์ถ๊ฐ ๋ณด๊ณ ์๋ ๋์ https://github.com/sstephenson/ruby-build/issues tracker๋ก ์ด๋ํด์ผ ํฉ๋๋ค. ๊ฐ์ฌ ํด์!
๋๊ตฐ๊ฐ๊ฐ ์ด๊ฒ์ ์ฐ์ฐํ ๋ฐ๊ฒฌํ๋ฉด - ์ด๊ฒ์ ๋๋ฅผ ์ํด ์ผํ์ต๋๋ค : https://github.com/rbenv/ruby-build/issues/1489
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๋๊ตฐ๊ฐ๊ฐ ์ด๊ฒ์ ์ฐ์ฐํ ๋ฐ๊ฒฌํ๋ฉด - ์ด๊ฒ์ ๋๋ฅผ ์ํด ์ผํ์ต๋๋ค : https://github.com/rbenv/ruby-build/issues/1489