R 2.15在Redhat中安装 [英] R 2.15 install in Redhat
问题描述
我正在尝试在没有管理员权限的服务器上安装R的本地副本.我对服务器或Linux几乎一无所知.我可以通过键入"R"轻松访问R的副本,但是我正在使用的服务器只有R的旧副本(v2.10.1).我至少需要v2.14才能运行我的脚本,尽管我希望安装最新版本.
I am trying to install a local copy of R on a server without admin privileges. I know almost nothing about servers, or linux. I can easily access a copy of R by typing "R", however the server I am working off of only has an old copy of R (v2.10.1). I need at least v2.14 to run my scripts, although I would prefer to install the most recent release.
据我了解,我的服务器运行Redhat e15 x86_64 GNU/Linux.我已将服务器映射到我的Windows计算机,并尝试在服务器上进行Windows R的常规安装,但是当我尝试运行R.exe文件时,出现错误,提示我无法执行二进制文件".
As far as I understand, my server runs Redhat e15 x86_64 GNU/Linux. I have the server mapped to my windows computer, and tried doing a regular install of Windows R onto the server, but when I try and run the R.exe file I get an error stating I "cannot execute binary file".
我在CRAN网站上找到了我应该下载的内容:
I found on the CRAN website what I think I should download:
在linux安装下... redhat/e15/x86_64
Under the linux installation... redhat/e15/x86_64
但是该文件夹仅包含v2.10.我发现了这个关于在Redhat上安装R的线程,但是我仍然对如何(如果可能)安装/构建自己的R副本感到困惑.
But the folder only contains v2.10. I found this thread about installing R on Redhat, but I am still at a loss for how (if possible) to install/build my own copy of R.
推荐答案
通常,从源代码构建R并将其安装到您的主目录中非常容易(我也在工作中这样做).该过程大致可归纳为以下过程:
Generally, building R from source and installing it into your homedirectory is quite easy (I do this too at work). The procedure roughly boils down to the following procedure:
- 创建要在其中安装R的目录,例如
~/progsandlibs/
.您也可以将此目录用于安装的所有其他自定义软件. - 从CRAN下载 R .
- 提取使用
tar
下载的 - 进入
R-2.15.2
目录. - 给出以下命令:
-
./configure --prefix=~/progsandlibs/ --enable-R-shlib
-
make
-
make install
- create a directory in which you want to install R, e.g.
~/progsandlibs/
. You can also use this directory for all other custom software you install. - Download R from CRAN.
- Extract the
tar.gz
file you downloaded usingtar
- Go into the
R-2.15.2
directory. - Give the following commands:
./configure --prefix=~/progsandlibs/ --enable-R-shlib
make
make install
如果以上所有步骤均正常工作,则说明您已经安装了R,并且可以从终端启动它.
If all the steps above worked correctly, you have R installed, and you can start it from your terminal.
这篇关于R 2.15在Redhat中安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
-
tar.gz
文件