@
ijse 我好像用源码安装过graphicsmagick
后来用brew install graphicsmagick安装就会出问题
You must `brew link libpng' before graphicsmagick can be installed,
我也试着brew link libpng,然后提示:
Error: Could not symlink file: /usr/local/Cellar/libpng/1.5.14/include/libpng15/pnglibconf.h
Target /usr/local/include/libpng15/pnglibconf.h already exists. You may need to delete it.
To force the link and overwrite all other conflicting files, do:
brew link --overwrite formula_name
To list all files that would be deleted:
brew link --overwrite --dry-run formula_name
然后我加了--overwrite, 结果提示:
Linking /usr/local/Cellar/libpng/1.5.14... Warning: Could not link libpng. Unlinking...
Error: Permission denied - /usr/local/include/libpng15/pnglibconf.h
然后我又加sudo, 结果提示:
Error: Cowardly refusing to `sudo brew link`
You can use brew with sudo, but only if the brew executable is owned by root.
However, this is both not recommended and completely unsupported so do so at
your own risk.
我就无语了。