configure: error: recommended PNG functions feature could not be enabled

编程入门 行业动态 更新时间:2024-10-23 05:40:04

安装node.js 的 node-canvas 程序的时候遇到报错,解决方法如下

$ sudo yum erase cairo 卸载cairo

$ curl http://www.cairographics/releases/pixman-0.22.0.tar.gz -o pixman.tar.gz  
$ tar -zxf pixman.tar.gz && cd pixman-0.22.0/  
$ ./configure --prefix=/usr/local   
$ make install  

下载
http://www.ijg/files/jpegsrc.v8c.tar.gz
http://cairographics/releases/cairo-1.10.2.tar.gz

安装目录统一为./configure --prefix=/usr/local

安装cairo的时候要转移
export PKG_CONFIG_PATH='/usr/local/lib/pkgconfig'  export LD_LIBRARY_PATH='/usr/local/lib':$LD_LIBRARY_PATH ./configure --prefix=/usr/local
make
make install

更多推荐

configure: error: recommended PNG functions feature could not be enabled

本文发布于:2023-06-14 04:42:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1439269.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:recommended   error   configure   PNG   enabled

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!