红联Linux门户
Linux帮助

rpmforge中apt.sw.be源丢失的解决方案

发布时间:2016-12-06 09:22:49来源:linux网站作者:Leekwen
CentOS 6.X 系统在安装erlang中,会用到apt.sw.be源,而此源的资源已经丢失,导致大家在安装过程中出现问题。
 
从搜到的CentOS 6,x自动安装erlang的链接中,都是指向这个apt.sw.be链接。
这里我找到了另外一个替代apt.sw.be源的链接。
 
具体的操作如下:
[root@localhost ~]# uname -ra  
Linux localhost.localdomain 2.6.32-431.el6.i686 i686 i386 GNU/Linux  
#### 安装Erlang ####  
[root@localhost ~]# history  
[root@localhost ~]# yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel gcc gcc-c++ zlib zlib-devel  
[root@localhost ~]# wget -c http://www.mirrorservice.org/sites/apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.i686.rpm   
[root@localhost ~]# rpm -ivh rpmforge-release-0.5.2-2.el6.rf.i686.rpm  
[root@localhost ~]# rpm --import http://www.mirrorservice.org/sites/apt.sw.be/RPM-GPG-KEY.dag.txt  
[root@localhost ~]# rpm --import http://binaries.erlang-solutions.com/debian/erlang_solutions.asc  
[root@localhost ~]# wget -O /etc/yum.repos.d/erlang_solutions.repo  http://binaries.erlang-solutions.com/rpm/centos/erlang_solutions.repo  
[root@localhost ~]# yum update  
[root@localhost ~]# yum install erlang
 
运行完毕后,erlang就可以直接安装成功,不需要再自己编译了,很是方便啊。
 
本文永久更新地址:http://www.linuxdiyf.com/linux/26608.html