In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
What are the two ways to change the gcc version of debian7? for this question, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.
Method 1:
Install gcc4.4 and galleys 4.4
The code is as follows:
Sudo apt-get install gcc-4.4
Sudo apt-get isntall gathers music 4.4
Modify the version with default gcc and Gmail + of 4.4
The code is as follows:
Sudo update-alternatives-remove-all gcc
Sudo update-alternatives-install / usr/bin/gcc gcc / usr/bin/gcc-4.4 40
Sudo update-alternatives-- install / usr/bin/g++ gathers + / usr/bin/g++-4.4 40
Configure the default gcc and Gmail +
The code is as follows:
Sudo update-alternatives-config gcc
Sudo update-alternatives-- config gathers +
Method 2:
First of all, take a look at which versions of your Debian are installed with the gcc command: ls / usr/bin/gcc*-l my display is
The code is as follows:
Lrwxrwxrwx 1 root root 7 2011-08-14 15:17 / usr/bin/gcc-> gcc-4.7
-rwxr-xr-x 1 root root 224544 2011-10-06 05:47 / usr/bin/gcc-4.4
-rwxr-xr-x 1 root root 237072 2011-09-17 17:25 / usr/bin/gcc-4.5
-rwxr-xr-x 1 root root 302104 2011-09-17 05:43 / usr/bin/gcc-4.6
From the above, you can see that the default installation is gcc-4.7, now change it to gcc-4.4
Delete the soft connection file / usr/bin/gcc for gcc-4.7. (just delete the soft connection)
Command: sudo rm / usr/bin/gcc
Then make a soft connection and point to gcc-4.4.
Command: sudo ln-s / usr/bin/gcc-4.4 / usr/bin/gcc
The answers to the questions about what are the two ways to change the gcc version of debian7 are shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.