Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Installing R packages on R server #623

Closed
ArpitJainGrab opened this issue Jan 18, 2018 · 3 comments
Closed

Issue with Installing R packages on R server #623

ArpitJainGrab opened this issue Jan 18, 2018 · 3 comments

Comments

@ArpitJainGrab
Copy link

Hi Hadley,

I have an AWS EMR server (with CentOS 7 as its OS). I want to run R scripts on it.

After installing R, when I tried installing R packages, in most cases I was getting the following errors in the results.

  1. Error in .shlib_internal(args) :
    C++11 standard requested but CXX11 is not defined
  2. installation of package 'lubridate' had non-zero exit status

Some sources said there is an issue with CentOS 7 (the Server OS), and the gcc compiler in it, but am not sure how to fix it. Please help me.

Best Regards,
Arpit Jain

@vspinu
Copy link
Member

vspinu commented Jan 18, 2018

You need gcc 4.8+. See #601. That's the requirement from CCTZ which we really need to push things forward.

@vspinu vspinu closed this as completed Jan 18, 2018
@ArpitJainGrab
Copy link
Author

ArpitJainGrab commented Jan 30, 2018

gcc (GCC) 4.8.3 20140911 (Red Hat 4.8.3-9) installed,
but am still getting the same error

C++11 standard requested but CXX11 is not defined.

Not sure what to do next.

@vspinu
Copy link
Member

vspinu commented Jan 30, 2018

Strange. A cursory search shows that C++11 works on gcc4.8.1. So looks like some local issue. What is the full output of the instalation? Are you sure R picks the right compiler? Do you see -std=c++11 in the compilation command?

I haven't tried 4.8 myself. I picked that number from the description of rcppcctz. Lubridate uses a smaller subset of cctz, so whatever works for them should work for lubridate as well. Could you try and install rcppcctz to see if it works?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants