简体   繁体   English

R install 'png' 无法加载共享 object

[英]R install 'png' unable to load shared object

When I run install.packages("png"), no matter if I do it within R Studio or as super user from the terminal on my Mac, I receive the following error.当我运行 install.packages("png") 时,无论是在 R Studio 中还是作为超级用户从我的 Mac 上的终端执行,我都会收到以下错误。 I have had no success implementing other solutions for this problem.我没有成功为这个问题实施其他解决方案。 I am using R 4.0.2 (upgraded from 3.6.3 because that didn't work either).我正在使用 R 4.0.2(从 3.6.3 升级,因为那也不起作用)。 The only solution I have currently is to use my university's virtual desktop R distro, as it works in that.我目前唯一的解决方案是使用我大学的虚拟桌面 R 发行版,因为它可以工作。 However, it's slow and just not the same.但是,它很慢,而且不一样。

    ** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘png’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/Users/bryce/Library/R/4.0/library/00LOCK-png/00new/png/libs/png.so':
  dlopen(/Users/bryce/Library/R/4.0/library/00LOCK-png/00new/png/libs/png.so, 6): Library not loaded: @rpath/libz.1.dylib
  Referenced from: /Users/bryce/Library/R/4.0/library/00LOCK-png/00new/png/libs/png.so
  Reason: image not found
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Users/bryce/Library/R/4.0/library/png’
Warning in install.packages :
  installation of package ‘png’ had non-zero exit status

The downloaded source packages are in
    ‘/private/var/folders/qd/q49j7g891jn7t368990fflrw0000gn/T/RtmpPhRir5/downloaded_packages’

I have tried resolving the problem by reinstalling libpng via homebrew, as well as reinitializing the symlinks, but I've hit a dead end.我曾尝试通过自制软件重新安装 libpng 以及重新初始化符号链接来解决问题,但我遇到了死胡同。

SOLVED: Workaround found.已解决:找到解决方法。 Had to purge RStudio and download R before re-downloading RStudio.在重新下载 RStudio 之前,必须清除 RStudio 并下载 R。 Seems to have fixed the problem.似乎已经解决了这个问题。

Kinda late to the party here, but this issue still exists when trying to install clusterProfiler on M1 Mac.在这里聚会有点晚了,但是尝试在 M1 Mac 上安装 clusterProfiler 时仍然存在此问题

What fixed it was to install bioconductor and then clusterProfiler in an R session in the terminal and then load the library from Rstudio.解决的方法是在终端中安装 bioconductor,然后在 R session 中安装 clusterProfiler,然后从 Rstudio 加载库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么R无法加载共享对象? - Why R is unable to load a shared object? 无法在RHEL6上的R中安装rgdal软件包,无法加载共享对象rgdal.so - Cannot install rgdal package in R on RHEL6, unable to load shared object rgdal.so 无法加载R中的任何程序包(无法加载共享对象) - Unable to load any package in R (unable to load shared object) 'sf'(R包)的命名空间加载失败,无法加载共享对象 - namespace load failed for ‘sf’ (R package) , unable to load shared object 安装 phylosmith 失败 - 无法加载共享 object,未定义符号 - Failure to install phylosmith - unable to load shared object, undefined symbol NLoptr无法在Mac上安装:无法加载共享对象 - NLoptr failed to install on Mac: unable to load shared object 无法安装RHIPE。 错误:无法加载共享对象 - Cannot install RHIPE. error: unable to load shared object ubuntu 16上的R:无法加载共享对象,未定义符号:gotoblas - R on ubuntu 16: unable to load shared object, undefined symbol: gotoblas R-3.2.1无法加载共享对象internet.so. - R-3.2.1 unable to load shared object internet.so R:错误安装包UBUNTU - dyn.load中的错误(文件,DLLpath = DLLpath,...):无法加载共享对象 - R: error installing packages UBUNTU - Error in dyn.load(file, DLLpath = DLLpath, …) : unable to load shared object
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM