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
- Demonstrate that one can use RUBY_CONFIGURE to apply a patch References #443 — committed to rbenv/ruby-build by mislav 11 years ago
- fix #443: add package "1.9.3-p448-fc19" to install Ruby v1.9.3-p448 on Fedora 19 This packages patches ruby sources with https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/41808/diff... — committed to ashumkin/ruby-build by ashumkin 11 years ago
- Add `--patch` flag to apply a Ruby patch from stdin If `-p|--patch` flag was set while invoking `ruby-build` or `rbenv install`, ruby-build will use `patch -p0 -i -` to apply a patch from stdin to Ru... — committed to rbenv/ruby-build by mislav 11 years ago
- Merge pull request #1 from ashumkin/fix-for-Fedora-19 fix #443: add package "1.9.3-p448-fc19" to install Ruby v1.9.3-p448 o… — committed to amaysim-au/ruby-build by isaac-gittins 9 years ago
- Apply #443 patch to build Ruby 2.0.0-p247-amz — committed to amaysim-au/ruby-build by isaac-gittins 9 years ago
- Merge pull request #2 from amaysim-au/patch-2.0.0-p247 Apply #443 patch to build Ruby 2.0.0-p247-amz — committed to amaysim-au/ruby-build by isaac-gittins 9 years ago
@supervacuo Thanks! That worked great. For anyone else who comes along, this patch also works for 1.8.7-p352:
For the record, this install worked on CentOS.
For
1.8.7-p375
I neededThanks @ivanelian, @lzap etc.