- 浏览: 600979 次
- 性别:
- 来自: 杭州
文章分类
最新评论
-
oldrat:
还给出了 给出“对于多条A记录是采用什么策略返回IP”的结论, ...
【转载】关于java dns cache (域名缓存时间) -
snowing0427:
特地登录来感谢一下楼主~!!!
nginx里的break和last -
夏日小草:
403禁止了。
User Agent信息大全 -
uag:
比如从请求头里的$HOST变量里获取。(针对nginx,需要加 ...
nginx替换apache中的一个跳转问题 -
thinktothings:
修改Makefile文件 在哪,怎么修改?
使用sz,rz命令来上传和下载文件
今天刚拿到一台新机器,系统为Red Hat Enterprise Linux Server release 5.4 (Tikanga)。
RHEL5.4系统已经安装好yum软件,但是没有配置yum源,
/ete/yum.repos.d/目录里只有一个create_yum_repo_yourself.repo文件,内容为空。
很明显,是需要我们自己配置yum源的。
在网上搜了一下,找到了这个yum源配置:
需要在/ete/yum.repos.d/目录下新建三个文件,
写道
mirrors-rpmforge rhel-debuginfo.repo rpmforge.repo
内容如下:
mirrors-rpmforge 写道
http://apt.sw.be/redhat/el5/en/$ARCH/dag
http://archive.cs.uu.nl/mirror/dag.wieers/redhat/el5/en/$ARCH/dag
http://ftp2.lcpe.uni-sofia.bg/freshrpms/pub/dag/redhat/el5/en/$ARCH/dag
#http://ftp.heanet.ie/pub/freshrpms/pub/dag/redhat/el5/en/$ARCH/dag
http://ftp-stud.fht-esslingen.de/dag/redhat/el5/en/$ARCH/dag
http://mirror.cpsc.ucalgary.ca/mirror/dag/redhat/el5/en/$ARCH/dag
http://mirrors.ircam.fr/pub/dag/redhat/el5/en/$ARCH/dag
http://rh-mirror.linux.iastate.edu/pub/dag/redhat/el5/en/$ARCH/dag
http://rpmfind.net/linux/dag/redhat/el5/en/$ARCH/dag
http://wftp.tu-chemnitz.de/pub/linux/dag/redhat/el5/en/$ARCH/dag
http://www.mirrorservice.org/sites/apt.sw.be/redhat/el5/en/$ARCH/dag
http://archive.cs.uu.nl/mirror/dag.wieers/redhat/el5/en/$ARCH/dag
http://ftp2.lcpe.uni-sofia.bg/freshrpms/pub/dag/redhat/el5/en/$ARCH/dag
#http://ftp.heanet.ie/pub/freshrpms/pub/dag/redhat/el5/en/$ARCH/dag
http://ftp-stud.fht-esslingen.de/dag/redhat/el5/en/$ARCH/dag
http://mirror.cpsc.ucalgary.ca/mirror/dag/redhat/el5/en/$ARCH/dag
http://mirrors.ircam.fr/pub/dag/redhat/el5/en/$ARCH/dag
http://rh-mirror.linux.iastate.edu/pub/dag/redhat/el5/en/$ARCH/dag
http://rpmfind.net/linux/dag/redhat/el5/en/$ARCH/dag
http://wftp.tu-chemnitz.de/pub/linux/dag/redhat/el5/en/$ARCH/dag
http://www.mirrorservice.org/sites/apt.sw.be/redhat/el5/en/$ARCH/dag
rhel-debuginfo.repo 写道
[base]
name=CentOS-5 - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch&
repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://ftp.sjtu.edu.cn/centos/5/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#released updates
[update]
name=CentOS-5 - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates
baseurl=http://ftp.sjtu.edu.cn/centos/5/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addons
baseurl=http://ftp.sjtu.edu.cn/centos/5/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=extras
baseurl=http://ftp.sjtu.edu.cn/centos/5/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=centosplus
baseurl=http://ftp.sjtu.edu.cn/centos/5/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#contrib - packages by Centos Users
[contrib]
name=CentOS-5 - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=contrib
baseurl=http://ftp.sjtu.edu.cn/centos/5/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
# vi dag.repo
[dag]
name=Dag RPM Repository for RHEL5
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el5/en/$basearch/dag/
enabled=1
gpgcheck=1
gpgkey=http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt
name=CentOS-5 - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever5&arch=$basearch&
repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://ftp.sjtu.edu.cn/centos/5/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#released updates
[update]
name=CentOS-5 - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=updates
baseurl=http://ftp.sjtu.edu.cn/centos/5/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#packages used/produced in the build but not released
[addons]
name=CentOS-5 - Addons
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=addons
baseurl=http://ftp.sjtu.edu.cn/centos/5/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#additional packages that may be useful
[extras]
name=CentOS-5 - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=extras
baseurl=http://ftp.sjtu.edu.cn/centos/5/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=centosplus
baseurl=http://ftp.sjtu.edu.cn/centos/5/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
#contrib - packages by Centos Users
[contrib]
name=CentOS-5 - Contrib
#mirrorlist=http://mirrorlist.centos.org/?release=4&arch=$basearch&repo=contrib
baseurl=http://ftp.sjtu.edu.cn/centos/5/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos5
# vi dag.repo
[dag]
name=Dag RPM Repository for RHEL5
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el5/en/$basearch/dag/
enabled=1
gpgcheck=1
gpgkey=http://ftp.riken.jp/Linux/dag/packages/RPM-GPG-KEY.dag.txt
rpmforge.repo 写道
# Name: RPMforge RPM Repository for Red Hat Enterprise 5 - dag
# URL: http://rpmforge.net/
[rpmforge]
name = Red Hat Enterprise $releasever - RPMforge.net - dag
#baseurl = http://apt.sw.be/redhat/el5/en/$basearch/dag
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
# URL: http://rpmforge.net/
[rpmforge]
name = Red Hat Enterprise $releasever - RPMforge.net - dag
#baseurl = http://apt.sw.be/redhat/el5/en/$basearch/dag
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
配置好了之后请使用“yum check-update”命令更新yum源里的可用包信息。
--------------------------------------------------------我是分割线-----------------------------------------------------------
配置好yum源之后,我尝试安装gcc:
[root@rhelhost yum.repos.d]# yum install gcc
但是在获取到rpm包信息之后出现如下错误:
ERROR 写道
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
GPG key retrieval failed: [Errno 14] HTTP Error 404: Not Found
GPG key retrieval failed: [Errno 14] HTTP Error 404: Not Found
GPG的key有问题,采用下面这条命令就可以解决:
rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5 |
之后再次使用yum安装gcc,可以顺利完成安装:
写道
[root@rhelhost yum.repos.d]# gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-52)
参考地址:
1、http://bbs.chinaunix.net/thread-2046156-1-1.html
2、http://linux.chinaunix.net/techdoc/system/2008/08/30/1028839.shtml
发表评论
-
ntp的客户端配置
2013-02-25 19:42 0——背景简介: ... -
installing goagent on ubuntu(12.04 LTS)
2012-12-14 23:39 4409If you want to access some bloc ... -
Fedora17-command not found-命令延时
2012-11-13 14:35 1346Fedora 17下不小心输入错误一条命令,提示command ... -
can't identify protocol问题的定位和解决
2012-10-08 19:08 13462在观摩了一个关于性能问题排查的PPT之后试着用lsof命令来列 ... -
【转载】Linux日志管理:实例详解syslog
2012-09-29 16:40 2955=============================== ... -
使用nfs挂载远端主机目录到本地
2012-09-06 00:18 3196由于一个应用的需要,要使用这方面的知识。 就是两台机器,1 ... -
fedora 17继续折腾
2012-08-22 13:37 1620今天来折腾fedora17了…… 安装的64位: ... -
再谈yum配置
2012-08-18 15:13 1085配置环境永远是最重要的第一步。 在我又开始折腾虚拟机的 ... -
一个简单的监控后台需要什么?
2012-08-07 23:55 1833今晚突然想到要给之前学校的一个网站做一个监控的后台, 一些常 ... -
SSH建立信任关系实现免输密码登陆
2012-07-18 19:09 3833为了方便管理,在需要频繁登陆机器,特别是在机器众多的时候,免密 ... -
epoll介绍【转】
2012-07-17 16:55 2025epoll是多路复用IO(I/O Multiplexing) ... -
关于代理和反向代理
2012-07-12 16:10 1156其实简单来讲,代理和反向代理可以这么来理解: 代理: ... -
RHEL-AS4安装yum
2012-05-11 02:15 3663我的系统版本: Red Hat Enterprise Lin ... -
Ubuntu8.04安装CP-168U的串口连接问题
2012-05-05 18:26 2287毕业设计需要用到1托8的MOXA CP-168U卡做一个交换机 ... -
制作用U盘引导安装Ubuntu12.04
2012-05-02 14:04 38714由于之前刻了两次碟,均在安装完一次系统之后就损坏了。。。 所 ... -
【转载】su和sudo命令的区别与使用技巧
2012-04-12 23:21 1530一. 使用 su 命令临时切换用户身份 1、su ... -
Linux内核学习步骤
2011-11-25 10:33 2602今日在论坛中看到大牛谈如何学习Linux内核,于是摘录的 ... -
【转】什么是Linux的僵尸(zombie)进程
2011-10-08 15:55 2075可能很少 ... -
Linux中的颜色方案
2011-09-28 17:18 2936在linux下可以自定义自己的颜色方案,不管是linux命令提 ... -
取得jboss的版本信息
2011-09-26 20:44 14276由于写脚本的需要, 要获取jboss的版本信息。 大 ...
相关推荐
如何在linux下配置yum源的详细步骤,以及错误解决办法
在CentOS下有的时候用yum安装软件的时候最后会提示: warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY,...这是由于yum安装了旧版本的GPG keys造成的,解决办法就是 rpm --import /etc/pki/rpm-gpg/RPM*
这个问题的解决方案可以分为两种:使用光盘直接挂载到本地的方式和使用Nginx或Apache等Web Server在局域网发布本地yum源的方式。 使用光盘直接挂载到本地 使用光盘直接挂载到本地的方式速度快,操作简单。首先,...
在配置本地 yum 源时,需要创建一个本地的 yum 仓库,用于存储软件包。然后,需要配置网络 yum 源,用于安装 Ansible。 安装 Ansible 安装 Ansible 有两种方法: 方法一:使用 yum 安装 首先,需要查看 python ...
在百度上搜了各种各样的解决方案都没解决,最后通过分析错误其实是提示http服务未安装成功,最后发现是yum源的问题 默认的centos 的yum源没有httpd包。可以将yum配置为阿里的 解决方案如下 通过配置阿里的yum源 1:...
注意解决依赖关系,推荐使用yum安装,若不能联网可使用安装光盘做为yum源—— 1)编辑yum配置文件: #mount /dev/cdrom /mnt/cdrom #vi /etc/yum.repos.d/CentOS-Media.repo [c5-media] name=CentOS-$releasever- ...
1 安装方式选择(PATH B方式,配置本地yum源安装): 3 2 软件、安装包下载 4 3 安装Oracle JDK1.8(全部主机) 4 4 安装mysql数据库(server60159) 4 5 配置mysql数据库为InnoDB模式 4 6 创建CDH相关数据库 6 7 ...
042 Centos7基础环境配置本地yum源【掌握】mp 043 wireshark工具抓ping包【解]mp4 044 wireshark工具抓ssh三次握手四次断开了解]mp4 045 telnet服务搭建 Centos7【了解】mp4 046远程登录环境介绍【理解】mp4 047 ...
Re阿里云yum源没有glibc.i686 阿里云的64位Linux发行版屏蔽了32位,也就是常见的i686软件包的数据源,你可以修改yum的配置文件/etc/yum.conf,找到其中exclude=*.i?86 kernel kernel-xen kernel-debu
4. 解决编译错误 在编译 Nginx 时,可能会遇到错误提示,例如缺少 PCRE 库或 OpenSSL 库。可以使用 yum 安装所需依赖项: `yum -y install pcre-devel openssl openssl-devel` 5. 启动 Nginx 安装完成后,需要...
libnet是一个提供网络编程库,heartbeat需要它来实现网络通信。我们可以从官方网站下载libnet的源代码,解压缩后,使用configure、make和make install命令安装。 四、安装heartbeat heartbeat是实现高可用性的核心...
随着大数据和云计算的发展,Ceph 已经成为一个非常流行的存储解决方案。本手册旨在为读者提供一个系统的 Ceph 源码研究入门指南,帮助读者从原理入手,深入理解 Ceph 的实现机制和工作原理。 目录 1.Ceph 源码研究...
CentOS 6.8 是一个稳定、可靠、功能强大的 Linux 操作系统,它基于 Red Hat Enterprise Linux 源代码,提供了一个免费、开源的替代方案。CentOS 6.8 DVD 版本安装图解将指导您完成 CentOS 6.8 的安装过程。 安装前...
每打开一个新的工作空间,要配置一下Maven,然后再写代码 3.3.创建Maven项目 右击创建一个maven project Packing:有三种: Jar:java项目, War:web项目 Pom:文件夹,jar和war文件,mavenProject:一个项目,可以放jar...
源码包能直接看到源码,需要我们去软件官网进行下载,通常为了方便发布,会将源码包做打包压缩处理(常用的打包压缩格式为”tar.gz”),其中一般包含多个文件(源代码文件、配置和检测程序、软件安装说明和软件...