![如何在 SLES 11 SP4 SDK 中安装“可选 GCC 5.2 Suite”?](https://linux22.com/image/716616/%E5%A6%82%E4%BD%95%E5%9C%A8%20SLES%2011%20SP4%20SDK%20%E4%B8%AD%E5%AE%89%E8%A3%85%E2%80%9C%E5%8F%AF%E9%80%89%20GCC%205.2%20Suite%E2%80%9D%EF%BC%9F.png)
这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 更新的编译器?
答案1
我相信 GCC 5.2 是在创建 SDK 媒体之后提供的,因此它在 ISO 中缺失。
如果您的服务器已注册并启用了 SLE11 SP4 SDK 存储库,您应该能够执行“zypper in gcc5”来安装 GCC 5.2。
HTH,Simon(SUSE 知识合作伙伴)