[英]Installing Cairo on Mac - Could not find libpng in the pkg-config search path
checking whether cairo's PNG functions feature could be enabled... no
检查是否可以启用cairo的PNG功能功能...否
I have been following the setup for configuring node canvas. 我一直在遵循用于配置节点画布的设置。 Cairo is needed but i am having issues trying to set it up.
需要开罗,但我在尝试设置时遇到了问题。 https://github.com/Automattic/node-canvas/wiki/Installation---OSX
https://github.com/Automattic/node-canvas/wiki/Installation---OSX
If libpng fails and you get the error "error: recommended PNG functions feature could not be enabled", try installing this binary and re-running the configure step.
如果libpng失败,并且出现错误“错误:无法启用推荐的PNG功能”,请尝试安装此二进制文件并重新运行configure步骤。
I followed above by installing the binaries on Mac OS 9 and run the configuration command and still no luck. 接下来,我在Mac OS 9上安装了二进制文件并运行配置命令,但仍然没有运气。 I am running the install shell script in node-canvas repository:
我正在节点画布存储库中运行安装外壳脚本:
https://github.com/Automattic/node-canvas/blob/master/install https://github.com/Automattic/node-canvas/blob/master/install
In my /usr/local/lib I currently have: 在我的/ usr / local / lib中,我目前有:
dtrace libjpeg.8.dylib libpng.a libpng14.a
libfreetype.6.dylib libjpeg.a libpng.dylib libpng14.dylib
libfreetype.a libjpeg.dylib libpng.la libpng14.la
libfreetype.dylib libjpeg.la libpng12.0.dylib libpng15.15.dylib
libfreetype.la libpixman-1.0.dylib libpng12.0.dylib.dSYM libpng15.15.dylib.dSYM
libgif.4.1.6.dylib libpixman-1.a libpng12.a libpng15.a
libgif.4.dylib libpixman-1.dylib libpng12.dylib libpng15.dylib
libgif.a libpixman-1.la libpng12.la libpng15.la
libgif.dylib libpng.3.dylib libpng14.14.dylib node_modules
libgif.la libpng.3.dylib.dSYM libpng14.14.dylib.dSYM pkgconfig
Libpng-1.6.10 has been replaced by libpng-1.6.12. Libpng-1.6.10已替换为libpng-1.6.12。
In your install script, change 在您的安装脚本中,更改
LIBPNG="http://downloads.sourceforge.net/project/libpng/libpng16/1.6.10/libpng-1.6.10.tar.gz"
to 至
LIBPNG="http://downloads.sourceforge.net/project/libpng/libpng16/1.6.12/libpng-1.6.12.tar.gz"
I have a set of detailed instructions for building cairo here: 我在这里有一组详细的说明来构建开罗:
https://github.com/soegaard/racket-osx-libs
There resulting libraries are here: 结果库在这里:
https://github.com/soegaard/racket-osx-libs/tree/master/lib
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.