linux 系统中 如何安装 R

 

1、查看系统

[root@localhost home]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.0 (Maipo)

 

2、yum安装R

[root@localhost home]# yum install R
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
No package R available.
Error: Nothing to do

 

3、安装epel-release

[root@localhost home]# yum install epel-release
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
No package epel-release available.
Error: Nothing to do

 

4、下载、安装epel-release

[root@localhost home]# wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
--2021-01-31 13:49:19--  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.24, 38.145.60.23
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      9.33KB/s   in 1.6s

2021-01-31 13:49:22 (9.33 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, subscription-manager
This system is not registered to Red Hat Subscription Management. 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!

 

5、再次安装R

[root@localhost home]# yum install R
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.


 One of the configured repositories failed (Unknown),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Disable the repository, so yum won't use it by default. Yum will then
        just ignore the repository until you permanently enable it again or use
        --enablerepo for temporary usage:

            yum-config-manager --disable <repoid>

     4. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true

Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again

 

6、修改配置文件

[root@localhost home]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# ls
epel.repo  epel-testing.repo  packagekit-media.repo  rhel7.repo
[root@localhost yum.repos.d]# vim epel.repo
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
#metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch&infra=$infra&content=$contentdir
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

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

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

 

7、

[root@localhost yum.repos.d]# cd /home/
[root@localhost home]# ls
epel-release-latest-7.noarch.rpm  liujiaxin01
[root@localhost home]#
[root@localhost home]# ls
epel-release-latest-7.noarch.rpm  liujiaxin01
[root@localhost home]# yum install R
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
epel                                                                                                          | 4.7 kB  00:00:00
rhel7                                                                                                         | 4.1 kB  00:00:00
(1/3): epel/x86_64/group_gz                                                                                   |  95 kB  00:00:02
(2/3): epel/x86_64/updateinfo                                                                                 | 1.0 MB  00:00:04
(3/3): epel/x86_64/primary_db                                                                                 | 6.9 MB  00:00:13
Resolving Dependencies---> Package R.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---> Package zziplib.x86_64 0:0.13.62-5.el7 will be installed
--> Finished Dependency Resolution
Error: Package: R-core-3.6.0-1.el7.x86_64 (epel)
           Requires: libpcre2-8.so.0()(64bit)
Error: Package: R-core-devel-3.6.0-1.el7.x86_64 (epel)
           Requires: texinfo-tex
Error: Package: R-core-devel-3.6.0-1.el7.x86_64 (epel)
           Requires: pcre2-devel
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

 

8、下载安装libpcre2-8.so.0()(64bit)

下载地址:https://centos.pkgs.org/7/centos-x86_64/pcre2-10.23-2.el7.x86_64.rpm.html

 

 

 

[root@localhost home]# wget http://mirror.centos.org/centos/7/os/x86_64/Packages/pcre2-10.23-2.el7.x86_64.rpm
--2021-01-31 13:57:36--  http://mirror.centos.org/centos/7/os/x86_64/Packages/pcre2-10.23-2.el7.x86_64.rpm
Resolving mirror.centos.org (mirror.centos.org)... 13.233.140.107, 2406:da1a:fcb:2f01:b6e2:c6:795:b503
Connecting to mirror.centos.org (mirror.centos.org)|13.233.140.107|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 206176 (201K) [application/x-rpm]
Saving to: ‘pcre2-10.23-2.el7.x86_64.rpm’

100%[===========================================================================================>] 206,176     5.30KB/s   in 37s

2021-01-31 13:58:13 (5.42 KB/s) - ‘pcre2-10.23-2.el7.x86_64.rpm’ saved [206176/206176]

[root@localhost home]# ls
epel-release-latest-7.noarch.rpm  liujiaxin01  pcre2-10.23-2.el7.x86_64.rpm
[root@localhost home]# yum install pcre2-10.23-2.el7.x86_64.rpm
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Examining pcre2-10.23-2.el7.x86_64.rpm: pcre2-10.23-2.el7.x86_64
Marking pcre2-10.23-2.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package pcre2.x86_64 0:10.23-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================
 Package                 Arch                     Version                          Repository                                   Size
=====================================================================================================================================
Installing:
 pcre2                   x86_64                   10.23-2.el7                      /pcre2-10.23-2.el7.x86_64                   556 k

Transaction Summary
=====================================================================================================================================
Install  1 Package

Total size: 556 k
Installed size: 556 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : pcre2-10.23-2.el7.x86_64                                                                                          1/1
  Verifying  : pcre2-10.23-2.el7.x86_64                                                                                          1/1

Installed:
  pcre2.x86_64 0:10.23-2.el7

Complete!

 

9、测试安装R

[root@localhost home]# yum install R
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. 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
…………
--> 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-32.el7 will be installed
---> Package zziplib.x86_64 0:0.13.62-5.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

 

10、下载安装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-31 14:05:47--  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)... 54.169.224.98, 2406:da1a:fcb:2f01:b6e2:c6:795:b503
Connecting to mirror.centos.org (mirror.centos.org)|54.169.224.98|: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.62KB/s   in 56s

