Please notice below method is outdated and ruby core team confirm it’s a bug
Today ruby core team release the 3.1.3 and 3.0.5 patch version, but when I install it on CentOS 7, I got the below errors:
|
After do some research, I found it works in AWS linux (gcc (GCC) 7.3.1 20180712 (Red Hat 7.3.1-15)) and Ubuntu (gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0) smoothly, but CentOS 7 will always failed. (gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44))
So I guess probably it’s relative with the old stock gcc version of CentOS 7, luckily new gcc can be installed in CentOS 7 easily.
|
Hoping this article can save you at least half day time and having a nice day!