ImageMagick and OS X Lion trouble

前端 未结 13 1110
时光取名叫无心
时光取名叫无心 2020-12-04 06:55

[edit] I was troubleshooting problems with my development environment when I noticed one of my problems was the dependency on ImageMagick, since it\'s a vit

相关标签:
13条回答
  • 2020-12-04 07:39

    If you're using Homebrew, try the following command:

    brew doctor
    

    to diagnose the common problems.

    One of it could be to remove DYLD_FALLBACK_LIBRARY_PATH variable from your ~/.profile if you have it.

    Or you have to re-install libtool by:

    brew reinstall libtool --universal && brew unlink libtool && brew link libtool
    
    0 讨论(0)
  • 2020-12-04 07:41

    The same problem might occur with OSX Mountain Lion (preview 4). I had to configure some parts separately because there are some library incompatibilities:

    dyld: Library not loaded: /usr/local/lib/libjpeg.8.dylib
      Referenced from: /usr/local/bin/convert
      Reason: Incompatible library version: convert requires version 13.0.0 or later, but libjpeg.8.dylib provides version 9.0.0
    

    I had to add --with-fontconfig=no, --with-lzma=no and use /opt/local/share/... instead of /usr/local/share/... for the ghostscript fonts:

    cd /tmp
    curl -OL ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
    tar -xzf ImageMagick.tar.gz
    cd ImageMagick-6.7.8-0/
    ./configure --prefix=/usr/local --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --disable-openmp --with-fontconfig=no --with-gs-font-dir=/opt/local/share/ghostscript/fonts --with-lzma=no
    make
    sudo make install
    
    0 讨论(0)
  • 2020-12-04 07:43

    I could fix the ImageMagick problem by installing corresponding package from cactuslab site.

    Then by setting the PATH variables in terminal:

    export MAGICK_HOME="/usr/local/ImageMagick/"
    export PATH="$MAGICK_HOME/bin:$PATH"
    export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib/"
    
    0 讨论(0)
  • 2020-12-04 07:45

    For 10.7.8 and up, you have to install the php version and not the pecl version. Depending on your version of php you've install with Macports you can either do:

    sudo port install php-imagick
    
    sudo port install php5-imagick
    
    sudo port install php53-imagick
    
    sudo port install php54-imagick
    

    Remember only to do the one of your current version of php.

    0 讨论(0)
  • 2020-12-04 07:49

    On 10.8 I solved this issue with:

    brew install libtool --universal
    brew link libtool
    

    If you don't know what brew is, visit https://github.com/mxcl/homebrew and its wiki.

    0 讨论(0)
  • 2020-12-04 07:52

    I also upgraded to Lion and lost ImageMagick, although i'm getting different errors.

    i found a Lion distribution on imagemagick.org. not a big fan of the DYLD_LIBRARY_PATH environment variable but it works.

    ok scratch that. i just downloaded the ImageMagick source and re-compiled:

    cd /tmp
    curl -OL ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
    tar -xzf ImageMagick.tar.gz
    cd ImageMagick-6.7.2-7/
    ./configure --prefix=/usr/local --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --disable-openmp --with-gs-font-dir=/usr/local/share/ghostscript/fonts
    make
    sudo make install
    
    0 讨论(0)
提交回复
热议问题