Can't install R packages on Linux Mint 17

吃可爱长大的小学妹 提交于 2019-12-01 06:45:05

Per the error message

 /bin/bash: g++: command not found

you need to install a C++ compiler. I would start with one of these:

 sudo apt-get install build-essentials        # key tools

or

 sudo apt-get install r-base-dev              # many development tools for R

or of course

 sudo apt-get install r-cran-rcpp             # to not install from source

though the Rcpp you get may be older than the one you need.

There is a list r-sig-debian for users of Debian-based systems.

In my case, I am running a fairly new installation of Mint 18, and I was missing certain packages. Per the error message in R, I attempted to install "readr", but that wouldn't install because I was missing an underlying package, "libcurl4-openssl-dev". I apt-got that, then readr install without error, and now my packages for RStudio load as expected.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!