2014-10-11 36 views
1

更新:

请注意,我没有发表不同风味的这对Unix & Linux SE,而是重新在这里发帖之前收到当天没有帮助的回应。该帖子中与此相关的信息是,我首先使用rpm -Uvh将EPEL 7添加到了回购列表中,这可能是为什么EL 7版本的R正在被请求。的CentOS 6.5 R安装过程中依赖

不管怎样,由用户萨米莱恩的要求,这里是从cat /etc/yum.repos.d/epel.repo

[epel] 
name=Extra Packages for Enterprise Linux 6 - $basearch 
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch 
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch 
failovermethod=priority 
enabled=1 
gpgcheck=1 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 

[epel-debuginfo] 
name=Extra Packages for Enterprise Linux 6 - $basearch - Debug 
#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug 
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch 
failovermethod=priority 
enabled=0 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 
gpgcheck=1 

[epel-source] 
name=Extra Packages for Enterprise Linux 6 - $basearch - Source 
#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS 
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch 
failovermethod=priority 
enabled=0 
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 
gpgcheck=1 

的输出和rpm -q epel-release输出epel-release-6-8.noarch


我试图在新鲜的CentOS 6.5盒子上安装R,但遇到了依赖问题。我使用rpm添加了EPEL 6回购,然后运行了yum install R。它中断依赖关系:

---> Package R-core.x86_64 0:3.1.1-3.el7 will be installed 
--> Processing Dependency: libtiff.so.5(LIBTIFF_4.0)(64bit) for package: R-core-3.1.1-3.el7.x86_64 
--> Processing Dependency: libpng15.so.15(PNG15_0)(64bit) for package: R-core-3.1.1-3.el7.x86_64 
--> Processing Dependency: liblzma.so.5(XZ_5.0)(64bit) for package: R-core-3.1.1-3.el7.x86_64 
--> Processing Dependency: libtiff.so.5()(64bit) for package: R-core-3.1.1-3.el7.x86_64 
--> Processing Dependency: libquadmath.so.0()(64bit) for package: R-core-3.1.1-3.el7.x86_64 
--> Processing Dependency: libpng15.so.15()(64bit) for package: R-core-3.1.1-3.el7.x86_64 
--> Processing Dependency: libpcre.so.1()(64bit) for package: R-core-3.1.1-3.el7.x86_64 
--> Processing Dependency: liblzma.so.5()(64bit) for package: R-core-3.1.1-3.el7.x86_64 
--> Processing Dependency: libicuuc.so.50()(64bit) for package: R-core-3.1.1-3.el7.x86_64 
--> Processing Dependency: libicui18n.so.50()(64bit) for package: R-core-3.1.1-3.el7.x86_64 
---> Package R-java.x86_64 0:3.1.1-3.el7 will be installed 
--> Processing Dependency: java-headless for package: R-java-3.1.1-3.el7.x86_64 
---> Package texlive-texmf-errata-fonts.noarch 0:2007-7.1.el6 will be installed 
--> Finished Dependency Resolution 
Error: Package: R-core-3.1.1-3.el7.x86_64 (epel) 
      Requires: liblzma.so.5()(64bit) 
Error: Package: R-core-3.1.1-3.el7.x86_64 (epel) 
      Requires: liblzma.so.5(XZ_5.0)(64bit) 
Error: Package: R-core-3.1.1-3.el7.x86_64 (epel) 
      Requires: libtiff.so.5()(64bit) 
Error: Package: R-core-3.1.1-3.el7.x86_64 (epel) 
      Requires: libpcre.so.1()(64bit) 
Error: Package: R-core-3.1.1-3.el7.x86_64 (epel) 
      Requires: libpng15.so.15()(64bit) 
Error: Package: R-core-3.1.1-3.el7.x86_64 (epel) 
      Requires: libicui18n.so.50()(64bit) 
Error: Package: R-core-3.1.1-3.el7.x86_64 (epel) 
      Requires: libquadmath.so.0()(64bit) 
Error: Package: R-core-3.1.1-3.el7.x86_64 (epel) 
      Requires: libpng15.so.15(PNG15_0)(64bit) 
Error: Package: R-java-3.1.1-3.el7.x86_64 (epel) 
      Requires: java-headless 
Error: Package: R-core-3.1.1-3.el7.x86_64 (epel) 
      Requires: libicuuc.so.50()(64bit) 
Error: Package: R-core-3.1.1-3.el7.x86_64 (epel) 
      Requires: libtiff.so.5(LIBTIFF_4.0)(64bit) 
You could try using --skip-broken to work around the problem 
You could try running: rpm -Va --nofiles --nodigest 

不知道为什么这些依赖项没有得到解决。还有什么理由为什么el7版本正在安装时,我的CentOS是6.5?

+1

嗯这是奇怪的,我只是这个昨天做的完全一样的系统版本(CentOS 6.5),没有问题的。你是否已经安装了'Development tools'('yum groupinstall'开发工具')? – nrussell 2014-10-11 18:58:45

+0

@nrussell是的,我在此之前做过。 – tchakravarty 2014-10-11 18:59:14

+0

@SamiLaine如果您想加入,我已经创建了一个聊天室[这里](http://chat.stackoverflow.com/rooms/62909/centos-6-5-r-installation-dependencies)。 – tchakravarty 2014-10-12 09:27:57

回答

5

由于EPEL版本7已经安装(然后被删除),因此依赖链检查使用的一些元数据包含冲突残差。尽管您已经安装了EPEL版本6,但元数据仍然留在那里困扰。

清洁元数据,并再次生成,运行:

yum clean all && yum makecache