SUSE Enterprise Linux Server 11 SP4的发行说明说:
SDK 上的可选编译器已更新至 GCC 5.2。它带来了 C++ 语言支持的改进,包括运行时库和编译器中的完整 C++11 支持以及对大多数 C++14 更改的支持。
听起来很棒!但是当我实际查看 SDK ISO 时,我在任何地方都看不到 GCC 5,只有 GCC 4.8。
# cat media.1/products
/ SUSE-Linux-Enterprise-Software-Development-Kit-11-SP4 11.4.4-1.55
# find /mnt -name '*gcc*'
/mnt/suse/x86_64/cross-spu-gcc-4.3.4_20091019-0.37.24.x86_64.rpm
/mnt/suse/x86_64/cross-spu-gcc-static-4.3.4_20091019-0.37.24.x86_64.rpm
/mnt/suse/x86_64/gcc33-fortran-32bit-3.3.3-11.9.x86_64.rpm
/mnt/suse/x86_64/gcc33-32bit-3.3.3-11.9.x86_64.rpm
/mnt/suse/x86_64/gcc33-3.3.3-11.9.x86_64.rpm
/mnt/suse/x86_64/gcc33-fortran-3.3.3-11.9.x86_64.rpm
/mnt/suse/x86_64/gcc43-fortran-32bit-4.3.4_20091019-0.37.30.x86_64.rpm
/mnt/suse/x86_64/gcc43-gij-4.3.4_20091019-0.37.46.x86_64.rpm
/mnt/suse/x86_64/gcc43-objc-4.3.4_20091019-0.37.30.x86_64.rpm
/mnt/suse/x86_64/gcc43-objc-32bit-4.3.4_20091019-0.37.30.x86_64.rpm
/mnt/suse/x86_64/gcc43-ada-4.3.4_20091019-0.37.30.x86_64.rpm
/mnt/suse/x86_64/gcc43-fortran-4.3.4_20091019-0.37.30.x86_64.rpm
/mnt/suse/x86_64/gcc43-gij-32bit-4.3.4_20091019-0.37.46.x86_64.rpm
/mnt/suse/x86_64/gcc43-java-4.3.4_20091019-0.37.46.x86_64.rpm
/mnt/suse/x86_64/gcc43-obj-c++-4.3.4_20091019-0.37.30.x86_64.rpm
/mnt/suse/x86_64/gcc48-fortran-4.8.3+r212056-2.17.x86_64.rpm
/mnt/suse/x86_64/gcc48-32bit-4.8.3+r212056-2.17.x86_64.rpm
/mnt/suse/x86_64/gcc48-4.8.3+r212056-2.17.x86_64.rpm
/mnt/suse/x86_64/gcc48-c++-4.8.3+r212056-2.17.x86_64.rpm
/mnt/suse/x86_64/gcc48-fortran-32bit-4.8.3+r212056-2.17.x86_64.rpm
/mnt/suse/x86_64/gcc48-info-4.8.3+r212056-2.17.x86_64.rpm
/mnt/suse/x86_64/gcc48-locale-4.8.3+r212056-2.17.x86_64.rpm
/mnt/suse/x86_64/gcc-ada-4.3-62.200.2.x86_64.rpm
/mnt/suse/x86_64/gcc-fortran-4.3-62.200.5.x86_64.rpm
/mnt/suse/x86_64/gcc-fortran-32bit-4.3-62.200.5.x86_64.rpm
/mnt/suse/x86_64/gcc-gij-32bit-4.3-62.200.2.x86_64.rpm
/mnt/suse/x86_64/gcc-gij-4.3-62.200.2.x86_64.rpm
/mnt/suse/x86_64/gcc-java-4.3-62.200.2.x86_64.rpm
/mnt/suse/x86_64/gcc-objc-4.3-62.200.2.x86_64.rpm
/mnt/suse/x86_64/gcc-objc-32bit-4.3-62.200.2.x86_64.rpm
/mnt/suse/x86_64/gcc-obj-c++-4.3-62.200.2.x86_64.rpm
我猜发行说明是错误的,但很乐意以其他方式显示。
SUSE 是否为 SLSE 11 提供比 SLES 11 SP4 SDK 中的 GCC 4.8 更新的编译器?
我相信 GCC 5.2 是在创建 SDK 媒体后提供的,因此 ISO 缺少它的原因。
如果您的服务器注册了启用了 SLE11 SP4 SDK 存储库,您应该能够执行“zypper in gcc5”来安装 GCC 5.2。
HTH, Simon(SUSE 知识合作伙伴)