2014-07-16 26 views
2

我有运行R version 3.0.2 (2013-09-25)的RedHat 6.5(x86_64-redhat-linux-gnu)。R include目录为空

正如在this SO question中所解释的那样,某些软件包安装得很好,而另一些产生警告“R include目录为空 - 可能需要安装R-devel.rpm或类似软件”。出现此警告时,我也得到make: gcc: Command not found,并且程序包无法编译。

答案显然是安装“开发标题”,但我不确定这是什么意思。被接受的答案并不能解释它。

我试过sudo yum install R-devel,但是我得到一些与依赖相关的错误。

Error: Package: rstudio-0.95.265-1.x86_64 (@oit-el-6-x86_64/6.3) 
     Requires: libRblas.so()(64bit) 
     Removing: R-core-3.0.2-1.el6.x86_64 (@oit-stable-epel-x86_64-6) 
      libRblas.so()(64bit) 
     Updated By: R-core-3.1.0-5.el6.x86_64 (oit-testing-epel-x86_64-6) 
      Not found 
     ... 

Error: Package: rstudio-0.95.265-1.x86_64 (@oit-el-6-x86_64/6.3) 
     Requires: libRlapack.so()(64bit) 
     Removing: R-core-3.0.2-1.el6.x86_64 (@oit-stable-epel-x86_64-6) 
      libRlapack.so()(64bit) 
     Updated By: R-core-3.1.0-5.el6.x86_64 (oit-testing-epel-x86_64-6) 
      Not found 
     ... 

我不确定这是什么意思。 Linux新手。

回答

2

我发现other folks were having trouble with the same dependencies,所以我卸载了RStudio,然后重新安装了最新版本。为了获得最新版本的R,我将yum配置为使用EPEL。

su -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm'

然后我跟着these instructions重新安装R.

su -c 'yum install R R-core R-core-devel R-devel'

这使我安装了需要编译的软件包。