ruby-build: Can't install on Fedora

Tried to install ruby 2.0.0-p427 and 1.9.3-p448 on a Fedora Linux, got issues in both and just can’t made it work. I also can’t install rubinius because it dependes on a ruby 2.0.0 installed.

The error is basically the same:

compiling ossl_x509req.c
installing default readline libraries
linking shared-object readline.so
make[2]: Leaving directory `/tmp/ruby-build.20131029140734.31023/ruby-2.0.0-p247/ext/readline'
make[2]: Entering directory `/tmp/ruby-build.20131029140734.31023/ruby-2.0.0-p247/ext/sdbm'
compiling _sdbm.c
ossl_pkey_ec.c: In function ‘ossl_ec_group_initialize’:
ossl_pkey_ec.c:766:17: warning: implicit declaration of function ‘EC_GF2m_simple_method’ [-Wimplicit-function-declaration]
                 method = EC_GF2m_simple_method();
                 ^
ossl_pkey_ec.c:766:24: warning: assignment makes pointer from integer without a cast [enabled by default]
                 method = EC_GF2m_simple_method();
                        ^
ossl_pkey_ec.c:821:29: error: ‘EC_GROUP_new_curve_GF2m’ undeclared (first use in this function)
                 new_curve = EC_GROUP_new_curve_GF2m;
                             ^
ossl_pkey_ec.c:821:29: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [ossl_pkey_ec.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Entering directory `/tmp/ruby-build.20131029140734.31023/ruby-2.0.0-p247/ext/socket'
generating constant definitions
generating constant definitions
compiling basicsocket.c
compiling init.c
make[2]: Leaving directory `/tmp/ruby-build.20131029140734.31023/ruby-2.0.0-p247/ext/openssl'
make[1]: *** [ext/openssl/all] Error 2
make[1]: *** Waiting for unfinished jobs....
installing default sdbm libraries
compiling socket.c
checking ../.././parse.y and ../.././ext/ripper/eventids2.c
installing default ripper libraries
compiling ipsocket.c
compiling tcpsocket.c
sdbm.so
make[2]: Leaving directory `/tmp/ruby-build.20131029140734.31023/ruby-2.0.0-p247/ext/sdbm'
compiling sockssocket.c
compiling udpsocket.c
compiling unixsocket.c
compiling unixserver.c
compiling option.c
linking shared-object ripper.so
make[2]: Leaving directory `/tmp/ruby-build.20131029140734.31023/ruby-2.0.0-p247/ext/ripper'
compiling ancdata.c
compiling raddrinfo.c
compiling init.c
compiling constants.c
installing default socket libraries
linking shared-object socket.so
make[2]: Leaving directory `/tmp/ruby-build.20131029140734.31023/ruby-2.0.0-p247/ext/socket'
make[1]: Leaving directory `/tmp/ruby-build.20131029140734.31023/ruby-2.0.0-p247'
make: *** [build-ext] Error 2

BUILD FAILED

Inspect or clean up the working tree at /tmp/ruby-build.20131029140734.31023
Results logged to /tmp/ruby-build.20131029140734.31023.log

Last 10 log lines:
make[2]: Leaving directory `/tmp/ruby-build.20131029140734.31023/ruby-2.0.0-p247/ext/ripper'
compiling ancdata.c
compiling raddrinfo.c
compiling init.c
compiling constants.c
installing default socket libraries
linking shared-object socket.so
make[2]: Leaving directory `/tmp/ruby-build.20131029140734.31023/ruby-2.0.0-p247/ext/socket'
make[1]: Leaving directory `/tmp/ruby-build.20131029140734.31023/ruby-2.0.0-p247'
make: *** [build-ext] Error 2

My PATH: /usr/local/heroku/bin:./bin:/home/carlos/.rbenv/shims:/usr/local/bin:/usr/local/sbin:/home/carlos/.sfs:/home/carlos/.dotfiles/bin:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/home/carlos/bin:/usr/local/sbin:/usr/sbin:/usr/java/latest/bin:/usr/java/latest/bin:/home/carlos/.rbenv/bin:/opt/node/bin:/opt/node/deps/npm/bin

Not sure what’s happening. I believe I have all needed libs installed.

About this issue

  • Original URL
  • State: closed
  • Created 11 years ago
  • Comments: 30 (8 by maintainers)

Commits related to this issue

Most upvoted comments

@supervacuo Thanks! That worked great. For anyone else who comes along, this patch also works for 1.8.7-p352:

$ curl https://bugs.ruby-lang.org/attachments/download/3707/out.patch | filterdiff -x a/test/openssl/test_pkey_ec.rb | rbenv install 1.8.7-p352 --patch

For the record, this install worked on CentOS.

For 1.8.7-p375 I needed

$ curl https://bugs.ruby-lang.org/attachments/download/3707/out.patch | filterdiff -x a/test/openssl/test_pkey_ec.rb | rbenv install 1.8.7-p375 --patch

Thanks @ivanelian, @lzap etc.