I was trying to run a Rscript under Ubuntu, but something wrong when I ran the Rscript.
Error in jpeg(file = paste(outputFolder, "/vsd_normalized.", readType, : X11 module cannot be loaded In addition: Warning message: In jpeg(file = paste(outputFolder, "/vsd_normalized.", readType, : unable to load shared object '/home/yangyuan/R-3.5.0/modules//R_X11.so': /usr/lib/x86_64-linux-gnu/libcairo.so.2: undefined symbol: FT_Get_Var_Design_Coordinates
I have tried to reinstall X11 module via my terminal : sudo apt install xorg and reinstall relative R packages via conda, but it still didn't work.
I can't find any solutions on the Internet.Is there any idea about these error?How can I solve the problem?
Here are my session information.
> sessionInfo() R version 3.5.0 (2018-04-23) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 18.04.5 LTS Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3 LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.2.20.so locale:  LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C  LC_TIME=zh_CN.UTF-8 LC_COLLATE=en_US.UTF-8  LC_MONETARY=zh_CN.UTF-8 LC_MESSAGES=en_US.UTF-8  LC_PAPER=zh_CN.UTF-8 LC_NAME=C  LC_ADDRESS=C LC_TELEPHONE=C  LC_MEASUREMENT=zh_CN.UTF-8 LC_IDENTIFICATION=C attached base packages:  stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached):  compiler_3.5.0