在linux下安装R语言程序,我找到以下几个版本:
前言:我的系统是openSuse11.3,可以通过版本二,而其他版本则没有成功。
目录
其中文翻译网址:
关键字:
一键式安装
主要步骤:
找到我的版本11.3,点击install。
结果:
我下载到了两个文件R-patched-devel.ymp
和R-patched.ymp在目录 download中。
之后我不知道该如何操作?安装网页上的教程,点击install之后应该会自动执行Yast的,但是它没有。而在点击该文件时,倒是会调用Yast
结论:
未果
关键字:
使用命令行安装
主要步骤:
(1) 切换到超级用户
(2) 命令行(添加软件源)
zypper ar -f
http://download.opensuse.org/repositories/devel\:languages\:R\:patched/openSUSE_11.3
R-patched
(3)
Suse下安装(文件名)
zypper install R-patched R-patched-devel
will install R and all dependencies.
结果:
命令提示符:见附录哈。
结论:
成功。在终端输入R,会得到提示信息,表明安装成功了。
参考网址:官方网址
关键字:R-2.12.2.tar.gz
主要步骤:
(1) 解压缩
(2) ./configure
(3) Make
结果:
第(2)步出错:configure: error: No F77 compiler
found,意思是找不到可用的fortran编译器。
尝试解决fortran编译器问题:
但是根据提示操作,suse linux识别不了命令patch。
参考网址:记不得了。还提供了一种方案安装fortran编译器。打开系统的yast,在package search中查找fortran,结果我找到了gcc-fortran4.5.但是在提示下安装之后,没什么效果。./configure还是通不过。我不知道编译器安装到哪里了。
参考网址,没有。我自己下载了一个fortran编译器,名字为:gcc-fortran-4.1.0-25.i586.rpm。然后使用命令rpm –ivh
gcc-fortran-4.1.0-25.i586 结果还是出错了:error: Failed dependencies:
gcc = 4.1.0-25 is needed by gcc-fortran-4.1.0-25.i586
结论:
未果,我不会在suse linux下安装fortran编译器。
参考网址:
关键字: rpm软件包
主要步骤:
既然是格式为rpm,那么按照rpm的一半步骤进行安装
结果:
找不到rpm格式的R安装包
尝试解决:
点击网页上提供的链接,错误类型404,网页无法访问。
结论:
未果
附录:
备注:1、(有下划线的地方是需要人工干预的地方,其他地方则是系统自动生成的):
2、zengwei@linux-xed5:~/Project/program/R是我的当前目录
正文:
zengwei@linux-xed5:~/Project/program/R> su
root (步骤一:切换到超级用户)
Password:
linux-xed5:/home/zengwei/Project/program/R # zypper ar
-f (步骤二:添加软件源)
http://download.opensuse.org/repositories/devel\:languages\:R\:patched/openSUSE_11.3
R-patched
Adding repository 'R-patched' [done]
Repository 'R-patched' successfully added
Enabled: Yes
Autorefresh: Yes
URI: http://download.opensuse.org/repositories/devel:languages:R:patched/openSUSE_11.3
linux-xed5:/home/zengwei/Project/program/R # zypper install
R-patched R-patched-devel (步骤三:安装软件)
Retrieving repository 'R-patched' metadata [-]
New repository or package signing key received:
Key ID: A35CB059793371FE
Key Name: devel:languages:R OBS Project
Key Fingerprint:
4BAAC60A1E50F188B7ACB3CDA35CB059793371FE
Key Created: Wed 18 Nov 2009 07:40:30 PM CST
Key Expires: Fri 27 Jan 2012 07:40:30 PM CST
Repository: R-patched
Do you want to reject the key, trust temporarily, or trust
always? [r/t/a/?] (r): t
Retrieving repository 'R-patched' metadata [done]
Building repository 'R-patched' cache [done]
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following NEW packages are going to be installed:
R-patched R-patched-devel tk
3 new packages to install.
Overall download size: 32.8 MiB. After the operation, additional
61.1 MiB will be used.
Continue? [y/n/?] (y): y
Retrieving package tk-8.5.8-3.1.i586 (1/3), 1.4 MiB (3.9 MiB
unpacked)
Installing: tk-8.5.8-3.1 [done]
Retrieving package R-patched-2.12.2-12.1.i586 (2/3), 31.2 MiB
(56.7 MiB unpacked)
Retrieving: R-patched-2.12.2-12.1.i586.rpm [done (56.5
KiB/s)]
Installing: R-patched-2.12.2-12.1 [done]
Additional rpm output:
warning:
/var/cache/zypp/packages/R-patched/i586/R-patched-2.12.2-12.1.i586.rpm:
Header V3 DSA/SHA1 Signature, key ID 793371fe: NOKEY
Retrieving package R-patched-devel-2.12.2-12.1.i586 (3/3), 80.0
KiB (388.0 KiB unpacked)
Retrieving: R-patched-devel-2.12.2-12.1.i586.rpm [done (2.1
KiB/s)]
Installing: R-patched-devel-2.12.2-12.1 [done]
Additional rpm output:
warning:
/var/cache/zypp/packages/R-patched/i586/R-patched-devel-2.12.2-12.1.i586.rpm:
Header V3 DSA/SHA1 Signature, key ID 793371fe: NOKEY
linux-xed5:/home/zengwei/Project/program/R
# (完成)
安装bioconductorR软件包
终端输入R,进入R编辑环境
输入:
source("http://bioconductor.org/biocLite.R")
biocLite()