R 语言 Linux 环境 安装 说明

R 语言 简单介绍

R 语言 Windows 环境 安装 说明

一. 用YUM解决依赖包问题

R 下载地址:

Linux 下的R 安装需要如下rpm包:

[root@rac1 linux_rpm]# ls

libRmath-2.10.0-2.el5.x86_64.rpm        R-core-2.10.0-2.el5.x86_64.rpm

libRmath-devel-2.10.0-2.el5.x86_64.rpm  R-devel-2.10.0-2.el5.x86_64.rpm

R-2.10.0-2.el5.x86_64.rpm

[root@rac1 linux_rpm]# ll

total 32086

-rwxr-xr-x. 1 root root   104394 Mar 4 12:18 libRmath-2.10.0-2.el5.x86_64.rpm

-rwxr-xr-x. 1 root root   151494 Mar 4 12:18 libRmath-devel-2.10.0-2.el5.x86_64.rpm

-rwxr-xr-x. 1 root root    14688 Mar 4 12:18 R-2.10.0-2.el5.x86_64.rpm

-rwxr-xr-x. 1 root root 32495231 Mar  4 12:30 R-core-2.10.0-2.el5.x86_64.rpm

-rwxr-xr-x. 1 root root    88663 Mar 4 12:18 R-devel-2.10.0-2.el5.x86_64.rpm

但是安装这些包会牵涉到很多依赖的包,我们可以使用YUM 来解决这个问题,yum的配置参考:

Linux 使用光盘搭建 本地 YUM 服务器 

用YUM 解决依赖包:

[root@rac1 linux_rpm]# yum install pcre-devel

Loaded plugins: refresh-packagekit

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package pcre-devel.x86_640:7.8-3.1.el6 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================

Package                  Arch                 Version                     Repository          Size

====================================================================================================

Installing:

pcre-devel               x86_64               7.8-3.1.el6                 dave               317 k

Transaction Summary

====================================================================================================

Install       1 Package(s)

Total download size: 317 k

Installed size: 954 k

Is this ok [y/N]: y

Downloading Packages:

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Warning: RPMDB altered outside of yum.

Installing : pcre-devel-7.8-3.1.el6.x86_64                                                    1/1

Installed:

pcre-devel.x86_64 0:7.8-3.1.el6                                                                  

Complete!

[root@rac1 linux_rpm]# yum install tcl-devel

Loaded plugins: refresh-packagekit

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package tcl-devel.x86_641:8.5.7-6.el6 will be installed

--> Processing Dependency: tcl =1:8.5.7-6.el6 for package: 1:tcl-devel-8.5.7-6.el6.x86_64

--> Processing Dependency:libtcl8.5.so()(64bit) for package: 1:tcl-devel-8.5.7-6.el6.x86_64

--> Running transaction check

---> Package tcl.x86_64 1:8.5.7-6.el6will be installed

--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================

Package                 Arch                 Version                      Repository          Size

====================================================================================================

Installing:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/22362.html