This article is a mirror article of machine translation, please click here to jump to the original article.

View: 1612|Reply: 0

[linux] CentOS 7 upgrades to gcc version

[Copy link]
Posted on 11/4/2024 3:11:01 PM | | | |
Centos 7 default gcc version is 4.8, sometimes a higher version is required, here is an example of upgrading to version 8.3.1, just execute the following three commands respectively, no need to manually download the source code compilation

1. Install centos-release-scl

2. Install devtoolset, note that if you want to install version 7.*, change it to devtoolset-7-gcc*, and so on

3. Activate the corresponding devtoolset, so you can install multiple versions of devtoolset at once, and use the following command to switch to the corresponding version when needed

That's it, check out the gcc version

Supplement: This activation commandValid for this session only, will still change back to the original version 4.8.5 after restarting the session.

Old versions:



New version:



Original:The hyperlink login is visible.





Previous:CentOS 7 upgrade make version
Next:.NET/C# elegantly sets the int value in the range of the range
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com