Closed Enalmada closed 6 years ago
Actually there is a bit more than just installing from source to get it to work. This ticket has more detail: https://github.com/rflynn/imgmin/issues/63#issuecomment-392959228
sudo apt-get install libmagickcore-dev libmagickwand-dev
mkdir /usr/local/include/magick
cp /usr/local/include/ImageMagick-7/MagickCore/magick-baseconfig.h /usr/local/include/magick
sudo apt-get install -y autoconf pngnq pngcrush pngquant
git clone https://github.com/rflynn/imgmin.git
cd imgmin
autoreconf -fi
./configure
sudo C_INCLUDE_PATH=/usr/include/ImageMagick-6/ PKG_CONFIG_PATH=/opt/ImageMagick/lib/pkgconfig/ make
sudo make install
The real solution is probably to update build scripts with new image magick 7 paths but a temporary workaround could be to post the above hack in the readme.
Seems like imgmin apt-get imagemagic prerequisities are not enough for new ubuntu. Installing from source seems to work so calling this out to help others.