Linux 在 Debian 上安装 ImageMagick
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11881773/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
ImageMagick installation on Debian
提问by nKognito
I am trying to install an ImageMagick library on Debian. After downloading unpacking the package I run ./configure command (in the ImageMagick directory and under the root) and it fails with some errors (in the config.log):
我正在尝试在 Debian 上安装 ImageMagick 库。下载解压包后,我运行 ./configure 命令(在 ImageMagick 目录和根目录下),它失败并出现一些错误(在 config.log 中):
conftest.c:14:28: error: ac_nonexistent.h: No such file or director
conftest.c:79: error: expected ';', ',' or ')' before 'text'
conftest.c: In function 'main':
conftest.c:133: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'newvar'
conftest.c:133: error: 'newvar' undeclared (first use in this function)
conftest.c:133: error: (Each undeclared identifier is reported only once
conftest.c:133: error: for each function it appears in.)
What I am doing wrong? Thank you
我做错了什么?谢谢
UPD: version 6.7.8-8
更新:版本 6.7.8-8
采纳答案by loptrinho
Instead of downloading and configuring the package yourself you could try the following (in console):
您可以尝试以下操作(在控制台中),而不是自己下载和配置软件包:
aptitude update && aptitude install imagemagick
It's quite a time since I have used debian, but I think this should work.
自从我使用 debian 以来已经有一段时间了,但我认为这应该有效。