如题,提示:
_
--------------------------- [ANTICONF] --------------------------------
Configuration failed to find the Magick++ library. Try installing:
- deb: libmagick++-dev (Debian, Ubuntu)
- rpm: ImageMagick-c++-devel (Fedora, CentOS, RHEL)
- csw: imagemagick_dev (Solaris)
- brew imagemagick@6 (MacOS)
If Magick++ is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a Magick++.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
-------------------------- [ERROR MESSAGE] ---------------------------
<stdin>:1:10: fatal error: Magick++.h: 没有那个文件或目录
compilation terminated.
--------------------------------------------------------------------
ERROR: configuration failed for package ‘magick’
- removing ‘/home/xxx/R/x86_64-suse-linux-gnu-library/4.1/magick’
ERROR: dependency ‘magick’ is not available for package ‘animation’
- removing ‘/home/xxx/R/x86_64-suse-linux-gnu-library/4.1/animation’
The downloaded source packages are in
‘/tmp/RtmpsJY8m2/downloaded_packages’
Warning messages:
1: In install.packages("animation") :
installation of package ‘magick’ had non-zero exit status
2: In install.packages("animation") :
installation of package ‘animation’ had non-zero exit status
虽然是rpm系统,但真没有这个包ImageMagick-c++-devel
选择zypper install命令,安装libMagick++-devel
连带安装libMagick++-7_Q16HDRI5
随后成功!