2021-01-31 14:06:44 (9.72 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-10.23-2.el7.x86_64.rpm  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, subscription-manager
This system is not registered to Red Hat Subscription Management. 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-utf16(x86-64) = 10.23-2.el7 for package: pcre2-devel-10.23-2.el7.x86_64
--> 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-16.so.0()(64bit) 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.2-16.el7 will be installed
--> Processing Dependency: cpp = 4.8.2-16.el7 for package: gcc-4.8.2-16.el7.x86_64
--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.2-16.el7.x86_64
--> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.2-16.el7.x86_64
---> Package pcre2-devel.x86_64 0:10.23-2.el7 will be installed
--> Processing Dependency: pcre2-utf16(x86-64) = 10.23-2.el7 for package: pcre2-devel-10.23-2.el7.x86_64
--> Processing Dependency: pcre2-utf32(x86-64) = 10.23-2.el7 for package: pcre2-devel-10.23-2.el7.x86_64
--> Processing Dependency: libpcre2-16.so.0()(64bit) 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.2-16.el7 will be installed
---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed
---> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed
---> Package pcre2-devel.x86_64 0:10.23-2.el7 will be installed
--> Processing Dependency: pcre2-utf16(x86-64) = 10.23-2.el7 for package: pcre2-devel-10.23-2.el7.x86_64
--> Processing Dependency: pcre2-utf32(x86-64) = 10.23-2.el7 for package: pcre2-devel-10.23-2.el7.x86_64
--> Processing Dependency: libpcre2-16.so.0()(64bit) 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: libpcre2-16.so.0()(64bit)
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: pcre2-utf16(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

 

11、下载安装 libpcre2-16.so.0()(64bit)  (名称可能不一致,问题不大)

[root@localhost home]# wget http://mirror.centos.org/centos/7/os/x86_64/Packages/pcre2-utf16-10.23-2.el7.x86_64.rpm
--2021-01-31 14:09:19--  http://mirror.centos.org/centos/7/os/x86_64/Packages/pcre2-utf16-10.23-2.el7.x86_64.rpm
Resolving mirror.centos.org (mirror.centos.org)... 147.75.93.107, 2604:1380:3000:2800::1
Connecting to mirror.centos.org (mirror.centos.org)|147.75.93.107|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 193308 (189K) [application/x-rpm]
Saving to: ‘pcre2-utf16-10.23-2.el7.x86_64.rpm’

100%[===========================================================================================>] 193,308     76.2KB/s   in 2.5s

2021-01-31 14:09:22 (76.2 KB/s) - ‘pcre2-utf16-10.23-2.el7.x86_64.rpm’ saved [193308/193308]

[root@localhost home]# ls
epel-release-latest-7.noarch.rpm  pcre2-10.23-2.el7.x86_64.rpm        pcre2-utf16-10.23-2.el7.x86_64.rpm
liujiaxin01                       pcre2-devel-10.23-2.el7.x86_64.rpm
[root@localhost home]# yum install pcre2-utf16-10.23-2.el7.x86_64.rpm
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Examining pcre2-utf16-10.23-2.el7.x86_64.rpm: pcre2-utf16-10.23-2.el7.x86_64
Marking pcre2-utf16-10.23-2.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package pcre2-utf16.x86_64 0:10.23-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================
 Package                    Arch                  Version                       Repository                                      Size
=====================================================================================================================================
Installing:
 pcre2-utf16                x86_64                10.23-2.el7                   /pcre2-utf16-10.23-2.el7.x86_64                501 k

Transaction Summary
=====================================================================================================================================
Install  1 Package

Total size: 501 k
Installed size: 501 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : pcre2-utf16-10.23-2.el7.x86_64                                                                                    1/1
  Verifying  : pcre2-utf16-10.23-2.el7.x86_64                                                                                    1/1

Installed:
  pcre2-utf16.x86_64 0:10.23-2.el7

Complete!

 

12、再次安装 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, subscription-manager
This system is not registered to Red Hat Subscription Management. 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.2-16.el7 will be installed
--> Processing Dependency: cpp = 4.8.2-16.el7 for package: gcc-4.8.2-16.el7.x86_64
--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.2-16.el7.x86_64
--> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.2-16.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.2-16.el7 will be installed
---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed
---> Package mpfr.x86_64 0:3.1.1-4.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

 

13、下载安装pcre2-utf32(x86-64) 

[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-31 14:12:51--  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)... 147.75.93.107, 2401:78c0::e00e
Connecting to mirror.centos.org (mirror.centos.org)|147.75.93.107|: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     9.68KB/s   in 21s

2021-01-31 14:13:14 (8.62 KB/s) - ‘pcre2-utf32-10.23-2.el7.x86_64.rpm’ saved [184872/184872]

[root@localhost home]# ls
epel-release-latest-7.noarch.rpm  pcre2-10.23-2.el7.x86_64.rpm        pcre2-utf16-10.23-2.el7.x86_64.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, subscription-manager
This system is not registered to Red Hat Subscription Management. 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!

 

14、再次安装 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, subscription-manager
This system is not registered to Red Hat Subscription Management. 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.2-16.el7 will be installed
--> Processing Dependency: cpp = 4.8.2-16.el7 for package: gcc-4.8.2-16.el7.x86_64
--> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.2-16.el7.x86_64
--> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.2-16.el7.x86_64
--> Running transaction check
---> Package cpp.x86_64 0:4.8.2-16.el7 will be installed
---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed
---> Package mpfr.x86_64 0:3.1.1-4.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.2-16.el7                  rhel7                                          5.9 M
 gcc                        x86_64                4.8.2-16.el7                  rhel7                                           16 M
 libmpc                     x86_64                1.0.1-3.el7                   rhel7                                           51 k
 mpfr                       x86_64                3.1.1-4.el7                   rhel7                                          203 k

Transaction Summary
=====================================================================================================================================
Install  1 Package (+4 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                                                                                                292 MB/s |  22 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : mpfr-3.1.1-4.el7.x86_64                                                                                           1/5
  Installing : libmpc-1.0.1-3.el7.x86_64                                                                                         2/5
  Installing : cpp-4.8.2-16.el7.x86_64                                                                                           3/5
  Installing : gcc-4.8.2-16.el7.x86_64                                                                                           4/5
  Installing : pcre2-devel-10.23-2.el7.x86_64                                                                                    5/5
  Verifying  : pcre2-devel-10.23-2.el7.x86_64                                                                                    1/5
  Verifying  : gcc-4.8.2-16.el7.x86_64                                                                                           2/5
  Verifying  : mpfr-3.1.1-4.el7.x86_64                                                                                           3/5
  Verifying  : cpp-4.8.2-16.el7.x86_64                                                                                           4/5
  Verifying  : libmpc-1.0.1-3.el7.x86_64                                                                                         5/5

Installed:
  pcre2-devel.x86_64 0:10.23-2.el7

Dependency Installed:
  cpp.x86_64 0:4.8.2-16.el7       gcc.x86_64 0:4.8.2-16.el7       libmpc.x86_64 0:1.0.1-3.el7       mpfr.x86_64 0:3.1.1-4.el7

Complete!

 

15、再次安装R

[root@localhost home]# yum install R
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. 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
…………
---> Package zziplib.x86_64 0:0.13.62-5.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

 

16、下载安装texinfo-tex

[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 14:17:17--  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)... 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: 149820 (146K) [application/x-rpm]
Saving to: ‘texinfo-tex-5.1-5.el7.x86_64.rpm’

100%[===========================================================================================>] 149,820     8.01KB/s   in 28s

2021-01-31 14:17:46 (5.19 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-utf16-10.23-2.el7.x86_64.rpm
pcre2-10.23-2.el7.x86_64.rpm      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, subscription-manager
This system is not registered to Red Hat Subscription Management. 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(epsf.tex) for package: texinfo-tex-5.1-5.el7.x86_64
--> Processing Dependency: tex(tex) for package: texinfo-tex-5.1-5.el7.x86_64
--> 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
…………
---> Package texlive-texlive.infra-bin.x86_64 2:svn22566.0-32.20130427_r30134.el7 will be installed
--> 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: tex(epsf.tex) for package: texinfo-tex-5.1-5.el7.x86_64
---> Package zziplib.x86_64 0:0.13.62-5.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)
Error: Package: texinfo-tex-5.1-5.el7.x86_64 (/texinfo-tex-5.1-5.el7.x86_64)
           Requires: texinfo = 5.1-5.el7
           Available: texinfo-5.1-4.el7.x86_64 (rhel7)
               texinfo = 5.1-4.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

 

17、下载安装tex(epsf.tex)

[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 14:21:12--  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)... 147.75.93.107, 2604:1380:3000:2800::1
Connecting to mirror.centos.org (mirror.centos.org)|147.75.93.107|: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      28.3KB/s   in 0.9s

2021-01-31 14:21:13 (28.3 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-utf16-10.23-2.el7.x86_64.rpm  texlive-epsf-svn21461.2.7.4-45.el7.noarch.rpm
pcre2-10.23-2.el7.x86_64.rpm      pcre2-utf32-10.23-2.el7.x86_64.rpm
[root@localhost home]# yum install texlive-epsf-svn21461.2.7.4-45.el7.noarch.rpm
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. 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-32.20130427_r30134.el7 will be installed
---> Package texlive-kpathsea.noarch 2:svn28792.0-32.el7 will be installed
---> Package texlive-kpathsea-bin.x86_64 2:svn27347.0-32.20130427_r30134.el7 will be installed
--> Processing Dependency: texlive-kpathsea-lib = 2:2012-32.20130427_r30134.el7 for package: 2:texlive-kpathsea-bin-svn27347.0-32.20130427_r30134.el7.x86_64
--> Processing Dependency: libkpathsea.so.6()(64bit) for package: 2:texlive-kpathsea-bin-svn27347.0-32.20130427_r30134.el7.x86_64
--> Running transaction check
---> Package texlive-kpathsea-lib.x86_64 2:2012-32.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-32.20130427_r30134.el7              rhel7                                          322 k
 texlive-kpathsea         noarch     2:svn28792.0-32.el7                        rhel7                                          139 k
 texlive-kpathsea-bin     x86_64     2:svn27347.0-32.20130427_r30134.el7        rhel7                                           39 k
 texlive-kpathsea-lib     x86_64     2:2012-32.20130427_r30134.el7              rhel7                                           77 k

Transaction Summary
=====================================================================================================================================
Install  1 Package (+4 Dependent packages)

Total size: 630 k
Total download size: 577 k
Installed size: 2.1 M
Is this ok [y/d/N]: y
Downloading packages:
-------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                 91 MB/s | 577 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 2:texlive-base-2012-32.20130427_r30134.el7.noarch                                                                 1/5
  Installing : 2:texlive-kpathsea-lib-2012-32.20130427_r30134.el7.x86_64                                                         2/5
  Installing : 2:texlive-kpathsea-bin-svn27347.0-32.20130427_r30134.el7.x86_64                                                   3/5
  Installing : 2:texlive-kpathsea-svn28792.0-32.el7.noarch                                                                       4/5
  Installing : 2:texlive-epsf-svn21461.2.7.4-45.el7.noarch                                                                       5/5
  Verifying  : 2:texlive-kpathsea-svn28792.0-32.el7.noarch                                                                       1/5
  Verifying  : 2:texlive-epsf-svn21461.2.7.4-45.el7.noarch                                                                       2/5
  Verifying  : 2:texlive-kpathsea-lib-2012-32.20130427_r30134.el7.x86_64                                                         3/5
  Verifying  : 2:texlive-kpathsea-bin-svn27347.0-32.20130427_r30134.el7.x86_64                                                   4/5
  Verifying  : 2:texlive-base-2012-32.20130427_r30134.el7.noarch                                                                 5/5

Installed:
  texlive-epsf.noarch 2:svn21461.2.7.4-45.el7

Dependency Installed:
  texlive-base.noarch 2:2012-32.20130427_r30134.el7                    texlive-kpathsea.noarch 2:svn28792.0-32.el7
  texlive-kpathsea-bin.x86_64 2:svn27347.0-32.20130427_r30134.el7      texlive-kpathsea-lib.x86_64 2:2012-32.20130427_r30134.el7

Complete!

 

18、再次安装texinfo-tex

[root@localhost home]# yum install texinfo-tex-5.1-5.el7.x86_64.rpm
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. 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
…………
--> 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
---> Package zziplib.x86_64 0:0.13.62-5.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: texinfo = 5.1-5.el7
           Available: texinfo-5.1-4.el7.x86_64 (rhel7)
               texinfo = 5.1-4.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

 

19、下载安装texinfo

[root@localhost home]# wget http://mirror.centos.org/centos/7/os/x86_64/Packages/texinfo-5.1-5.el7.x86_64.rpm
--2021-01-31 14:25:38--  http://mirror.centos.org/centos/7/os/x86_64/Packages/texinfo-5.1-5.el7.x86_64.rpm
Resolving mirror.centos.org (mirror.centos.org)... 160.116.15.18, 2406:da1a:fcb:2f01:b6e2:c6:795:b503
Connecting to mirror.centos.org (mirror.centos.org)|160.116.15.18|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 984432 (961K) [application/x-rpm]
Saving to: ‘texinfo-5.1-5.el7.x86_64.rpm’

100%[===========================================================================================>] 984,432     7.16KB/s   in 2m 14s

2021-01-31 14:27:53 (7.15 KB/s) - ‘texinfo-5.1-5.el7.x86_64.rpm’ saved [984432/984432]

[root@localhost home]# ls
epel-release-latest-7.noarch.rpm  pcre2-devel-10.23-2.el7.x86_64.rpm  texinfo-5.1-5.el7.x86_64.rpm
liujiaxin01                       pcre2-utf16-10.23-2.el7.x86_64.rpm  texinfo-tex-5.1-5.el7.x86_64.rpm
pcre2-10.23-2.el7.x86_64.rpm      pcre2-utf32-10.23-2.el7.x86_64.rpm  texlive-epsf-svn21461.2.7.4-45.el7.noarch.rpm
[root@localhost home]# yum install texinfo-5.1-5.el7.x86_64.rpm
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Examining texinfo-5.1-5.el7.x86_64.rpm: texinfo-5.1-5.el7.x86_64
Marking texinfo-5.1-5.el7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package texinfo.x86_64 0:5.1-5.el7 will be installed
--> Processing Dependency: perl(Locale::Messages) for package: texinfo-5.1-5.el7.x86_64
--> Running transaction check
---> Package perl-libintl.x86_64 0:1.20-12.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================
 Package                       Arch                    Version                      Repository                                  Size
=====================================================================================================================================
Installing:
 texinfo                       x86_64                  5.1-5.el7                    /texinfo-5.1-5.el7.x86_64                  3.7 M
Installing for dependencies:
 perl-libintl                  x86_64                  1.20-12.el7                  rhel7                                      875 k

Transaction Summary
=====================================================================================================================================
Install  1 Package (+1 Dependent package)

Total size: 4.5 M
Total download size: 875 k
Installed size: 8.0 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : perl-libintl-1.20-12.el7.x86_64                                                                                   1/2
  Installing : texinfo-5.1-5.el7.x86_64                                                                                          2/2
  Verifying  : texinfo-5.1-5.el7.x86_64                                                                                          1/2
  Verifying  : perl-libintl-1.20-12.el7.x86_64                                                                                   2/2

Installed:
  texinfo.x86_64 0:5.1-5.el7

Dependency Installed:
  perl-libintl.x86_64 0:1.20-12.el7

Complete!

 

20、再次安装texinfo-tex

[root@localhost home]# yum install texinfo-tex-5.1-5.el7.x86_64.rpm
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. 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
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================
 Package                                  Arch      Version                                   Repository                        Size
=====================================================================================================================================
Installing:
 texinfo-tex                              x86_64    5.1-5.el7                                 /texinfo-tex-5.1-5.el7.x86_64    436 k
Installing for dependencies:
 libXaw                                   x86_64    1.0.11-6.1.el7                            rhel7                            189 k
 texlive-amsfonts                         noarch    2:svn29208.3.04-32.el7                    rhel7                            3.6 M
 texlive-texlive.infra-bin                x86_64    2:svn22566.0-32.20130427_r30134.el7       rhel7                             16 k
 texlive-xdvi                             noarch    2:svn26689.22.85-32.el7                   rhel7                             60 k
 texlive-xdvi-bin                         x86_64    2:svn26509.0-32.20130427_r30134.el7       rhel7                            277 k
 zziplib                                  x86_64    0.13.62-5.el7                             rhel7                             81 k

Transaction Summary
=====================================================================================================================================
Install  1 Package (+50 Dependent packages)

Total size: 12 M
Total download size: 11 M
Installed size: 33 M
Is this ok [y/d/N]: y
Downloading packages:
-------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                146 MB/s |  11 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 2:texlive-hyphen-base-svn29197.0-32.el7.noarch                                                                   1/51
  Installing : 2:texlive-tetex-bin-svn27344.0-32.20130427_r30134.el7.noarch                                                     2/51
  Installing : 2:texlive-tetex-svn29585.3.0-32.el7.noarch                                                                       3/51
  Verifying  : 2:texlive-tex-svn26689.3.1415926-32.el7.noarch                                                                  48/51
  Verifying  : 2:texlive-metafont-svn26689.2.718281-32.el7.noarch                                                              49/51
  Verifying  : 2:texlive-gsftopk-svn26689.1.19.2-32.el7.noarch                                                                 50/51
  Verifying  : 2:texlive-glyphlist-svn28576.0-32.el7.noarch                                                                    51/51

Installed:
  texinfo-tex.x86_64 0:5.1-5.el7

Dependency Installed:
  libXaw.x86_64 0:1.0.11-6.1.el7
  texlive-amsfonts.noarch 2:svn29208.3.04-32.el7
  texlive-bibtex.noarch 2:svn26689.0.99d-32.el7
  texlive-bibtex-bin.x86_64 2:svn26509.0-32.20130427_r30134.el7
  texlive-cm.noarch 2:svn29581.0-32.el7
  texlive-collection-basic.noarch 2:svn26314.0-32.20130427_r30134.el7
  texlive-collection-documentation-base.noarch 2:svn17091.0-32.20130427_r30134.el7
  texlive-dvipdfm.noarch 2:svn26689.0.13.2d-32.el7
  texlive-dvipdfm-bin.noarch 2:svn13663.0-32.20130427_r30134.el7
  texlive-dvipdfmx.noarch 2:svn26765.0-32.el7
  texlive-dvipdfmx-bin.x86_64 2:svn26509.0-32.20130427_r30134.el7
  texlive-dvipdfmx-def.noarch 2:svn15878.0-32.el7
  texlive-dvips.noarch 2:svn29585.0-32.el7
  texlive-dvips-bin.x86_64 2:svn26509.0-32.20130427_r30134.el7
  texlive-mfware-bin.x86_64 2:svn26509.0-32.20130427_r30134.el7
  texlive-misc.noarch 2:svn24955.0-32.el7
  texlive-pdftex.noarch 2:svn29585.1.40.11-32.el7
  texlive-pdftex-bin.x86_64 2:svn27321.0-32.20130427_r30134.el7
  texlive-plain.noarch 2:svn26647.0-32.el7
  texlive-tetex.noarch 2:svn29585.3.0-32.el7
  texlive-tetex-bin.noarch 2:svn27344.0-32.20130427_r30134.el7
  texlive-tex.noarch 2:svn26689.3.1415926-32.el7
  texlive-tex-bin.x86_64 2:svn26912.0-32.20130427_r30134.el7
  texlive-texconfig.noarch 2:svn29349.0-32.el7
  texlive-texconfig-bin.noarch 2:svn27344.0-32.20130427_r30134.el7
  texlive-texlive.infra.noarch 2:svn28217.0-32.el7
  texlive-texlive.infra-bin.x86_64 2:svn22566.0-32.20130427_r30134.el7
  texlive-xdvi.noarch 2:svn26689.22.85-32.el7
  texlive-xdvi-bin.x86_64 2:svn26509.0-32.20130427_r30134.el7
  zziplib.x86_64 0:0.13.62-5.el7

Complete!

 

21、再次安装R

[root@localhost home]# yum install R
Loaded plugins: langpacks, product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. 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
…………
  tk-devel.x86_64 1:8.5.13-4.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
  xorg-x11-proto-devel.noarch 0:7.7-8.el7.1
  xz-devel.x86_64 0:5.1.2-8alpha.el7
  zlib-devel.x86_64 0:1.2.7-13.el7

Complete!

 

22、测试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.

> sample(1:10,5)    ## 可以正常使用
[1]  3  5 10  9  1
> quit()
Save workspace image? [y/n/c]: n

 

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


系ubuntu 下面打开终端输入:sudo apt-get install sendmail一般就安装完成噶啦跟住进入 /etc/mail/目录输入:m4 sendmail.mc &gt; sendmail.cf意思系跟住.mc文件 生成 sendmial.cf文件输入呢个命令:ps aux | g
依家我有1个软件goagent目录(大家懂得) 放在/home/gateman/Programs/ 下 1. proxy.py 入面有1个 proxy.py 文件 放在/home/gateman/Programs/goagent/local/ 入面 2.breakwall.sh 我在 proxy.p
其实我想讲的是 cp -L关于-L参数的解释:-L, --dereference always follow symbolic links in SOURCE意思是如果复制目标是1个软链接,则复制链接的目标 不是链接本身做个例子: 例如 ~/tmp/fo1 入面有1个c.txt 文件 和 指向他的软
原地址:http://www.rjgc.net/control/content/content.php?nid=4418 1、将文件checkout到本地目录svn checkout path(path是服务器上的目录)例如:svn checkout svn://192.168.1.1/pro/do
chroot,即 change root directory (更改 root 目录)。在 linux 系统中,系统默认的目录结构都是以 `/`,即是以根 (root) 开始的。而在使用 chroot 之后,系统的目录结构将以指定的位置作为 `/` 位置。实例:用live CD ubuntu假设你的
简单解析下, stdin就是标准输入, stdout就是标准。举个例子, 在当前我要打包1个文件夹 /var/log/ 到当前目录下,并用zip压缩,那么我们可以分步执行#tar -cvf log.tar /var/log/#zip -r log.tar.zip log.tar#rm -rf log
转自:http://man.ddvip.com/linux/Mandrakelinuxref/process-priority.html系统中运行的每个进程都有一个优先级(亦称“nice 值”),其范围从 -20 (最高优先级)到 19 (最低优先级)。默认情况下,进程的优先级是 0 (“基本”调度
str=&quot;/home/gateman&quot; if [ ${str:0:1} = &quot;/&quot; ]; then echo &quot;yes&#39;fi ${str:0:1} 中0表示从第几个字符开始,1表示截取多长
转自:http://kwokchivu.blog.51cto.com/1128937/694347 在RedHat系统下用usermod 命令可把某用户添加进多个附属组,默认情况下,一次性添加多个附属组可用以下方式来添加: usermod -G 附属组1,附属组2,...,附属组X 用户名 但在添加
有个文件 test.txt 内容如下:bash-3.00$ cat test.txt user user user_hiuser #注:呢行系空行T JGATEMANGATTTTTEMANGABBEMANAAABbash-3.00$下面介绍下常用的通配符 配合grep 命令:1. &quot;.&q
linux系统为每1个文件都分配有i索引节点(inode),系统根据呢d节点从磁盘找出数据。 一般来讲,每1个文件名(包含全路径)实际上都链接住1个i索引节点。inode实际上系乜咧? 其实可以算系1个指向磁盘具体位置(柱面,扇区之类)的指针, 系统分析某个文件的inode,得出磁盘柱面,扇区等数据
grep 可以立即为筛选, 一般的用法系 grep + 要查询的字段 + 文件(或者内容 例如| 传递既内容)1.grep + 要查询的字段 + 文件gateman@GPC:~/shell/SQL_GSI$ grep OID a.sqlWHERE OID=@BuildNOWHERE OID INWH
原文转自:http://www.ibm.com/developerworks/cn/linux/l-cn-vimcolumn/index.html开始之前人类大脑对文字的处理是平面式的,所以我们浏览文章、查找资料或者重构代码,要么是横向读,要么是纵向读,要么使用搜索功能,将文字作为一个平面整体。而在
PS:偶很喜欢用scp这个命令来传输数据。scp命令跟cp命令类似,只不过cp命令是在同一台机器上用的,scp是在两台机器上复制传输数据的命令。scp实质相当于利用SSH协议来传输数据的cp命令。 用法举例: 1、复制远程服务器的文件到本地: scp -P888 root@120.18.50.33:
打开终端,进入/bin/ls 一下会见到 bash sh 呢两个文件。其实距地系两个唔同既shell 解析器。如果在脚本a.sh 开头写入#!/bin/sh那么执行./a.sh 时候 就相当于 sh a.sh同理 开头写入#!/bin/bash执行./a.sh 时候 就相当于 bash a.sh如果
find查找文件的时候排除某个或几个文件或目录转自:http://www.cnblogs.com/starspace/archive/2008/10/20/1315380.html比如要在/usr/sam目录下查找不在dir1子目录之内的所有文件find /usr/sam -path &quot;/
假设有变量 var=http://www.google.com/test.htm一 # 号截取,删除左边字符,保留右边字符。echo ${var#*//}其中 var 是变量名,# 号是运算符,*// 表示从左边开始删除第一个 // 号及左边的所有字符即删除 http://结果是 :www.goog
转自: http://edyfox.codecarver.org/html/_vimrc_for_beginners.htmlVIM 中可供用户定制的选项非常非常多,作为初学者,我们没有必要了解这么多东西。下面,滇狐简单列出了一些最常用的配置项,大家可以根据自己的需要将这些内容添加到自己的 .vim
转自:http://www.einit.com/user1/11/archives/2006/3603.htmlUnix/Linux下一般想让某个程序在后台运行,很多都是使用 &amp; 在程序结尾来让程序自动运行。比如我们要运行mysql在后台: /usr/local/mysql/bin/mysq
首先, mount是类unix系统, 挂载设备到1个文件夹的操作命令, 注意系设备阿正常来讲,mount 是不能挂在文件夹到文件夹的。例如, 在我的~/tmp/ 目录中有两个文件夹fo1 fo2其中fo1 中有3个文件a.txt b.txt c.txt fo2 有4个 e.txt d.txt e.t