if it can be useful, "brew doctor" gives me this:
%%%%%%%%%%
Warning: "config" scripts exist outside your system or Homebrew directories.
./configure
scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/sw/bin/apt-config
/sw/bin/ncurses5-config
/opt/local/bin/freetype-config
/opt/local/bin/libpng-config
/opt/local/bin/libpng16-config
/opt/local/bin/ncurses6-config
/opt/local/bin/ncursesw5-config
/opt/local/bin/ncursesw6-config
/opt/local/bin/pcre++-config
/opt/local/bin/pcre-config
/opt/local/bin/pkg-config
/opt/local/bin/python2.5-config
/opt/local/bin/python2.6-config
/opt/local/bin/python2.7-config
/opt/local/bin/rarian-sk-config
/opt/local/bin/scrollkeeper-config
/opt/local/bin/xft-config
/opt/local/bin/xml2-config
/opt/local/bin/xslt-config
Warning: gettext files detected at a system prefix.
These files can cause compilation and link failures, especially if they
are compiled with improper architectures. Consider removing these files:
/usr/local/include/libintl.h
/usr/local/include/libintl.h
Warning: You have MacPorts or Fink installed:
/opt/local/bin/port, /sw/bin/fink
This can cause trouble. You don't have to uninstall them, but you may want to
temporarily move them out of the way, e.g.
sudo mv /opt/local ~/macports
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libasprintf.0.0.0.dylib
/usr/local/lib/libfreetype.6.3.12.dylib
/usr/local/lib/libgdraw.1.0.14.dylib
/usr/local/lib/libgettextlib-0.14.5.dylib
/usr/local/lib/libgettextpo.0.1.0.dylib
/usr/local/lib/libgettextsrc-0.14.5.dylib
/usr/local/lib/libgunicode.2.0.3.dylib
/usr/local/lib/libintl.3.4.3.dylib
/usr/local/lib/libMagick++.10.0.7.dylib
/usr/local/lib/libMagick.10.0.7.dylib
/usr/local/lib/libuninameslist-fr.0.0.1.dylib
/usr/local/lib/libuninameslist.0.0.1.dylib
/usr/local/lib/libWand.10.0.7.dylib
Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected header files:
/usr/local/include/autosprintf.h
/usr/local/include/freetype2/freetype/ftxf86.h
/usr/local/include/ft2build.h
/usr/local/include/gettext-po.h
/usr/local/include/libintl.h
/usr/local/include/libwmf/gd/gd.h
/usr/local/include/libwmf/gd/gd_clip.h
/usr/local/include/libwmf/gd/gdio.h
/usr/local/include/libwmf/gd/gdcache.h
/usr/local/include/libwmf/gd/gdfontg.h
/usr/local/include/libwmf/gd/gdfontl.h
/usr/local/include/libwmf/gd/gdfontmb.h
/usr/local/include/libwmf/gd/gdfonts.h
/usr/local/include/libwmf/gd/gdfontt.h
/usr/local/include/magick/animate.h
/usr/local/include/magick/annotate.h
/usr/local/include/magick/api.h
/usr/local/include/magick/blob.h
/usr/local/include/magick/cache-view.h
/usr/local/include/magick/cache.h
/usr/local/include/magick/client.h
/usr/local/include/magick/coder.h
/usr/local/include/magick/color.h
/usr/local/include/magick/colorspace.h
/usr/local/include/magick/compare.h
/usr/local/include/magick/composite.h
/usr/local/include/magick/compress.h
/usr/local/include/magick/configure.h
/usr/local/include/magick/constitute.h
/usr/local/include/magick/decorate.h
/usr/local/include/magick/delegate.h
/usr/local/include/magick/deprecate.h
/usr/local/include/magick/display.h
/usr/local/include/magick/draw.h
/usr/local/include/magick/effect.h
/usr/local/include/magick/enhance.h
/usr/local/include/magick/exception.h
/usr/local/include/magick/fx.h
/usr/local/include/magick/gem.h
/usr/local/include/magick/geometry.h
/usr/local/include/magick/hashmap.h
/usr/local/include/magick/identify.h
/usr/local/include/magick/image.h
/usr/local/include/magick/ImageMagick.h
/usr/local/include/magick/layer.h
/usr/local/include/magick/list.h
/usr/local/include/magick/locale.h
/usr/local/include/magick/log.h
/usr/local/include/magick/magic.h
/usr/local/include/magick/magick-config.h
/usr/local/include/magick/magick-type.h
/usr/local/include/magick/magick.h
/usr/local/include/magick/MagickCore.h
/usr/local/include/magick/memory.h
/usr/local/include/magick/methods.h
/usr/local/include/magick/mime.h
/usr/local/include/magick/module.h
/usr/local/include/magick/monitor.h
/usr/local/include/magick/montage.h
/usr/local/include/magick/option.h
/usr/local/include/magick/paint.h
/usr/local/include/magick/pixel.h
/usr/local/include/magick/prepress.h
/usr/local/include/magick/PreRvIcccm.h
/usr/local/include/magick/profile.h
/usr/local/include/magick/property.h
/usr/local/include/magick/quantize.h
/usr/local/include/magick/quantum.h
/usr/local/include/magick/random.h
/usr/local/include/magick/registry.h
/usr/local/include/magick/resize.h
/usr/local/include/magick/resource.h
/usr/local/include/magick/segment.h
/usr/local/include/magick/semaphore.h
/usr/local/include/magick/shear.h
/usr/local/include/magick/signature.h
/usr/local/include/magick/splay-tree.h
/usr/local/include/magick/statistic.h
/usr/local/include/magick/stream.h
/usr/local/include/magick/string.h
/usr/local/include/magick/threshold.h
/usr/local/include/magick/timer.h
/usr/local/include/magick/token.h
/usr/local/include/magick/transform.h
/usr/local/include/magick/type.h
/usr/local/include/magick/utility.h
/usr/local/include/magick/version.h
/usr/local/include/magick/widget.h
/usr/local/include/magick/xml-tree.h
/usr/local/include/magick/xwindow.h
/usr/local/include/Magick++/Blob.h
/usr/local/include/Magick++/CoderInfo.h
/usr/local/include/Magick++/Color.h
/usr/local/include/Magick++/Drawable.h
/usr/local/include/Magick++/Exception.h
/usr/local/include/Magick++/Geometry.h
/usr/local/include/Magick++/Image.h
/usr/local/include/Magick++/Include.h
/usr/local/include/Magick++/Montage.h
/usr/local/include/Magick++/Pixels.h
/usr/local/include/Magick++/STL.h
/usr/local/include/Magick++/TypeMetric.h
/usr/local/include/Magick++.h
/usr/local/include/plot.h
/usr/local/include/plotcompat.h
/usr/local/include/plotter.h
/usr/local/include/ublio.h
/usr/local/include/uninameslist.h
/usr/local/include/wand/animate.h
/usr/local/include/wand/compare.h
/usr/local/include/wand/composite.h
/usr/local/include/wand/conjure.h
/usr/local/include/wand/convert.h
/usr/local/include/wand/display.h
/usr/local/include/wand/drawing-wand.h
/usr/local/include/wand/identify.h
/usr/local/include/wand/import.h
/usr/local/include/wand/magick-image.h
/usr/local/include/wand/magick-property.h
/usr/local/include/wand/magick-wand.h
/usr/local/include/wand/magick_wand.h
/usr/local/include/wand/MagickWand.h
/usr/local/include/wand/mogrify.h
/usr/local/include/wand/montage.h
/usr/local/include/wand/pixel-iterator.h
/usr/local/include/wand/pixel-wand.h
/usr/local/include/wand/stream.h
/usr/local/include/wand/wand-config.h