openssl - rbenv : BUILD FAILED when Install Ruby 2.2.3 on UBUNTU 14.04 (x86_64) -
i trying install ruby 2.2.3, have installed ruby 2.2.2,
rbenv versions system * 2.2.2 (set /home/emen/.ruby-version) jruby-1.7.20 jruby-9.0.0.0.pre2build
i got problem when tried install ruby 2.2.3, got build failed below :
rbenv install 2.2.3 downloading ruby-2.2.3.tar.bz2... -> https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.3.tar.bz2 installing ruby-2.2.3... build failed (ubuntu 14.04 using ruby-build 20160111-27-g06f1254) inspect or clean working tree @ /tmp/ruby-build.20160127112741.26444 results logged /tmp/ruby-build.20160127112741.26444.log
i have inspected log, copy part of suspect since checking , compiling process fine :
linking shared-object objspace.so make[2]: leaving directory `/tmp/ruby-build.20160127112741.26444/ruby-2.2.3/ext/objspace' compiling ossl_ssl.c make[2]: entering directory `/tmp/ruby-build.20160127112741.26444/ruby-2.2.3/ext/pathname' compiling pathname.c ossl_ssl.c:141:27: error: ‘sslv3_method’ undeclared here (not in function) ossl_ssl_method_entry(sslv3), ^ ossl_ssl.c:119:69: note: in definition of macro ‘ossl_ssl_method_entry’ #define ossl_ssl_method_entry(name) { #name, (ssl_method *(*)(void))name##_method } ^ ossl_ssl.c:142:27: error: ‘sslv3_server_method’ undeclared here (not in function) ossl_ssl_method_entry(sslv3_server), ^ ossl_ssl.c:119:69: note: in definition of macro ‘ossl_ssl_method_entry’ #define ossl_ssl_method_entry(name) { #name, (ssl_method *(*)(void))name##_method } ^ ossl_ssl.c:143:27: error: ‘sslv3_client_method’ undeclared here (not in function) ossl_ssl_method_entry(sslv3_client), ^ ossl_ssl.c:119:69: note: in definition of macro ‘ossl_ssl_method_entry’ #define ossl_ssl_method_entry(name) { #name, (ssl_method *(*)(void))name##_method } ^ make[2]: *** [ossl_ssl.o] error 1 make[2]: leaving directory `/tmp/ruby-build.20160127112741.26444/ruby-2.2.3/ext/openssl' make[1]: *** [ext/openssl/all] error 2 make[1]: *** waiting unfinished jobs.... installing default pathname libraries linking shared-object date_core.so make[2]: leaving directory `/tmp/ruby-build.20160127112741.26444/ruby-2.2.3/ext/date' linking shared-object pathname.so make[2]: leaving directory `/tmp/ruby-build.20160127112741.26444/ruby-2.2.3/ext/pathname' linking shared-object nkf.so make[2]: leaving directory `/tmp/ruby-build.20160127112741.26444/ruby-2.2.3/ext/nkf' make[1]: leaving directory `/tmp/ruby-build.20160127112741.26444/ruby-2.2.3' make: *** [build-ext] error 2
i have tried follow rbenv install ruby build failed
i have run :
sudo apt-get install libffi-dev
or
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
and
curl -fssl https://gist.github.com/ekr1/7313abef4348daa038dd.txt | rbenv install --patch 2.2.3
but still no luck, might miss something, appreciating help. thanks!
i have fixed build failed patching https://gist.github.com/mislav/055441129184a1512bb5/
executed :
curl -fssl https://gist.github.com/mislav/055441129184a1512bb5.txt | rbenv install --patch 2.2.3
Comments
Post a Comment