简体   繁体   中英

Error related to compilation when using install.packages

I am using R 3.3.3 on raspbian. I'm trying to install packages, and most have worked with no problem. However, when I try to install lubridate it fails and I get an extensive error message. The following part caught my attention:

#error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

I haven't been able to find how to add these compiler options. Any ideas/support would be appreciated.

The solution was to update the compiler by running sudo apt-get install g++

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM