我正在尝试安装 ImageMagick 和 RMagic,因为它们在 OS X Lion 升级后无法工作。当我跑
brew install imagemagick
我得到了错误
Error: You must `brew link libpng' before imagemagick can be installed
但是当我brew link libpng
按照错误消息中的说明运行时,我会得到:
Error: You must `brew link libpng' before imagemagick can be installed
Radek-Macs-MacBook-Pro-3:sharelock-staging radek$ brew link libpng
Linking /usr/local/Cellar/libpng/1.5.13... Warning: Could not link libpng. Unlinking...
Error: Could not symlink file: /usr/local/Cellar/libpng/1.5.13/include/pnglibconf.h
/usr/local/include/pnglibconf.h may already exist.
/usr/local/include may not be writable.
如何解决这个问题?我两天都在解决 RMagic 问题,但没有成功……这简直是一场噩梦……