日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

RHEL5 RHEL6升级GCC

發布時間:2025/3/19 编程问答 17 豆豆
生活随笔 收集整理的這篇文章主要介紹了 RHEL5 RHEL6升级GCC 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

這里使用第三方直接編譯好的,devtoolset

5系列需要更新/etc/yum.repos.d/CentOS-Base.repo ,使用清華大學的鏡像源,或者其他鏡像源

[base] name=CentOS-$releasever - Base baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/5.11/os/$basearch/ enabled=1 gpgcheck=0[updates] name=CentOS-$releasever - Updates baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/5.11/updates/$basearch/ enabled=1 gpgcheck=0[extras] name=CentOS-$releasever - Extras baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/5.11/extras/$basearch/ enabled=1 gpgcheck=0[centosplus] name=CentOS-$releasever - Plus baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos-vault/5.11/centosplus/$basearch/ enabled=1 gpgcheck=0

然后執行

wget -O /etc/yum.repos.d/slc5-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc5-devtoolset.repo yum clean all yum install devtoolset-2 scl enable devtoolset-2 bash gcc --version

如果需要使用代理(v2RayN)

export http_proxy=http://20.0.0.1:10809

?

?

以下是原文參考

Developer Toolset

?

?


Please note: Developer Toolset v. 2.0/2.1 has been superceeded by?Developer Toolset 3.1 on SLC6/CC7

This documentation page applies only to SLC5 as of Dec 2015.


  • Developer Toolset 3.0
  • Developer Toolset 2.1
  • Developer Toolset 2.0
  • Developer Toolset 1.1
  • Installation

Developer Toolset is an offering for developers on the Scientific Linux CERN 5 and 6 platforms. Using a framework called Software Collections, an additional set of tools is installed into the /opt directory, as recommended by the UNIX Filesystem Hierarchy Standard. These tools are enabled by the user on demand using the supplied?scl?utility.

Develper Toolset packages are provided here for?TEST PURPOSE ONLY.

(More information about?Developer Toolset?on Red Hat site)

?

Please note that?ONLY?support we provide for Developer Toolset packages is related to installation / packaging problems. This product is provided AS-IS - without support.

For everything else,?please read the documentation.


Developer Toolset 3.0

?

Developer Toolset?3.0?is distributed as part of Software Collections, please read the documentation for?Software Collections.

?


Developer Toolset 2.0 updated to 2.1

?

Developer Toolset?2.1?provides new tools:

  • git?- GIT - version?1.8.4

Developer Toolset?2.1?provides also updated tools:

  • gcc/g++/gfortran?- GNU Compiler Collection - version?4.8.2
  • eclipse?- An Integrated Development Environment - version?4.3.1?(Kepler)

?

Note:?Please note 2.1 is an upgrade of 2.0 and can't be installed in parrallel.

Documentation

Developer Toolset 2.1 documentation (Local Copy)

  • 2.1 Release Notes
  • Software Collections Guide
  • User Guide

Full Developer Toolset documentation can be found?on RedHat site.

?


Developer Toolset 2.0

?

Developer Toolset?2.0?provides following tools:

  • gcc/g++/gfortran?- GNU Compiler Collection - version?4.8.1
  • gdb?- GNU Debugger - version?7.6.34
  • binutils?- A GNU collection of binary utilities - version?2.23.52
  • elfutils?- A collection of utilities and DSOs to handle compiled objects - version?0.155
  • dwz?- DWARF optimization and duplicate removal tool - version?0.11
  • systemtap?- Programmable system-wide instrumentation system - version?2.1
  • valgrind?- Tool for finding memory management bugs in programs - version?3.8.1
  • oprofile?- System wide profiler - version?0.9.8
  • eclipse?- An Integrated Development Environment - version?4.3?(Kepler)

Note:?Eclipse IDE is available?ONLY?on SLC6.

?

Documentation

Developer Toolset 2.0 documentation (Local Copy)

  • 2.0 Release Notes
  • Software Collections Guide
  • User Guide

Full Developer Toolset documentation can be found?on RedHat site.

?


Developer Toolset 1.1

?

Developer Toolset?1.1?provides following tools:

  • gcc/g++/gfortran?- GNU Compiler Collection - version?4.7.2
  • gdb?- GNU Debugger - version?7.5
  • binutils?- A GNU collection of binary utilities - version?2.23.51
  • elfutils?- A collection of utilities and DSOs to handle compiled objects - version?0.154
  • dwz?- DWARF optimization and duplicate removal tool - version?0.7
  • systemtap?- Programmable system-wide instrumentation system - version?1.8
  • valgrind?- Tool for finding memory management bugs in programs - version?3.8.1
  • oprofile?- System wide profiler - version?0.9.7

Documentation

Developer Toolset 1.1 documentation (Local Copy)

  • 1.1 Release Notes
  • Software Collections Guide
  • User Guide

Full Developer Toolset documentation can be found?on RedHat site.

?

?


Installation

?

  • Scientific Linux 6 (SLC6)
    Save repository information as?/etc/yum.repos.d/slc6-devtoolset.repo?on your system: wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo
  • Scientific Linux 5 (SLC5)
    Save repository information as?/etc/yum.repos.d/slc5-devtoolset.repo?on your system: wget -O /etc/yum.repos.d/slc5-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc5-devtoolset.repo

To install the developer toolset 2.0 run:

yum install devtoolset-2

To test installed environment:

$ scl enable devtoolset-2 bash $ gcc --version gcc (GCC) 4.8.1 20130715 (Red Hat 4.8.1-4) Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

?

To install the developer toolset 1.1 run:

yum install devtoolset-1.1

?

To test installed environment:

$ scl enable devtoolset-1.1 bash $ gcc --version gcc (GCC) 4.7.2 20121015 (Red Hat 4.7.2-5) Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

總結

以上是生活随笔為你收集整理的RHEL5 RHEL6升级GCC的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。