0

So I am trying to run the following code in R

command = paste("./WMCSim",HTM,sc,HTM,fa,ccm,sep=" ")
setwd("/home/build")
system(command)

and then I got the following error

./WMCSim: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by ./WMCSim)

Any suggestions as to how I can fix this problem? I usually run R on a windows machine so I am a little confused debugging it on Linux. Thanks!

user6291
  • 541
  • 5
  • 17

1 Answers1

1

Check out this- Save your R script in a file(example a.R)

If you want the output to print to the terminal it is best to use Rscript

Rscript a.R

Note that when using R CMD BATCH a.R that instead of redirecting output to standard out and displaying on the terminal a new file called a.Rout will be created.

R CMD BATCH a.R
# Check the output
cat a.Rout
Sathish
  • 3,740
  • 1
  • 17
  • 28