nx10 / httpgd

Asynchronous http server graphics device for R.
https://nx10.github.io/httpgd
GNU General Public License v2.0
368 stars 19 forks source link

httpgd package can not be installed #98

Closed seedvestige closed 2 years ago

seedvestige commented 2 years ago

I tried to install httpgd package in R, but it showed error as below during installation.

C++17 standard requested but CXX17 is not defined

R was installed in Centos7, R version is 4.1.2

Thank you so much for your help!

nx10 commented 2 years ago

Thank for checking out httpgd.

It seems like you have to update your C++ compiler.

I never used CentOS myself so I am not sure how this is done there.

Let me know if this helps.

nx10 commented 2 years ago

If you have a modern compiler installed you may have to point R towards it in the ~/.R/Makevars by adding something like:

CXX17 = g++-7 -std=gnu++17 -fPIC

https://travis-ci.community/t/error-in-shlib-internal-args-c-17-standard-requested-but-cxx17-is-not-defined/6748/4

seedvestige commented 2 years ago

Thank you so much, I have solved this problem by installing the new version GCC.