It always seems to pick up the version from /usr/lib and there doesn't seem to be a ./configure parameter to override it.
./configure --prefix=$PREFIX --with-quantum-depth=8 --disable-installed --without-x --without-perl --enable-static --disable-shared --with-jpeg --with-tiff CPPFLAGS="$CPPFLAGS"开发者_高级运维 LDFLAGS="$LDFLAGS" CFLAGS="$CFLAGS" --disable-openmp --disable-openmp-slow
Thanks, Rui
Generally, an installation of libxml2
includes a configuration script xml2-config
that users of the library use to find the correct paths to its components and other build info. The Apple-supplied version of libxml2 has xml2-config
in /usr/bin
. If you've installed another version of libxml2
, make sure your $PATH is set such that its xml2-config
will be found first by the ImageMagick configure script: so ensuring most likely one of /usr/local/bin
, /opt/local/bin
(MacPorts), or /sw/bin
(Fink) comes before /usr/bin
on $PATH.
A simpler solution might be to just let MacPorts install it all for you:
$ sudo port install ImageMagick
Can you just manually edit the Makefile that's generated by ./configure?
EDIT: alternatively, there's an XML2_CONFIG environment variable you can set, to point to the xml2-config script for your custom install.
精彩评论