下载最新版本的 ImageMagick。拆开它。像这样安装 Ghostscript:
$ sudo apt-get install ghostscript
之后尝试配置 ImageMagick:
$ ./configure --with-gslib
$ make
$ make install
之后我尝试将PDF转换为jpg
$ sudo /usr/local/bin/convert in.pdf out.jpg
我看到了这个错误
convert: no decode delegate for this image format `/tmp/magick-BzHdr4Kp-00000001' @ error/constitute.c/ReadImage/544.
convert: Postscript delegate failed `in.PDF': Нет такого файла или каталога @ error/pdf.c/ReadPDFImage/678.
convert: no images defined `out.jpg' @ error/convert.c/ConvertImageCommand/3044.
我做错了什么?