<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[centos6.3源更新网易源，以求通过yum 安装gdb的实践过程记录。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Unix/LinuxC技术]]></category>
<pubDate>Mon, 08 Apr 2013 13:28:05 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	最近还是在centos官网上找到了，下面的实践没有达到想要的要求。<br/>http://mirror.centos.org/centos/6.3/os/i386/Packages/gdb-7.2-56.el6.i686.rpm<br/>=========================================================================<br/>root@192.168.137.159:~/software# wget http://mirror.centos.org/centos/6.3/os/i386/Packages/gdb-7.2-56.el6.i686.rpm<br/>--2013-04-08 21:55:46--&nbsp;&nbsp;http://mirror.centos.org/centos/6.3/os/i386/Packages/gdb-7.2-56.el6.i686.rpm<br/>正在解析主机 mirror.centos.org... 202.76.233.2<br/>正在连接 mirror.centos.org&#124;202.76.233.2&#124;:80...败：连接超时。<br/>重试中。<br/><br/>http://mirrors.163.com/centos/6/os/i386/repodata/repomd.xml<br/>试了N种方法，没法解决，后来发现是因为文件yum.conf里面设置了proxy，注释掉就行了<br/>运行yum clean all清楚缓存<br/><br/>运行yum makecache生成缓存<br/><br/>出现如下错误：<br/><br/>Loading mirror speeds from cached hostfile<br/>http://mirrors.163.com/centos/6/os/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - &quot;couldn&#039;t connect to host&quot;<br/>Trying other mirror.<br/>Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again<br/>vi ./etc/yum.conf<br/>proxy=http://10.33.26.112:808<br/><br/>--2013-04-08 21:56:50--&nbsp;&nbsp;(尝试次数： 2)<br/>......<br/>卡在这儿了。<br/>=========================================================================<br/>得出：是自己虚拟机的配置或网络的缘故，和163的源无太大关系,NAT配置正确，宽带这块好像有限定，对某些域名都无法ping通呀，嗨，什么玩意，想换个联通的ADSL，小宽带运营商这些都太多限定了。<br/>解决办法：直接通过浏览器下载后，通过rz放入centos6.3的系统里，再rpm -ihv gdb-7.2-56.el6.i686.rpm<br/>=========================================================================<br/>写在前面：网易给人感觉有点像中国IT业的脊梁，低调耐用实用实在，其掌门人丁磊在很久前就有这样那样的源开放出来供下载，想法比较特立独行，其颇具执行力，我觉得这也算是作为IT业的一份贡献吧，从这个角度来看就不难想像丁磊去养猪了，呵呵。<br/>背景：家里的vmware里的centos6.3没法安gdb，出现：<br/><textarea name="code" class="C" rows="15" cols="100">
root@192.168.137.159:~# yum install gdb
Loaded plugins: downloadonly, fastestmirror, presto
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&amp;arch=i386&amp;repo=os error was
14: PYCURL ERROR 7 - &quot;couldn&#039;t connect to host&quot;
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&amp;arch=i386&amp;repo=extras error was
14: PYCURL ERROR 7 - &quot;couldn&#039;t connect to host&quot;
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&amp;arch=i386&amp;repo=updates error was
14: PYCURL ERROR 7 - &quot;couldn&#039;t connect to host&quot;
 * base: centos.chlux.co.kr
 * extras: centos.chlux.co.kr
 * updates: centos.chlux.co.kr
