When I am running the command
CC=/usr/bin/gcc rbenv install 2.7.0
I get the following error:
/bin/sh: /apollo/env/SDETools/bin/perl5.10: No such file or directory
Downloading ruby-2.7.0.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.0.tar.bz2
Installing ruby-2.7.0...
BUILD FAILED (Red Hat Enterprise Linux Server release 5.3 (Tikanga)
using ruby-build 20200401-7-g637ddf3)
Inspect or clean up the working tree at /tmp/ruby-
build.20200414065728.27613.uusmlI Results logged to /tmp/ruby-
build.20200414065728.27613.log
Last 10 log lines:
thread_pthread.c:587: error: assignment of read-only variable
'condattr_monotonic' compiling time.c At top level: cc1: warning:
unrecognized command line option "-Wno-tautological-compare" cc1:
warning: unrecognized command line option "-Wno-self-assign" cc1:
warning:
unrecognized command line option "-Wno-parentheses-equality" cc1:
warning: unrecognized command line option "-Wno-constant-logical-
operand" cc1: warning: unrecognized command line option "-Wno-cast-
function-type" make: *** [thread.o] Error 1 make: *** Waiting for
unfinished jobs....
Any suggestions how to solve this? I have seen many posts but not able to solve.
gcc
is too old; you can try installing a newergcc
, but I would recommend in looking at upgrading the system. – Martin Tournoij Apr 14 '20 at 7:09