bash
sudo apt install imagemagick
First of all, I install libmagick+±dev by using
bash
sudo apt install libmagick++-dev.
Secondly, I follow the suggestion from reddit. Specifically, I open policy.xml of ImageMagick by using command: sudo vim /etc/ImageMagick-6/policy.xml and then comment the @ policy by change from to .