Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Centos5.8 upgrade gcc glossy +

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Cd / etc/yum.repos.d

Wget http://people.centos.org/tru/devtools-2/devtools-2.repo

Yum install devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++

Mv / usr/bin/gcc / usr/bin/gcc.bak4.1.2

Mv / usr/bin/c++ / usr/bin/c++.bak4.1.2

Mv / usr/bin/g++ / usr/bin/g++.bak4.1.2

Ln-s / opt/rh/devtoolset-2/root/usr/bin/gcc / usr/bin/gcc

Ln-s / opt/rh/devtoolset-2/root/usr/bin/c++ / usr/bin/c++

Ln-s / opt/rh/devtoolset-2/root/usr/bin/g++ / usr/bin/g++

[root@hadoop151] # gcc-- version

Gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15)

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.

[root@hadoop151] # Gmail +-- version

Gmail + (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15)

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.

[root@hadoop151] # uname-a

Linux hadoop151 2.6.18-308.el5 # 1 SMP Fri Jan 27 17:17:51 EST 2012 x86 "64 GNU/Linux

[root@hadoop151 ~] # cat / etc/issue

Red Hat Enterprise Linux Server release 5.8 (Tikanga)

Kernel\ r on an\ m

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report