Entering edit mode
12 months ago
applepie
▴
10
Hi everyone: I have attempted to install the R package 'magick' on R (version: 4.3.1) using the following command: install.packages("magick")
However, it turns out that there were some warning messaged popped out in the R console:
Installing package into ‘/home/billychan/R/x86_64-pc-linux-gnu-library/4.3’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/magick_2.8.1.tar.gz'
Content type 'application/x-gzip' length 4601205 bytes (4.4 MB)
==================================================
downloaded 4.4 MB
* installing *source* package ‘magick’ ...
** package ‘magick’ successfully unpacked and MD5 sums checked
** using staged installation
Package Magick++ was not found in the pkg-config search path.
Perhaps you should add the directory containing `Magick++.pc'
to the PKG_CONFIG_PATH environment variable
No package 'Magick++' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lMagick++-6.Q16
--------------------------- [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: No such file or directory
compilation terminated.
--------------------------------------------------------------------
ERROR: configuration failed for package ‘magick’
* removing ‘/home/billychan/R/x86_64-pc-linux-gnu-library/4.3/magick’
Warning in install.packages :
installation of package ‘magick’ had non-zero exit status
The downloaded source packages are in
‘/tmp/Rtmpln6UHa/downloaded_packages’
May I know what's happened? I have already attempted to install all the dependencies, but it turns out that there is still installation failure. Did any one encounter similar problem before? thanks!
Have you read the error message? it tells you to try installing 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: No such file or directory compilation terminated.
This isn't a bioinformatics question. What do you mean by "install all the dependencies"? Did you read the error message? It's telling you what to do at the line starting with "Try installing...". Did you do this?