I am running Archlinux and i have this error when i try to install for example 2.0.0-p647. recently my archlinux system update to openssl-1.0.2.g-3-x86_64. And i am using ruby-build with rbenv
i paste here my error:
ossl_ssl.c:141:27: error: ‘SSLv3_method’ no se declaró aquà (no en una función)
OSSL_SSL_METHOD_ENTRY(SSLv3),
^
ossl_ssl.c:119:69: nota: 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’ no se declaró aquà (no en una función)
OSSL_SSL_METHOD_ENTRY(SSLv3_server),
^
ossl_ssl.c:119:69: nota: 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’ no se declaró aquà (no en una función)
OSSL_SSL_METHOD_ENTRY(SSLv3_client),
^
ossl_ssl.c:119:69: nota: in definition of macro ‘OSSL_SSL_METHOD_ENTRY’
#define OSSL_SSL_METHOD_ENTRY(name) { #name, (SSL_METHOD *(*)(void))name##_method }
^
Makefile:293: fallo en las instrucciones para el objetivo 'ossl_ssl.o'
make[2]: *** [ossl_ssl.o] Error 1
make[2]: *** Se espera a que terminen otras tareas....
compiling ifaddr.c
make[2]: se sale del directorio '/tmp/ruby-build.20160307100641.7521/ruby-2.2.3/ext/openssl'
exts.mk:201: fallo en las instrucciones para el objetivo 'ext/openssl/all'
make[1]: *** [ext/openssl/all] Error 2
make[1]: *** Se espera a que terminen otras tareas....
installing default socket libraries
compiling init.c
checking ../.././parse.y and ../.././ext/ripper/eventids2.c
compiling constants.c
linking shared-object ripper.so
installing default ripper libraries
make[2]: se sale del directorio '/tmp/ruby-build.20160307100641.7521/ruby-2.2.3/ext/ripper'
linking shared-object socket.so
make[2]: se sale del directorio '/tmp/ruby-build.20160307100641.7521/ruby-2.2.3/ext/socket'
make[1]: se sale del directorio '/tmp/ruby-build.20160307100641.7521/ruby-2.2.3'
uncommon.mk:189: fallo en las instrucciones para el objetivo 'build-ext'
make: *** [build-ext] Error 2
Same errors with ruby 1.9.3 and openssl 1.0.2.g-3 x86_64
Unable to install older version than 2.3.4
What's 2.3.4 ? Ruby version? Please show me correct version.
And 2.0.0 and 1.9.3 is already EOL. It's not support latest version of OpenSSL.
Ok thanks
I have the same issue install 2.2.3:
Last 10 log lines:
make[2]: Leaving directory '/tmp/ianks/ruby-build.20160309110212.5131/ruby-2.2.3/ext/stringio'
checking ../.././parse.y and ../.././ext/ripper/eventids2.c
installing default ripper libraries
linking shared-object socket.so
make[2]: Leaving directory '/tmp/ianks/ruby-build.20160309110212.5131/ruby-2.2.3/ext/socket'
linking shared-object ripper.so
make[2]: Leaving directory '/tmp/ianks/ruby-build.20160309110212.5131/ruby-2.2.3/ext/ripper'
make[1]: Leaving directory '/tmp/ianks/ruby-build.20160309110212.5131/ruby-2.2.3'
uncommon.mk:189: recipe for target 'build-ext' failed
make: *** [build-ext] Error 2
OS: Arch Linux 4.1.19-1-lts kernel
OpenSSL: OpenSSL 1.0.2g 1 Mar 2016
This issues does not occur on 2.2.4.
I'm having the same issue.
@ianks for 2.2.3 the patch in the wiki works for me (on arch linux):
curl -fsSL https://gist.github.com/mislav/055441129184a1512bb5.txt | \
rbenv install --patch 2.2.3
But I'm trying to build 2.2.0 and while the above patch compiles, it then fails to run with undefined symbol: SSLv2_method...
If anyone knows of a patch that we can apply to avoid SSL forward incompatibilities, please share!
Same issue... putting a grinding halt on stuff as Gemfile https->http doesn't seem to work. Can't install new rubies either.
Downloading ruby-2.2.3.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/df795f2f99860745a416092a4004b016ccf77e8b82dec956b120f18bdc71edce
Installing ruby-2.2.3...
BUILD FAILED (Arch Linux using ruby-build 20150928-2-g717a54c)
Inspect or clean up the working tree at /tmp/ruby-build.20160330212745.5154
Results logged to /tmp/ruby-build.20160330212745.5154.log
Last 10 log lines:
exts.mk:201: recipe for target 'ext/openssl/all' failed
make[1]: *** [ext/openssl/all] Error 2
make[1]: *** Waiting for unfinished jobs....
checking ../.././parse.y and ../.././ext/ripper/eventids2.c
installing default ripper libraries
linking shared-object ripper.so
make[2]: Leaving directory '/tmp/ruby-build.20160330212745.5154/ruby-2.2.3/ext/ripper'
make[1]: Leaving directory '/tmp/ruby-build.20160330212745.5154/ruby-2.2.3'
uncommon.mk:189: recipe for target 'build-ext' failed
make: *** [build-ext] Error 2
Ok well I simply cleared the entire rbenv and ruby-build installs and did a full fresh install. Then, for me, the error doesn't show up anymore.
edit: cancel that... it was a 2.3.0 install 2.2.0 does _not_ work
I'm not sure if this is still an issue for people here, but I was able to install both Ruby 1.9.3-p448 and 551 on Arch Linux with the help of an alteration to @mislav's patch in the wiki. It's described in this post.
@papachan Please try https://github.com/rbenv/ruby-build/issues/918#issuecomment-195118848
I tried @davelens solution but I think there were some indentation error in the patch file. The following comment automate the whole process: https://bbs.archlinux.org/viewtopic.php?pid=1672186#p1672186
For convenience I'm recopying the oneliner here:
curl -fsSL https://gist.github.com/FiveYellowMice/c50490693d47577cfe7e6ac9fc3bf6cf.txt | rbenv install --patch 1.9.3-p551
Most helpful comment
I'm having the same issue.
@ianks for 2.2.3 the patch in the wiki works for me (on arch linux):
But I'm trying to build 2.2.0 and while the above patch compiles, it then fails to run with
undefined symbol: SSLv2_method...