我如何为os x el capitan下载并安装imagemagick?

时间:2017-01-23 01:23:21

标签: imagemagick

所以我去了这里:https://www.imagemagick.org/script/install-source.php

并下载ImageMagick.tar.gz

尝试使用此命令解压缩发行版: tar xvzf ImageMagick.tar.gz 并得到此错误: ~ $ tar xvzf ImageMagick.tar.gz tar: Error opening archive: Failed to open 'ImageMagick.tar.gz'

任何人都可以帮我解决这个问题

1 个答案:

答案 0 :(得分:4)

如果你想安装非Apple软件包并安装一个软件包管理器,例如 homebrew ,这是一个问题,这是从homebrew website复制和粘贴一行的问题。

然后你可以找到你想要的任何包:

brew search imagemagick

并安装它们并使用

构建它们
brew install imagemagick

然而,在之前你这样做...通过运行来检查你是否想要任何特定功能,例如HDR或EXR支持:

brew options imagemagick

示例选项

--with-fftw
    Compile with FFTW support
--with-fontconfig
    Build with fontconfig support
--with-ghostscript
    Build with ghostscript support
--with-hdri
    Compile with HDRI support
--with-liblqr
    Build with liblqr support
--with-librsvg
    Build with librsvg support
--with-libwmf
    Build with libwmf support
--with-little-cms
    Build with little-cms support
--with-little-cms2
    Build with little-cms2 support
--with-opencl
    Compile with OpenCL support
--with-openexr
    Build with openexr support
--with-openjpeg
    Build with openjpeg support
--with-openmp
    Compile with OpenMP support
--with-pango
    Build with pango support
--with-perl
    Compile with PerlMagick
--with-quantum-depth-16
    Compile with a quantum depth of 16 bit
--with-quantum-depth-32
    Compile with a quantum depth of 32 bit
--with-quantum-depth-8
    Compile with a quantum depth of 8 bit
--with-webp
    Build with webp support
--with-x11
    Build with x11 support
--with-zero-configuration
    Disables depending on XML configuration files
--without-freetype
    Build without freetype support
--without-jpeg
    Build without jpeg support
--without-libpng
    Build without libpng support
--without-libtiff
    Build without libtiff support
--without-magick-plus-plus
    disable build/install of Magick++
--without-modules
    Disable support for dynamically loadable modules
--without-threads
    Disable threads support
--HEAD
    Install HEAD version

然后您可以使用以下命令安装它们:

brew install imagemagick --with-openexr --with-hdri

稍后您可以使用

删除它们
brew rm imagemagick

并使用

更新所有已安装的软件包
brew update && brew upgrade