openmpi3-devel 安装gcc-11 yum install -y centos-release-scl yum install -y devtoolset-11-gcc* ln -s /opt/rh/devtoolset -11/root/bin/gcc /usr/bin/gcc-11 ln -s /opt/rh/devtoolset-11/root/bin/g++ /usr/bin/g++-11 编译运行 从 https devel RUN yum install -y centos-release-scl RUN yum install -y devtoolset-11-gcc* RUN ln -s /opt/rh/devtoolset -11/root/bin/gcc /usr/bin/gcc-11 RUN ln -s /opt/rh/devtoolset-11/root/bin/g++ /usr/bin/g++-11 export
centos-release-sclyum -y install devtoolset-11-gcc devtoolset-11-gcc-c++ devtoolset-11-binutilsscl enable devtoolset -11 bash source /opt/rh/devtoolset-11/enable
-name config.h`在/etc/profile中配置```bashexport CPLUS_INCLUDE_PATH=:/opt/rh/devtoolset-11/root/usr/include /c++/11/x86_64-redhat-linux:/usr/include/export C_INCLUDE_PATH=:/opt/rh/devtoolset-11/root/usr/include
ncurses-devel \ bison # 安装 gdb yum -y install devtoolset-11-gdb # 让 scl 环境临时生效 source /opt/rh/devtoolset -11/enable # 让 scl 环境永久生效 vi /etc/profile.d/scl.sh # 把以下内容写入 scl.sh,然后保存退出 source /opt/rh/devtoolset
安装centos-release-scl yum install centos-release-scl -y yum install devtoolset-11-gcc* -y scl enable devtoolset
)’ explicitly defaulted here 7 | Car() = default; | ^~~ In file included from /opt/rh/devtoolset
percona pg rpm包安装,执行下yum install -y percona-postgresql15-devel即可) 2、如果make编译报错,可能需要安装高版本的gcc (我这里用的是devtoolset
finish_transaction_in_engines ( thd=thd@entry=0x7ff743326ca0, all=false, run_after_commit=false) at /opt/rh/devtoolset -11/root/usr/include/c++/11/bits/unique_ptr.h:421 421 /opt/rh/devtoolset-11/root/usr/include/c++/ finish_transaction_in_engines ( thd=thd@entry=0x7ff743326ca0, all=false, run_after_commit=false) at /opt/rh/devtoolset
最初怀疑是GDB版本过低,安装devtoolset-11并使用高版本GDB后问题依旧。