提问人:user3523406 提问时间:11/15/2022 更新时间:11/15/2022 访问量:174
无法在 mac ARM 上加载 cairo DLL
failed to load cairo DLL on mac ARM
问:
我通过 brew 在我的 MacBook M1 ARM 上安装了 R 和 Rstudio,但是当我尝试绘制 svg 时,我得到:
> svg("my_upset_plot.png", width = 1079, height = 463)
Warning messages:
1: In grSoftVersion() :
unable to load shared object '/Library/Frameworks/R.framework/Resources/modules//R_X11.so':
dlopen(/Library/Frameworks/R.framework/Resources/modules//R_X11.so, 0x0006): Library not loaded: /opt/X11/lib/libSM.6.dylib
Referenced from: <BBB44505-4BB3-30FA-9ED6-ABC69D534041> /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/modules/R_X11.so
Reason: tried: '/opt/X11/lib/libSM.6.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/X11/lib/libSM.6.dylib' (no such file), '/opt/X11/lib/libSM.6.dylib' (no such file), '/usr/local/lib/libSM.6.dylib' (no such file), '/usr/lib/libSM.6.dylib' (no such file, not in dyld cache)
2: In cairoVersion() :
unable to load shared object '/Library/Frameworks/R.framework/Resources/library/grDevices/libs//cairo.so':
dlopen(/Library/Frameworks/R.framework/Resources/library/grDevices/libs//cairo.so, 0x0006): Library not loaded: /opt/X11/lib/libXrender.1.dylib
Referenced from: <25AEF222-E381-3C27-AC91-0E12B2DF269A> /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/grDevices/libs/cairo.so
Reason: tried: '/opt/X11/lib/libXrender.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/X11/lib/libXrender.1.dylib' (no such file), '/opt/X11/lib/libXrender.1.dylib' (no such file), '/usr/local/lib/libXrender.1.dylib' (no such file), '/usr/lib/libXrender.1.dylib' (no such file, not in dyld cache)
3: In svg("my_upset_plot.png", width = 1079, height = 463) :
failed to load cairo DLL
我该如何解决?
先谢谢你
答: 暂无答案
评论