Rstudio server
文件/etc/rstudio/rserver.conf里增加内容如下:
# Server Configuration File
#rsession-which-r=/路径到/R/R-4.0.5/bin/R (有些问题?)
rsession-ld-library-path=/路径到/R/R-4.1.1/mybuild/lib/R/lib:/路径到/Intel_oneAPI/mybuild/mkl/latest/lib/intel64
Shiny server
文件/etc/profile.d/shinyserver.sh里增加内容如下:
export MKL_INTERFACE_LAYER="GNU,LP64"
export MKL_THREADING_LAYER="GNU"
export LD_LIBRARY_PATH="/路径到/Intel_oneAPI/mybuild/mkl/latest/lib/intel64:/路径到/R/R-4.1.1/mybuild/lib/R/lib:$LD_LIBRARY_PATH"