'configure: error: cannot compute sizeof (long long)' on scientific linux when installing ruby 'configure: error: cannot compute sizeof (long long)' on scientific linux when installing ruby linux linux

'configure: error: cannot compute sizeof (long long)' on scientific linux when installing ruby


I've had the same issue (configure: error: cannot compute sizeof (long long)), while building ruby 2.7.2. On debian. Fixed by installing binutils:

apt-get install -y binutils


You can view the log output of the configure call in the config.log file in the build directory (e.g. /var/folders/fm/fn9fyfm10n7ch34843lcg1t80000gy/T/ruby-build.20180328150122.9202/ruby-2.3.1).

In my case the error was something like:

In file included from /usr/local/include/stdint.h:59:/usr/local/include/stdint.h:2:10: error: #include nested too deeply#include <stddef.h>         ^/usr/local/include/stdint.h:59:11: error: #include nested too deeply# include <stdint.h>          ^/usr/local/include/stdint.h:72:11: error: #include nested too deeply# include <sys/types.h>          ^/usr/local/include/stdint.h:76:10: error: #include nested too deeply#include <limits.h>         ^/usr/local/include/stdint.h:82:11: error: #include nested too deeply# include <inttypes.h>          ^5 errors generated.configure:11616: $? = 1configure: program exited with status 1