Ubuntu上的R Packages安装错误

时间:2014-02-03 10:45:35

标签: r

我正在尝试安装R包" colorspace"在Ubuntu Linux中从本地存储库如下:

    install.packages("/home/colorspace_1.2-4.tar.gz", repos = NULL, type="source")

这会引发以下错误:

Installing package into '/home/vertica/R/x86_64-unknown-linux-gnu-library/3.0'
(as 'lib' is unspecified)
* installing *source* package 'colorspace' ...
** package 'colorspace' successfully unpacked and MD5 sums checked
** libs
sh: make: command not found
ERROR: compilation failed for package 'colorspace'
* removing '/home/vertica/R/x86_64-unknown-linux-gnu-library/3.0/colorspace'
Warning message:
In install.packages("/home/colorspace_1.2-4.tar.gz",  :
  installation of package '/home/colorspace_1.2-4.tar.gz' had non-zero exit      
status

有人可以帮我解决这个问题吗?

谢谢。

拉​​维

1 个答案:

答案 0 :(得分:1)

它说它找不到“make”,这让我觉得你没有所有编译器等等你需要从源代码构建包。

安装“build-essential”软件包,例如:

 sudo apt-get install build-essential

从您的命令行(而不是从R!)