luca-scr / GA

An R package for optimization using genetic algorithms
http://luca-scr.github.io/GA/
91 stars 29 forks source link

Installation error: C++14 standard requested but CXX14 is not defined #63

Open jsacerot opened 1 year ago

jsacerot commented 1 year ago

I am trying to install GA in a CentOS cluster (I do not have admin privileges) but getting the following error:

> install_github("luca-scr/GA", build = TRUE, build_opts = c("--no-resave-data", "--no-manual"))
Downloading GitHub repo luca-scr/GA@HEAD
✔  checking for file ‘/tmp/RtmpTus3ul/remotes8276c970c80/luca-scr-GA-9cce46c/DESCRIPTION’ (369ms)
─  preparing ‘GA’:
✔  checking DESCRIPTION meta-information ...
─  cleaning src
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘GA_3.2.3.tar.gz’

Installing package into ‘/groups/ajami2/jsat/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
* installing *source* package ‘GA’ ...
** using staged installation
** libs
Error: C++14 standard requested but CXX14 is not defined
* removing ‘/groups/ajami2/jsat/R/x86_64-pc-linux-gnu-library/4.2/GA’
Warning message:
In i.p(...) :
  installation of package ‘/tmp/RtmpTus3ul/file82762217f11d/GA_3.2.3.tar.gz’ had non-zero exit status

Any ideas on how to fix the problem?

Thanks!