Error: package or namespace load failed for ‘magick’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/share/work/biosoft/R/R-v4.2.2/lib64/R/library/00LOCK-magick/00new/magick/libs/magick.so':
/share/work/biosoft/R/R-v4.2.2/lib64/R/library/00LOCK-magick/00new/magick/libs/magick.so: undefined symbol: _ZN6Magick5Image5writeEPNS_4BlobERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/share/work/biosoft/R/R-v4.2.2/lib64/R/library/magick’
由于centos7系统老,yum 安装ImageMagick 只有6版本,只能手动 升级依赖 ImageMagick-v7.1.0-62
安装成功:
PKG_CONFIG_PATH=/share/work/biosoft/ImageMagick/ImageMagick-v7.1.0-62/lib/pkgconfig/ R CMD INSTALL magick_2.7.3.tar.gz
https://github.com/ropensci/magick/issues/166
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!