ImageMagick and OS X Lion trouble

前端 未结 13 1162
时光取名叫无心
时光取名叫无心 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: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
    

提交回复
热议问题