{"id":123,"date":"2020-10-26T12:03:08","date_gmt":"2020-10-26T04:03:08","guid":{"rendered":"https:\/\/www.92k.xin\/?p=123"},"modified":"2020-10-26T14:36:20","modified_gmt":"2020-10-26T06:36:20","slug":"centos7%e4%b8%8bmysql8-%e5%ae%89%e8%a3%85%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/www.92k.xin\/?p=123","title":{"rendered":"CentOS7\u4e0bMysql8 \u5b89\u88c5\u811a\u672c"},"content":{"rendered":"\n
Mysql8\u5b89\u88c5\u9700\u8981\u9ad8\u7248\u672c\u7684GCC\uff0cCentOS7\u4e0b\u9762\u7684GCC\u7248\u672c\u4e3a4.8.3\uff0c\u4e3a\u4e86\u65b9\u4fbf\uff0c\u6211\u4eec\u7528yum\u7684SCL\u6765\u5347\u7ea7GCC\u3002<\/p>\n\n\n\n
scl\u8f6f\u4ef6\u96c6(Software Collections),\u662f\u4e3a\u4e86\u7ed9 RHEL\/CentOS \u7528\u6237\u63d0\u4f9b\u4e00\u79cd\u4ee5\u65b9\u4fbf\u3001\u5b89\u5168\u5730\u5b89\u88c5\u548c\u4f7f\u7528\u5e94\u7528\u7a0b\u5e8f\u548c\u8fd0\u884c\u65f6\u73af\u5883\u7684\u591a\u4e2a\uff08\u800c\u4e14\u53ef\u80fd\u662f\u66f4\u65b0\u7684\uff09\u7248\u672c\u7684\u65b9\u5f0f\uff0c\u540c\u65f6\u907f\u514d\u628a\u7cfb\u7edf\u641e\u4e71\u3002<\/p>\n\n\n\n
yum install centos-release-scl scl-utils-build<\/pre><\/div>\n\n\n\n\u5347\u7ea7\u4e4b\u540e\uff0c\u6211\u4eec\u6765\u770b\u4e0b\u6709\u54ea\u4e9bGCC\u53ef\u4ee5\u4f7f\u7528\u7684\u3002<\/p>\n\n\n\n
\u6267\u884c\u547d\u4ee4\uff1a <\/p>\n\n\n\n
yum list all --enablerepo='centos-sclo-rh'|grep gcc<\/pre>\n\n\n\n\u663e\u793a\u5982\u4e0b\uff1a<\/p>\n\n\n\n
libgcc.x86_64 4.8.5-39.el7 @anaconda \ncompat-gcc-44.x86_64 4.4.7-8.el7 base \ncompat-gcc-44-c++.x86_64 4.4.7-8.el7 base \ncompat-gcc-44-gfortran.x86_64 4.4.7-8.el7 base \ndevtoolset-7-gcc.x86_64 7.3.1-5.16.el7 centos-sclo-rh\ndevtoolset-7-gcc-c++.x86_64 7.3.1-5.16.el7 centos-sclo-rh\ndevtoolset-7-gcc-gdb-plugin.x86_64 7.3.1-5.16.el7 centos-sclo-rh\ndevtoolset-7-gcc-gfortran.x86_64 7.3.1-5.16.el7 centos-sclo-rh\ndevtoolset-7-gcc-plugin-devel.x86_64 7.3.1-5.16.el7 centos-sclo-rh\ndevtoolset-7-libgccjit.x86_64 7.3.1-5.16.el7 centos-sclo-rh\ndevtoolset-7-libgccjit-devel.x86_64 7.3.1-5.16.el7 centos-sclo-rh\ndevtoolset-7-libgccjit-docs.x86_64 7.3.1-5.16.el7 centos-sclo-rh\ndevtoolset-8-gcc.x86_64 8.3.1-3.2.el7 centos-sclo-rh\ndevtoolset-8-gcc-c++.x86_64 8.3.1-3.2.el7 centos-sclo-rh\ndevtoolset-8-gcc-gdb-plugin.x86_64 8.3.1-3.2.el7 centos-sclo-rh\ndevtoolset-8-gcc-gfortran.x86_64 8.3.1-3.2.el7 centos-sclo-rh\ndevtoolset-8-gcc-plugin-devel.x86_64 8.3.1-3.2.el7 centos-sclo-rh\ndevtoolset-8-libgccjit.x86_64 8.3.1-3.2.el7 centos-sclo-rh\ndevtoolset-8-libgccjit-devel.x86_64 8.3.1-3.2.el7 centos-sclo-rh\ndevtoolset-8-libgccjit-docs.x86_64 8.3.1-3.2.el7 centos-sclo-rh\ndevtoolset-9-gcc.x86_64 9.3.1-2.el7 centos-sclo-rh\ndevtoolset-9-gcc-c++.x86_64 9.3.1-2.el7 centos-sclo-rh\ndevtoolset-9-gcc-gdb-plugin.x86_64 9.3.1-2.el7 centos-sclo-rh\ndevtoolset-9-gcc-gfortran.x86_64 9.3.1-2.el7 centos-sclo-rh\ndevtoolset-9-gcc-plugin-devel.x86_64 9.3.1-2.el7 centos-sclo-rh\ndevtoolset-9-libgccjit.x86_64 9.3.1-2.el7 centos-sclo-rh\ndevtoolset-9-libgccjit-devel.x86_64 9.3.1-2.el7 centos-sclo-rh\ndevtoolset-9-libgccjit-docs.x86_64 9.3.1-2.el7 centos-sclo-rh\ngcc.x86_64 4.8.5-39.el7 base \ngcc-c++.x86_64 4.8.5-39.el7 base \ngcc-gfortran.x86_64 4.8.5-39.el7 base \ngcc-gnat.x86_64 4.8.5-39.el7 base \ngcc-go.x86_64 4.8.5-39.el7 base \ngcc-objc.x86_64 4.8.5-39.el7 base \ngcc-objc++.x86_64 4.8.5-39.el7 base \ngcc-plugin-devel.x86_64 4.8.5-39.el7 base \nlibgcc.i686 4.8.5-39.el7 base \nrelaxngcc.noarch 1.12-6.el7 base \nrelaxngcc-javadoc.noarch 1.12-6.el7 base<\/pre><\/div>\n\n\n\n\u6211\u4eec\u5b89\u88c5\u4e00\u4e2a\u9ad8\u7248\u672c\u7684GCC<\/p>\n\n\n\n
yum -y install devtoolset-9-gcc.x86_64 devtoolset-9-gcc-c++.x86_64 devtoolset-9-gcc-gdb-plugin.x86_64 devtoolset-9-gcc-plugin-devel.x86_64<\/pre><\/div>\n\n\n\n\u6211\u4eec\u673a\u5668\u56e0\u4e3a\u65b0\u88c5\u6ca1\u6709gcc\u547d\u4ee4\uff0c\u4e0b\u9762\u6211\u4eec\u901a\u8fc7SCL\u542f\u7528GCC\u7684\u9ad8\u7248\u672c<\/p>\n\n\n\n
scl enable devtoolset-9 bash<\/p>\n\n\n\n
\u4e0b\u9762\u6211\u4eec\u6765\u770b\u4e0bGCC\u7684\u7248\u672c<\/p>\n\n\n\n