在 Linux CentOS 6.2 上安装 R 的问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9468164/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Problems installing R on Linux CentOS 6.2
提问by cayg
When installing R on Linux CentOS 6.2 I get the following:
在 Linux CentOS 6.2 上安装 R 时,我得到以下信息:
Error: Package: R-core-2.10.0-2.el5.x86_64 (/R-core-2.10.0-2.el5.x86_64)
Requires: libtk8.4.so()(64bit)
Error: Package: R-core-2.10.0-2.el5.x86_64 (/R-core-2.10.0-2.el5.x86_64)
Requires: libtcl8.4.so()(64bit)
There are several helps out there for this type of error when using CentOS 4 or 5, but not for 6.2. Has anyone found a solution with this OS version? Thanks!
在使用 CentOS 4 或 5 时,有几种帮助可以解决此类错误,但不适用于 6.2。有没有人找到这个操作系统版本的解决方案?谢谢!
回答by Bill Lynch
回答by mgriebe
The above did not work for me. I had to install tcl.
以上对我不起作用。我必须安装tcl。
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo yum install tcl
sudo yum clean all
sudo yum install R
回答by mark
Now it is even easier:
现在更简单了:
yum install epel-release
yum install R