'configure: error: cannot compute sizeof (long long)' on scientific linux when installing ruby
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