Skip to content
  1. 使用yum下载时的提示:
bash
[root@localhost /]# yum install httpd -y

已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 To enable Red Hat Subscription Management repositories:
     subscription-manager repos --enable <repo>
 To enable custom repositories:
     yum-config-manager --enable <repo>

提示

其原因是没有配置yum源

解决方法: 修改yum源

  1. 下载阿里的文件
bash
# 执行此命令时, 需确保linux系统有网络连接
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
# 清除缓存
yum clean all
# 测试
yum install gcc

源程序 ==> 词法 ==> 语法 ==> 语义 ==> 中间代码生成 ==> 代码优化 ==> 目标代码生成 ==> 目标代码

自编译技术

交叉编译技术: 一台电脑上编写的源程序, 可以直接在另一台电脑上运行

Released under the MIT License.