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:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=zh_CN.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=zh_CN.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=zh_CN.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=zh_CN.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.5.0