In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Today, the editor will share with you the relevant knowledge points about how to solve the problem of installing gcc in centos6 yum. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article.
Installation of redis depends on gcc
But yum install gcc cannot execute.
YumRepo Error: All mirror URLs are not using ftp, http [s] or file
After searching the Internet for a long time, it was found that the official support of centos6 had been stopped at the end of last year.
And all official centos6 sources have been removed from the shelves. Currently, centos6 sources such as Ali, 163and Tsinghua are no longer available.
Solution:
1. Update the yum source:
Wget-O / etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
Update only or not execute the yum command, a 404 error will be reported
two。 404 Not Found solution after modifying the yum source:
Back up the configuration file to prevent it from being difficult to recover after an error
Mv / etc/yum.repos.d/CentOS-Base.repo / etc/yum.repos.d/CentOS-Base.repo.bak
Execute the following command to create a new CentOS-Base.repo configuration:
Vim / etc/yum.repos.d/CentOS-Base.repo
Copy and paste the following command
[centos-office]
Name=centos-office
Failovermethod=priority
Baseurl= https://vault.centos.org/6.10/os/x86_64/
Gpgcheck=1
Gpgkey= https://vault.centos.org/6.10/os/x86_64/RPM-GPG-KEY-CentOS-6
Exit after saving
Execute yum list normally without error
At this point, you can use the yum command normally.
These are all the contents of this article entitled "how to solve the problem of installing gcc in centos6 yum". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.