linux系统redhat7.9安装R
1、查看系统信息
[root@localhost home]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.9 (Maipo)
[root@localhost home]# lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 7.9 (Maipo)
Release: 7.9
Codename: Maipo
2、测试R
[root@localhost home]# R
bash: R: command not found...
3、安装epel-release
[root@localhost home]# yum install epel-release ## 报错,不能使用yum安装
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
No package epel-release available.
Error: Nothing to do
下载安装包安装:
[root@localhost home]# ls
liujiaxin01
[root@localhost home]# wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
--2021-01-30 23:40:44-- http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Resolving dl.fedoraproject.org (dl.fedoraproject.org)... 38.145.60.22, 38.145.60.23, 38.145.60.24
Connecting to dl.fedoraproject.org (dl.fedoraproject.org)|38.145.60.22|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15448 (15K) [application/x-rpm]
Saving to: ‘epel-release-latest-7.noarch.rpm’
100%[===========================================================================================>] 15,448 17.1KB/s in 0.9s
2021-01-30 23:40:46 (17.1 KB/s) - ‘epel-release-latest-7.noarch.rpm’ saved [15448/15448]
[root@localhost home]# ls
epel-release-latest-7.noarch.rpm liujiaxin01
[root@localhost home]# yum install epel-release-latest-7.noarch.rpm
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Examining epel-release-latest-7.noarch.rpm: epel-release-7-13.noarch
Marking epel-release-latest-7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-13 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================
Installing:
epel-release noarch 7-13 /epel-release-latest-7.noarch 25 k
Transaction Summary
=====================================================================================================================================
Install 1 Package
Total size: 25 k
Installed size: 25 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-7-13.noarch 1/1
Verifying : epel-release-7-13.noarch 1/1
Installed:
epel-release.noarch 0:7-13
Complete!
4、安装R
[root@localhost home]# yum install R
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
epel/x86_64/metalink | 8.1 kB 00:00:00
epel | 4.7 kB 00:00:00
(1/3): epel/x86_64/primary_db | 6.9 MB 00:00:00
(2/3): epel/x86_64/updateinfo | 1.0 MB 00:00:00
(3/3): epel/x86_64/group_gz | 95 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package R.x86_64 0:3.6.0-1.el7 will be installed
--> Processing Dependency: R-devel = 3.6.0-1.el7 for package: R-3.6.0-1.el7.x86_64
--> Processing Dependency: libRmath-devel = 3.6.0-1.el7 for package: R-3.6.0-1.el7.x86_64
--> Processing Dependency: R-java = 3.6.0-1.el7 for package: R-3.6.0-1.el7.x86_64
--> Running transaction check
---> Package R-devel.x86_64 0:3.6.0-1.el7 will be installed
…………
---> Package texlive-bibtex-bin.x86_64 2:svn26509.0-45.20130427_r30134.el7 will be installed
---> Package texlive-filehook.noarch 2:svn24280.0.5d-45.el7 will be installed
--> Processing Dependency: tex(currfile.sty) for package: 2:texlive-filehook-svn24280.0.5d-45.el7.noarch
---> Package texlive-gsftopk-bin.x86_64 2:svn26509.0-45.20130427_r30134.el7 will be installed
---> Package texlive-lualatex-math.noarch 2:svn29346.1.2-45.el7 will be installed
---> Package texlive-luatex-bin.x86_64 2:svn26912.0-45.20130427_r30134.el7 will be installed---> Package R-core-devel.x86_64 0:3.6.0-1.el7 will be installed
--> Processing Dependency: pcre2-devel for package: R-core-devel-3.6.0-1.el7.x86_64
--> Processing Dependency: texinfo-tex for package: R-core-devel-3.6.0-1.el7.x86_64
---> Package texlive-currfile.noarch 2:svn29012.0.7b-45.el7 will be installed
---> Package zziplib.x86_64 0:0.13.62-12.el7 will be installed
--> Finished Dependency Resolution
Error: Package: R-core-devel-3.6.0-1.el7.x86_64 (epel) ## 报错
Requires: pcre2-devel
Error: Package: R-core-devel-3.6.0-1.el7.x86_64 (epel)
Requires: texinfo-tex
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
5、下载安装 pcre2-devel
下载地址:https://centos.pkgs.org/7/centos-x86_64/pcre2-devel-10.23-2.el7.x86_64.rpm.html
[root@localhost home]# wget http://mirror.centos.org/centos/7/os/x86_64/Packages/pcre2-devel-10.23-2.el7.x86_64.rpm
--2021-01-30 23:48:02-- http://mirror.centos.org/centos/7/os/x86_64/Packages/pcre2-devel-10.23-2.el7.x86_64.rpm
Resolving mirror.centos.org (mirror.centos.org)... 160.116.15.22, 2406:da1a:fcb:2f01:b6e2:c6:795:b503
Connecting to mirror.centos.org (mirror.centos.org)|160.116.15.22|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 558196 (545K) [application/x-rpm]
Saving to: ‘pcre2-devel-10.23-2.el7.x86_64.rpm’
100%[===========================================================================================>] 558,196 7.27KB/s in 1m 41s
2021-01-30 23:49:45 (5.37 KB/s) - ‘pcre2-devel-10.23-2.el7.x86_64.rpm’ saved [558196/558196]
[root@localhost home]# ls
epel-release-latest-7.noarch.rpm liujiaxin01 pcre2-devel-10.23-2.el7.x86_64.rp
[root@localhost home]# yum install pcre2-devel-10.23-2.el7.x86_64.rpm
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Examining pcre2-devel-10.23-2.el7.x86_64.rpm: pcre2-devel-10.23-2.el7.x86_64
Marking pcre2-devel-10.23-2.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package pcre2-devel.x86_64 0:10.23-2.el7 will be installed
--> Processing Dependency: pcre2-utf32(x86-64) = 10.23-2.el7 for package: pcre2-devel-10.23-2.el7.x86_64
--> Processing Dependency: gcc for package: pcre2-devel-10.23-2.el7.x86_64
--> Processing Dependency: libpcre2-32.so.0()(64bit) for package: pcre2-devel-10.23-2.el7.x86_64
--> Running transaction check
---> Package gcc.x86_64 0:4.8.5-44.el7 will be installed
--> Processing Dependency: cpp = 4.8.5-44.el7 for package: gcc-4.8.5-44.el7.x86_64
---> Package pcre2-devel.x86_64 0:10.23-2.el7 will be installed
--> Processing Dependency: pcre2-utf32(x86-64) = 10.23-2.el7 for package: pcre2-devel-10.23-2.el7.x86_64
--> Processing Dependency: libpcre2-32.so.0()(64bit) for package: pcre2-devel-10.23-2.el7.x86_64
--> Running transaction check
---> Package cpp.x86_64 0:4.8.5-44.el7 will be installed
---> Package pcre2-devel.x86_64 0:10.23-2.el7 will be installed
--> Processing Dependency: pcre2-utf32(x86-64) = 10.23-2.el7 for package: pcre2-devel-10.23-2.el7.x86_64
--> Processing Dependency: libpcre2-32.so.0()(64bit) for package: pcre2-devel-10.23-2.el7.x86_64
--> Finished Dependency Resolution
Error: Package: pcre2-devel-10.23-2.el7.x86_64 (/pcre2-devel-10.23-2.el7.x86_64) 报错!!!
Requires: pcre2-utf32(x86-64) = 10.23-2.el7
Error: Package: pcre2-devel-10.23-2.el7.x86_64 (/pcre2-devel-10.23-2.el7.x86_64)
Requires: libpcre2-32.so.0()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
下载安装pcre2-utf32(x86-64)
下载地址:https://centos.pkgs.org/7/centos-x86_64/pcre2-utf32-10.23-2.el7.x86_64.rpm.html
[root@localhost home]# wget http://mirror.centos.org/centos/7/os/x86_64/Packages/pcre2-utf32-10.23-2.el7.x86_64.rpm
--2021-01-30 23:55:50-- http://mirror.centos.org/centos/7/os/x86_64/Packages/pcre2-utf32-10.23-2.el7.x86_64.rpm
Resolving mirror.centos.org (mirror.centos.org)... 160.116.15.22, 2401:78c0::e00e
Connecting to mirror.centos.org (mirror.centos.org)|160.116.15.22|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 184872 (181K) [application/x-rpm]
Saving to: ‘pcre2-utf32-10.23-2.el7.x86_64.rpm’
100%[===========================================================================================>] 184,872 6.95KB/s in 17s
2021-01-30 23:56:08 (10.4 KB/s) - ‘pcre2-utf32-10.23-2.el7.x86_64.rpm’ saved [184872/184872]
[root@localhost home]# ls
epel-release-latest-7.noarch.rpm liujiaxin01 pcre2-devel-10.23-2.el7.x86_64.rpm pcre2-utf32-10.23-2.el7.x86_64.rpm
[root@localhost home]# yum install pcre2-utf32-10.23-2.el7.x86_64.rpm
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Examining pcre2-utf32-10.23-2.el7.x86_64.rpm: pcre2-utf32-10.23-2.el7.x86_64
Marking pcre2-utf32-10.23-2.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package pcre2-utf32.x86_64 0:10.23-2.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================
Installing:
pcre2-utf32 x86_64 10.23-2.el7 /pcre2-utf32-10.23-2.el7.x86_64 485 k
Transaction Summary
=====================================================================================================================================
Install 1 Package
Total size: 485 k
Installed size: 485 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : pcre2-utf32-10.23-2.el7.x86_64 1/1
Verifying : pcre2-utf32-10.23-2.el7.x86_64 1/1
Installed:
pcre2-utf32.x86_64 0:10.23-2.el7
Complete! ## 安装成功
继续安装 pcre2-devel-10.23-2.el7.x86_64.rpm:
[root@localhost home]# yum install pcre2-devel-10.23-2.el7.x86_64.rpm
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Examining pcre2-devel-10.23-2.el7.x86_64.rpm: pcre2-devel-10.23-2.el7.x86_64
Marking pcre2-devel-10.23-2.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package pcre2-devel.x86_64 0:10.23-2.el7 will be installed
--> Processing Dependency: gcc for package: pcre2-devel-10.23-2.el7.x86_64
--> Running transaction check
---> Package gcc.x86_64 0:4.8.5-44.el7 will be installed
--> Processing Dependency: cpp = 4.8.5-44.el7 for package: gcc-4.8.5-44.el7.x86_64
--> Running transaction check
---> Package cpp.x86_64 0:4.8.5-44.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================
Installing:
pcre2-devel x86_64 10.23-2.el7 /pcre2-devel-10.23-2.el7.x86_64 1.7 M
Installing for dependencies:
cpp x86_64 4.8.5-44.el7 rhel7 6.0 M
gcc x86_64 4.8.5-44.el7 rhel7 16 M
Transaction Summary
=====================================================================================================================================
Install 1 Package (+2 Dependent packages)
Total size: 24 M
Total download size: 22 M
Installed size: 54 M
Is this ok [y/d/N]: y
Downloading packages:
-------------------------------------------------------------------------------------------------------------------------------------
Total 684 MB/s | 22 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : cpp-4.8.5-44.el7.x86_64 1/3
Installing : gcc-4.8.5-44.el7.x86_64 2/3
Installing : pcre2-devel-10.23-2.el7.x86_64 3/3
Verifying : pcre2-devel-10.23-2.el7.x86_64 1/3
Verifying : cpp-4.8.5-44.el7.x86_64 2/3
Verifying : gcc-4.8.5-44.el7.x86_64 3/3
Installed:
pcre2-devel.x86_64 0:10.23-2.el7
Dependency Installed:
cpp.x86_64 0:4.8.5-44.el7 gcc.x86_64 0:4.8.5-44.el7
Complete! 成功
继续安装R:
[root@localhost home]# yum install R
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package R.x86_64 0:3.6.0-1.el7 will be installed
--> Processing Dependency: R-devel = 3.6.0-1.el7 for package: R-3.6.0-1.el7.x86_64
--> Processing Dependency: libRmath-devel = 3.6.0-1.el7 for package: R-3.6.0-1.el7.x86_64
--> Processing Dependency: R-java = 3.6.0-1.el7 for package: R-3.6.0-1.el7.x86_64
…………
---> Package texlive-texlive.infra-bin.x86_64 2:svn22566.0-45.20130427_r30134.el7 will be installed
---> Package texlive-varwidth.noarch 2:svn24104.0.92-45.el7 will be installed
--> Processing Dependency: texinfo-tex for package: R-core-devel-3.6.0-1.el7.x86_64
---> Package texlive-currfile.noarch 2:svn29012.0.7b-45.el7 will be installed
---> Package zziplib.x86_64 0:0.13.62-12.el7 will be installed
--> Finished Dependency Resolution
Error: Package: R-core-devel-3.6.0-1.el7.x86_64 (epel) ## 报错
Requires: texinfo-tex
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
下载安装 texinfo-tex
下载地址:https://centos.pkgs.org/7/centos-x86_64/texinfo-tex-5.1-5.el7.x86_64.rpm.html
[root@localhost home]# wget http://mirror.centos.org/centos/7/os/x86_64/Packages/texinfo-tex-5.1-5.el7.x86_64.rpm
--2021-01-31 00:07:01-- http://mirror.centos.org/centos/7/os/x86_64/Packages/texinfo-tex-5.1-5.el7.x86_64.rpm
Resolving mirror.centos.org (mirror.centos.org)... 13.233.140.107, 2401:78c0::e00e
Connecting to mirror.centos.org (mirror.centos.org)|13.233.140.107|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 149820 (146K) [application/x-rpm]
Saving to: ‘texinfo-tex-5.1-5.el7.x86_64.rpm’
100%[===========================================================================================>] 149,820 143KB/s in 1.0s
2021-01-31 00:07:02 (143 KB/s) - ‘texinfo-tex-5.1-5.el7.x86_64.rpm’ saved [149820/149820]
[root@localhost home]# ls
epel-release-latest-7.noarch.rpm pcre2-devel-10.23-2.el7.x86_64.rpm texinfo-tex-5.1-5.el7.x86_64.rpm
liujiaxin01 pcre2-utf32-10.23-2.el7.x86_64.rpm
[root@localhost home]# yum install texinfo-tex-5.1-5.el7.x86_64.rpm
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
………………
………………
--> Processing Dependency: /usr/bin/texconfig-sys for package: texinfo-tex-5.1-5.el7.x86_64
--> Processing Dependency: /usr/bin/texconfig-sys for package: texinfo-tex-5.1-5.el7.x86_64
---> Package zziplib.x86_64 0:0.13.62-12.el7 will be installed
--> Finished Dependency Resolution
Error: Package: texinfo-tex-5.1-5.el7.x86_64 (/texinfo-tex-5.1-5.el7.x86_64) ## 报错
Requires: tex(epsf.tex)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
下载安装 tex(epsf.tex)
下载地址:
https://centos.pkgs.org/7/centos-x86_64/texlive-epsf-svn21461.2.7.4-45.el7.noarch.rpm.html
[root@localhost home]# wget http://mirror.centos.org/centos/7/os/x86_64/Packages/texlive-epsf-svn21461.2.7.4-45.el7.noarch.rpm
--2021-01-31 00:11:11-- http://mirror.centos.org/centos/7/os/x86_64/Packages/texlive-epsf-svn21461.2.7.4-45.el7.noarch.rpm
Resolving mirror.centos.org (mirror.centos.org)... 54.169.224.98, 2604:1380:3000:2800::1
Connecting to mirror.centos.org (mirror.centos.org)|54.169.224.98|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 26432 (26K) [application/x-rpm]
Saving to: ‘texlive-epsf-svn21461.2.7.4-45.el7.noarch.rpm’
100%[===========================================================================================>] 26,432 41.1KB/s in 0.6s
2021-01-31 00:11:12 (41.1 KB/s) - ‘texlive-epsf-svn21461.2.7.4-45.el7.noarch.rpm’ saved [26432/26432]
[root@localhost home]# ls
epel-release-latest-7.noarch.rpm pcre2-devel-10.23-2.el7.x86_64.rpm texinfo-tex-5.1-5.el7.x86_64.rpm
liujiaxin01 pcre2-utf32-10.23-2.el7.x86_64.rpm texlive-epsf-svn21461.2.7.4-45.el7.noarch.rpm
[root@localhost home]# yum install texlive-epsf-svn21461.2.7.4-45.el7.noarch.rpm
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Examining texlive-epsf-svn21461.2.7.4-45.el7.noarch.rpm: 2:texlive-epsf-svn21461.2.7.4-45.el7.noarch
Marking texlive-epsf-svn21461.2.7.4-45.el7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package texlive-epsf.noarch 2:svn21461.2.7.4-45.el7 will be installed
--> Processing Dependency: texlive-base for package: 2:texlive-epsf-svn21461.2.7.4-45.el7.noarch
--> Processing Dependency: texlive-kpathsea-bin for package: 2:texlive-epsf-svn21461.2.7.4-45.el7.noarch
--> Processing Dependency: tex-kpathsea for package: 2:texlive-epsf-svn21461.2.7.4-45.el7.noarch
--> Running transaction check
---> Package texlive-base.noarch 2:2012-45.20130427_r30134.el7 will be installed
---> Package texlive-kpathsea.noarch 2:svn28792.0-45.el7 will be installed
---> Package texlive-kpathsea-bin.x86_64 2:svn27347.0-45.20130427_r30134.el7 will be installed
--> Processing Dependency: texlive-kpathsea-lib = 2:2012-45.20130427_r30134.el7 for package: 2:texlive-kpathsea-bin-svn27347.0-45.20130427_r30134.el7.x86_64
--> Processing Dependency: libkpathsea.so.6()(64bit) for package: 2:texlive-kpathsea-bin-svn27347.0-45.20130427_r30134.el7.x86_64
--> Running transaction check
---> Package texlive-kpathsea-lib.x86_64 2:2012-45.20130427_r30134.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================
Installing:
texlive-epsf noarch 2:svn21461.2.7.4-45.el7 /texlive-epsf-svn21461.2.7.4-45.el7.noarch 53 k
Installing for dependencies:
texlive-base noarch 2:2012-45.20130427_r30134.el7 rhel7 326 k
texlive-kpathsea noarch 2:svn28792.0-45.el7 rhel7 141 k
texlive-kpathsea-bin x86_64 2:svn27347.0-45.20130427_r30134.el7 rhel7 41 k
texlive-kpathsea-lib x86_64 2:2012-45.20130427_r30134.el7 rhel7 79 k
Transaction Summary
=====================================================================================================================================
Install 1 Package (+4 Dependent packages)
Total size: 640 k
Total download size: 587 k
Installed size: 2.1 M
Is this ok [y/d/N]: y
Downloading packages:
-------------------------------------------------------------------------------------------------------------------------------------
Total 93 MB/s | 587 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 2:texlive-kpathsea-lib-2012-45.20130427_r30134.el7.x86_64 1/5
Installing : 2:texlive-kpathsea-bin-svn27347.0-45.20130427_r30134.el7.x86_64 2/5
Installing : 2:texlive-kpathsea-svn28792.0-45.el7.noarch 3/5
Installing : 2:texlive-base-2012-45.20130427_r30134.el7.noarch 4/5
Installing : 2:texlive-epsf-svn21461.2.7.4-45.el7.noarch 5/5
Verifying : 2:texlive-kpathsea-svn28792.0-45.el7.noarch 1/5
Verifying : 2:texlive-base-2012-45.20130427_r30134.el7.noarch 2/5
Verifying : 2:texlive-epsf-svn21461.2.7.4-45.el7.noarch 3/5
Verifying : 2:texlive-kpathsea-bin-svn27347.0-45.20130427_r30134.el7.x86_64 4/5
Verifying : 2:texlive-kpathsea-lib-2012-45.20130427_r30134.el7.x86_64 5/5
Installed:
texlive-epsf.noarch 2:svn21461.2.7.4-45.el7
Dependency Installed:
texlive-base.noarch 2:2012-45.20130427_r30134.el7 texlive-kpathsea.noarch 2:svn28792.0-45.el7
texlive-kpathsea-bin.x86_64 2:svn27347.0-45.20130427_r30134.el7 texlive-kpathsea-lib.x86_64 2:2012-45.20130427_r30134.el7
Complete! ## 成功
继续安装 texinfo-tex-5.1-5.el7.x86_64.rpm
[root@localhost home]# yum install texinfo-tex-5.1-5.el7.x86_64.rpm
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Examining texinfo-tex-5.1-5.el7.x86_64.rpm: texinfo-tex-5.1-5.el7.x86_64
Marking texinfo-tex-5.1-5.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package texinfo-tex.x86_64 0:5.1-5.el7 will be installed
--> Processing Dependency: texinfo = 5.1-5.el7 for package: texinfo-tex-5.1-5.el7.x86_64
--> Processing Dependency: /usr/bin/texconfig-sys for package: texinfo-tex-5.1-5.el7.x86_64
--> Processing Dependency: /usr/bin/texconfig-sys for package: texinfo-tex-5.1-5.el7.x86_64
--> Processing Dependency: tex(tex) for package: texinfo-tex-5.1-5.el7.x86_64
Verifying : 2:texlive-texlive.infra-svn28217.0-45.el7.noarch 51/53
………………
texlive-bibtex.noarch 2:svn26689.0.99d-45.el7
texlive-bibtex-bin.x86_64 2:svn26509.0-
texlive-pdftex-bin.x86_64 2:svn27321.0-45.20130427_r30134.el7
texlive-plain.noarch 2:svn26647.0-45.el7
texlive-tetex.noarch 2:svn29585.3.0-45.el7
texlive-tetex-bin.noarch 2:svn27344.0-45.20130427_r30134.el7
texlive-tex.noarch 2:svn26689.3.1415926-45.el7
texlive-tex-bin.x86_64 2:svn26912.0-45.20130427_r30134.el7
texlive-texconfig.noarch 2:svn29349.0-45.el7
texlive-texconfig-bin.noarch 2:svn27344.0-45.20130427_r30134.el7
texlive-texlive.infra.noarch 2:svn28217.0-45.el7
texlive-texlive.infra-bin.x86_64 2:svn22566.0-45.20130427_r30134.el7
texlive-xdvi.noarch 2:svn26689.22.85-45.el7
texlive-xdvi-bin.x86_64 2:svn26509.0-45.20130427_r30134.el7
zziplib.x86_64 0:0.13.62-12.el7
Complete!
继续安装R:
[root@localhost home]# yum install R
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package R.x86_64 0:3.6.0-1.el7 will be installed
--> Processing Dependency: R-devel = 3.6.0-1.el7 for package: R-3.6.0-1.el7.x86_64
--> Processing Dependency: libRmath-devel = 3.6.0-1.el7 for package: R-3.6.0-1.el7.x86_64
--> Processing Dependency: R-java = 3.6.0-1.el7 for package: R-3.6.0-1.el7.x86_64
--> Running transaction check
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 2:texlive-graphics-svn25405.1.0o-45.el7.noarch 1/198
Installing : 2:texlive-tools-svn26263.0-45.el7.noarch 2/198
Installing : 2:texlive-amsmath-svn29327.2.14-45.el7.noarch 3/198
Installing : 2:texlive-xkeyval-svn27995.2.6a-45.el7.noarch 4/198
Installing : 2:texlive-url-svn16864.3.2-45.el7.noarch 5/198
Installing : 2:texlive-booktabs-svn15878.1.61803-45.el7.noarch 6/198……………………………………
texlive-type1cm.noarch 2:svn21820.0-45.el7
texlive-typehtml.noarch 2:svn17134.0-45.el7
texlive-ucs.noarch 2:svn27549.2.1-45.el7
texlive-underscore.noarch 2:svn18261.0-45.el7
texlive-unicode-math.noarch 2:svn29413.0.7d-45.el7
texlive-url.noarch 2:svn16864.3.2-45.el7
texlive-utopia.noarch 2:svn15878.0-45.el7
texlive-varwidth.noarch 2:svn24104.0.92-45.el7
texlive-wasy.noarch 2:svn15878.0-45.el7
texlive-wasysym.noarch 2:svn15878.2.0-45.el7
texlive-xcolor.noarch 2:svn15878.2.11-45.el7
texlive-xkeyval.noarch 2:svn27995.2.6a-45.el7
texlive-xunicode.noarch 2:svn23897.0.981-45.el7
texlive-zapfchan.noarch 2:svn28614.0-45.el7
texlive-zapfding.noarch 2:svn28614.0-45.el7
tk.x86_64 1:8.5.13-6.el7
tk-devel.x86_64 1:8.5.13-6.el7
tre.x86_64 0:0.8.0-18.20140228gitc2f5d13.el7
tre-common.noarch 0:0.8.0-18.20140228gitc2f5d13.el7
tre-devel.x86_64 0:0.8.0-18.20140228gitc2f5d13.el7
xz-devel.x86_64 0:5.2.2-1.el7
zlib-devel.x86_64 0:1.2.7-18.el7
Complete! ## 成功,
测试R:
[root@localhost home]# R
R version 3.6.0 (2019-04-26) -- "Planting of a Tree"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-redhat-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> rep(2,5)
[1] 2 2 2 2 2
> sample(1:10,6)
[1] 1 6 7 8 10 3
> quit()
Save workspace image? [y/n/c]: n
[root@localhost home]# R --version
R version 3.6.0 (2019-04-26) -- "Planting of a Tree"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-redhat-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.
[root@localhost home]# which R
/usr/bin/R
安装完成。