没有ImageMagick

时间:2018-05-01 08:53:34

标签: linux imagemagick

我尝试压缩JPEG文件并在Linux机器上安装ImageMagick。 PFB。

enter image description here

下面是转换命令。

enter image description here

有什么想法来解决它吗?

以下是日志:

No package 'pango' found
configure:32506: result: 
configure:32565: result: -------------------------------------------------------------
configure:32569: checking for PNG
configure:32576: $PKG_CONFIG --exists --print-errors "libpng >= 1.0.0"
configure:32579: $? = 0
configure:32593: $PKG_CONFIG --exists --print-errors "libpng >= 1.0.0"
configure:32596: $? = 0
configure:32634: result: yes
configure:32638: result: 
configure:32682: result: -------------------------------------------------------------
configure:32686: checking for RAW_R
configure:32693: $PKG_CONFIG --exists --print-errors "libraw_r >= 0.14.8"
Package libraw_r was not found in the pkg-config search path.
Perhaps you should add the directory containing `libraw_r.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libraw_r' found
configure:32696: $? = 1
configure:32710: $PKG_CONFIG --exists --print-errors "libraw_r >= 0.14.8"
Package libraw_r was not found in the pkg-config search path.
Perhaps you should add the directory containing `libraw_r.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libraw_r' found
configure:32713: $? = 1
configure:32727: result: no
No package 'libraw_r' found
configure:32755: result: 
configure:33003: result: -------------------------------------------------------------
configure:33005: checking for TIFF
configure:33007: result: 
configure:33011: checking tiff.h usability
configure:33011: gcc -std=gnu99 -std=gnu99 -c -I/usr/include/libpng15        -fopenmp -g -O2 -Wall -mtune=corei7 -fexceptions -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16   -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 conftest.c >&5
conftest.c:260:18: fatal error: tiff.h: No such file or directory
 #include <tiff.h>
                  ^
compilation terminated.
configure:33011: $? = 1
configure: failed program was:

1 个答案:

答案 0 :(得分:0)

将其编译进去。

./configure -with-png=yes \
       --with-jpeg=yes \
       --with-jp2=yes \
       --with-freetype=yes

http://www.imagemagick.org/discourse-server/viewtopic.php?t=22086