I am trying to upgrade my version of ruby running on Scientific Linux, but the command:
$ rvm install ruby-2.1.6
unable to execute this error:
checking size of long long... configure: error: in `/localdisk/home/user/.rvm/src/ruby-2.1.6': configure: error: cannot compute sizeof (long long)
I also get the same error if I try to reinstall the ruby version that was installed earlier. I don’t know what has changed, but I have another machine with very similar settings that really works. I compared the configure.log file with working and failed installations. Here are the differences:
$ diff configure_broken.log configure_working.log 1c1 < [2015-09-03 14:59:13] ./configure --- > [2015-09-03 14:41:20] ./configure 3,5c3 < GEM_HOME=/localdisk/home/user/.rvm/gems/ruby-2.1.3 < PATH=/localdisk/home/user/.rvm/gems/ruby-2.1.3/bin:/localdisk/home/user/.rvm/gems/ ruby-2.1.3@global /bin:/localdisk/home/user/.rvm/rubies/ruby-2.1.3/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/localdisk/home/user/.rvm/bin < GEM_PATH=/localdisk/home/user/.rvm/gems/ruby-2.1.3:/localdisk/home/user/.rvm/gems/ ruby-2.1.3@global --- > PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/localdisk/home/user/.rvm/bin 199,202c197,199 < checking gmp.h usability... yes < checking gmp.h presence... yes < checking for gmp.h... yes < checking for __gmpz_init in -lgmp... yes --- > checking gmp.h usability... no > checking gmp.h presence... no > checking for gmp.h... no 213,218c210,525 < checking size of int... 0 < checking size of short... 0 < checking size of long... 0 < checking size of long long... configure: error: in `/localdisk/home/user/.rvm/src/ruby-2.1.6': < configure: error: cannot compute sizeof (long long) < See `config.log' for more details --- > checking size of int... 4 > checking size of short... 2 > checking size of long... 8 > checking size of long long... 8 > checking size of __int64... 0
Both cars have exactly the same release information:
-bash-4.1$ cat /etc/*release LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch Scientific Linux release 6.5 (Carbon) Scientific Linux release 6.5 (Carbon)
I have a bit of googling experience that I did that might be related to my gcc installation. Please give me advice on how to debug and fix this. Thanks.
linux ruby configure
Eilidh troup
source share