http://centos.chlux.co.kr/6.3/os/i386/repodata/repomd.xml: [Errno 12] Timeout on http://centos.chlux.co.kr/6.3/os/i386/repodata/repomd.xml: (28, &#039;connect() timed out!&#039;)
Trying other mirror.
http://centos.mirror.cdnetworks.com/6.3/os/i386/repodata/repomd.xml: [Errno 12] Timeout on http://centos.mirror.cdnetworks.com/6.3/os/i386/repodata/repomd.xml: (28, &#039;connect() timed out!&#039;)
Trying other mirror.
http://centos.tt.co.kr/6.3/os/i386/repodata/repomd.xml: [Errno 12] Timeout on http://centos.tt.co.kr/6.3/os/i386/repodata/repomd.xml: (28, &#039;connect() timed out!&#039;)
Trying other mirror.
http://centos.ustc.edu.cn/centos/6.3/os/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - &quot;couldn&#039;t connect to host&quot;
Trying other mirror.
</textarea><br/>------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br/>配置网易163的yum源<br/><br/>1. 下载repo文件<br/>&nbsp;&nbsp;&nbsp;&nbsp;下载地址：http://mirrors.163.com/.help/CentOS6-Base-163.repo<br/><br/>2. 备份并替换系统的repo文件<br/>[root@localhost ~]# cd /etc/yum.repos.d/<br/>[root@localhost ~]# mv CentOS-Base.repo CentOS-Base.repo.bak<br/>[root@localhost ~]# mv /root/CentOS6-Base-163.repo CentOS-Base.repo<br/><br/>3. 执行yum源更新<br/>[root@localhost ~]# yum clean all<br/>[root@localhost ~]# yum makecache<br/>[root@localhost ~]# yum update<br/><br/>4. 到此已结束，用yum安装一下文件，看是否OK<br/>[root@localhost ~]# yum install vim*<br/><br/>5. 安装centos常用的软件包及工具<br/>&nbsp;&nbsp;&nbsp;&nbsp;常见压缩工具 zip unzip bzip2<br/>[root@localhost ~]# yum -y install unzip zip bzip2 bzip2-devel <br/>&nbsp;&nbsp;gcc gcc++编译器<br/>[root@localhost ~]# yum install gcc gcc-c++ -y<br/>&nbsp;&nbsp;cmake编译器<br/>[root@localhost ~]# yum install cmake make -y<br/>&nbsp;&nbsp;图片资源<br/>[root@localhost ~]# yum -y install gd libjpeg libjpeg-devel libpng libpng-devel freetype-devel <br/>&nbsp;&nbsp;其它常用资源包工具<br/>[root@localhost ~]# yum -y install autoconf bison automake zlib* fiex* libxml* ncurses-devel libmcrypt* libtool-ltdl-devel*<br/><br/>-----------------------------------------------------------------------------------------------------------------------------------------------------------------------<br/>CentOS 6.3安装第三方yum源<br/># wget http://www.atomicorp.com/installers/atomic[/url]<br/>下载完成后执行以下命令<br/><br/># sh ./atomic<br/>里面涉及到的rpm：http://3es.atomicrocketturtle.com/packages/atomic-release/atomic-release-1.0-16.el6.art.noarch.rpm<br/><br/>1.<br/>cat /etc/yum.repos.d/CentOS-Base.repo<br/>然后修改<br/><br/>2.<br/># CentOS-Base.repo<br/>#<br/># The mirror system uses the connecting IP address of the client and the<br/># update status of each mirror to pick mirrors that are updated to and<br/># geographically close to the client.&nbsp;&nbsp;You should use this for CentOS updates<br/># unless you are manually picking other mirrors.<br/>#<br/># If the mirrorlist= does not work for you, as a fall back you can try the <br/># remarked out baseurl= line instead.<br/>#<br/>#<br/><br/>[base]<br/>name=CentOS-6.3 - Base<br/>#mirrorlist=http://mirrorlist.centos.org/?release=6.3&amp;arch=$basearch&amp;repo=os<br/>baseurl=http://mirrors.163.com/centos/6.3/os/$basearch/<br/>gpgcheck=1<br/>gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6<br/><br/>#released updates <br/>[updates]<br/>name=CentOS-6.3 - Updates<br/>#mirrorlist=http://mirrorlist.centos.org/?release=6.3&amp;arch=$basearch&amp;repo=updates<br/>baseurl=http://mirrors.163.com/centos/6.3/updates/$basearch/<br/>gpgcheck=1<br/>gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6<br/><br/>#additional packages that may be useful<br/>[extras]<br/>name=CentOS-6.3 - Extras<br/>#mirrorlist=http://mirrorlist.centos.org/?release=6.3&amp;arch=$basearch&amp;repo=extras<br/>baseurl=http://mirrors.163.com/centos/6.3/extras/$basearch/<br/>gpgcheck=1<br/>gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6<br/><br/>#additional packages that extend functionality of existing packages<br/>[centosplus]<br/>name=CentOS-6.3 - Plus<br/>#mirrorlist=http://mirrorlist.centos.org/?release=6.3&amp;arch=$basearch&amp;repo=centosplus<br/>baseurl=http://mirrors.163.com/centos/6.3/centosplus/$basearch/<br/>gpgcheck=1<br/>enabled=1<br/>gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6<br/><br/>#contrib - packages by Centos Users<br/>[contrib]<br/>name=CentOS-6.3 - Contrib<br/>#mirrorlist=http://mirrorlist.centos.org/?release=6.3&amp;arch=$basearch&amp;repo=contrib<br/>baseurl=http://mirrors.163.com/centos/6.3/contrib/$basearch/<br/>gpgcheck=1<br/>enabled=1<br/>gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6<br/># yum clean all<br/># yum makecache&nbsp;&nbsp;&nbsp;&nbsp; #将服务器上的软件包信息缓存到本地,以提高搜索安装软件的速度<br/># yum install vim*&nbsp;&nbsp;&nbsp;&nbsp;#测试域名是否可用<br/><br/>检查好后，如果还报错http://mirrorlist.centos.org/解析错误，请检查网络配置是否正确<br/><br/>来自：http://www.linuxidc.com/Linux/2012-10/72750.htm<br/>http://hi.baidu.com/woniu421/item/09649c18b1ad662ff6625ce0
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] centos6.3源更新网易源，以求通过yum 安装gdb的实践过程记录。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>