这个问题是在堆栈溢出before上报告的,但无论我做什么,我仍然会得到同样的东西。每当我尝试安装任何R软件包时,我都会得到以下信息:
install.packages("Hmisc", repos = "http://cran.r-project.org")
Installing package into ‘/home/budjajojo/R_packages’
(as ‘lib’ is unspecified)
trying URL 'http://cran.r-project.org/src/contrib/Hmisc_3.13-0.tar.gz'
Content type 'application/x-gzip' length 587751 bytes (573 Kb)
opened URL
==================================================
downloaded 573 Kb
* installing *source* package ‘Hmisc’ ...
** package ‘Hmisc’ successfully unpacked and MD5 sums checked
** libs
sh: make: command not found
ERROR: compilation failed for package ‘Hmisc’
* removing ‘/home/budjajojo/R_packages/Hmisc’
The downloaded source packages are in
‘/tmp/Rtmp6fA61h/downloaded_packages’
Warning message:
In install.packages("Hmisc", repos = "http://cran.r-project.org") :
installation of package ‘Hmisc’ had non-zero exit status
我正在使用新的openSUSE 13.1。和R版本3.0.2。我从R-patched存储库安装。
除了类似帖子的解决方案,我尝试了以下内容:
当然,以上解决方案均无效。我认为这是gcc问题(版本4.8.1),但我不确定可以做些什么。
答案 0 :(得分:8)
默认情况下,openSUSE没有安装make
。您必须使用Yast安装它或键入终端:
sudo zypper install make
通常,为了确保openSUSE上的R一切正常,即依赖于rgl
的包,我安装所有这些包:
sudo zypper install libpng12-devel xorg-x11-libs freeglut-devel gcc gcc-fortran gcc-c++ make r-base r-base-devel
答案 1 :(得分:0)
在开放式Suse上:
zypper search --type pattern devel
该命令列出了相关的软件包组。 如果需要,请安装。
谢谢!