Install libmagickcore-dev --ImageMagick headers and libraries
How to install libmagickcore-dev. Install using the apt command. ImageMagick headers and libraries will be installed.
sudo apt install -y libmagickcore-dev
For the location of the installed ImageMagick header files and libraries, see Header file read path and Library loading path.