RHEL 7에 R 설치 7에 R을 설치하려고합니다. epel-release-7-2.noarch.rpm을 사용하고

RHEL 7에 R을 설치하려고합니다. epel-release-7-2.noarch.rpm을 사용하고 있으며 많은 종속성 (수동 .rpm 설치로 하나씩)을 해결했지만 종속성 해결이 끝나면 이 오류들 :


--> Finished Dependency Resolution
Error: Package: R-core-3.1.1-7.el7.x86_64 (epel)
Requires: tex(dvips)
Error: Package: R-core-devel-3.1.1-7.el7.x86_64 (epel)
Requires: texinfo-tex
Error: Package: R-java-devel-3.1.1-7.el7.x86_64 (epel)
Requires: java-devel
Error: Package: R-core-3.1.1-7.el7.x86_64 (epel)
Requires: tex(latex)
Error: Package: R-core-devel-3.1.1-7.el7.x86_64 (epel)
Requires: tex(latex)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Red Hat 서브 스크립 션 관리에 등록되지 않은 시스템을 사용하고 있으므로 서브 스크립 션 관리자를 사용하여 시스템을 등록하고 종속성을 해결할 수 없습니다.

tex (dvips)와 tex (latex)는 어디에서 찾을 수 있습니까? mirror.centos.org/centos/7/os/x86_64/Packages/에서 다운로드하려고하는데 여전히 올바른 파일을 찾지 못했습니다.

업데이트 :
마지막으로 RHEL 저장소 업데이트 문제를 스스로 해결했습니다.

cd /etc/yum.repos.d/
vi CentOS-base.repo
[base]
name=CentOS-$releasever – Base
baseurl=http://buildlogs.centos.org/centos/7/os/x86_64-20140704-1/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
priority=1
exclude=php mysql

그리고 나서:

yum update
yum install texlive
yum install R

… 그리고 깨끗한 설치가 완료되었습니다! 🙂



답변

CentOS 7에 R을 설치하는 것이 가장 간단한 방법이라고 생각합니다.

sudo yum install -y epel-release
sudo yum update -y
sudo yum install -y R

답변

CentOS 저장소를 설치하지 않으려면 필요한 개별 패키지를 직접 선택할 수 있습니다.

OS RHEL 7

 [ec2-user ~]$ cat /etc/redhat-release
 Red Hat Enterprise Linux Server release 7.3 (Maipo)

중요 : EPEL 저장소가 예상대로 설치 및 구성되었는지 확인하십시오. 그러나 R을 설치할 때 여전히 종속성 문제가 있습니다.

[ec2-user ~]$ sudo yum install R
… output truncated …
--> Finished Dependency Resolution
Error: Package: R-core-devel-3.3.1-2.el7.x86_64 (epel)
       Requires: texinfo-tex

Redhat 또는 EPEL 리포지토리에는이 패키지가 없습니다. CentOS7 저장소에서 하나를 가져 왔습니다.

[ec2-user ~]$ wget http://mirror.centos.org/centos/7/os/x86_64/Packages/texinfo-tex-5.1-4.el7.x86_64.rpm

그리고 그것을 설치하려고 시도했지만 다른 종속성 문제가 발생했습니다 …

[ec2-user ~]$ sudo yum localinstall texinfo-tex-5.1-4.el7.x86_64.rpm
… output truncated …
--> Finished Dependency Resolution
Error: Package: texinfo-tex-5.1-4.el7.x86_64 (/texinfo-tex-5.1-4.el7.x86_64)
       Requires: tex(epsf.tex)

다시 말하지만 EPEL 또는 RedHat에는 아무것도 없으므로 다른 CentOS7 패키지를 가져 왔습니다.

[ec2-user ~]$ wget http://mirror.centos.org/centos/7/os/x86_64/Packages/texlive-epsf-doc-svn21461.2.7.4-38.el7.noarch.rpm
[ec2-user ~]$ wget http://mirror.centos.org/centos/7/os/x86_64/Packages/texlive-epsf-svn21461.2.7.4-38.el7.noarch.rpm

이제 다운로드 한 로컬 패키지를 설치합니다

[ec2-user ~]$ sudo yum localinstall texlive-epsf-doc-svn21461.2.7.4-38.el7.noarch.rpm
[ec2-user ~]$ sudo yum localinstall texlive-epsf-svn21461.2.7.4-38.el7.noarch.rpm
[ec2-user ~]$ sudo yum localinstall texinfo-tex-5.1-4.el7.x86_64.rpm

그리고 마지막으로…

[ec2-user ~]$ sudo yum install R
…output truncated…
Complete!

HTH


답변

BTW : 서브 스크립 션을 가지고 RHEL 리포지토리에 머무르고 자하는 사람들에게는 “rhel-7-server-optional-rpms”에서 누락 된 패키지를 찾을 수 있습니다.

그래서 yum --enablerepo=epel --enablerepo="rhel-7-server-optional-rpms" install R
나를 위해 일했습니다.

해야 할 수도 있습니다 subscription-manager repos --enable rhel-7-server-optional-rpms.


답변

정답을 찾는 사람들을 위해 R은 EPEL (Enterprise Linux for RHEL Extra Packages)에 속합니다.

su -c 'rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm'

sudo yum update

sudo yum install R

답변

Redhat에 설치하는 경우 CentOS 리포지토리에서 ‘textinfo-tex’및 ‘textlive-epsf-svn’을 로컬로 설치 한 다음 epel repo repo에서 R을 설치하면됩니다.