2014-07-16 25 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'

這使我安裝了需要編譯的軟件包。