系统:centos7.2 报错信息如下:
[13:28:40] 'images' errored after 72 ms
[13:28:40] Error in plugin "gulp-image"
Message:
Command failed: /home/wwwroot/trueniu-php/wp-content/themes/trueniu_base/node_modules/mozjpeg/vendor/cjpeg -optimize -progressive -outfile /tmp/ea377731-efbb-445e-8d82-b84b6b561e54 /tmp/ad053805-5064-43dc-8da2-93e69a3cd529
/home/wwwroot/trueniu-php/wp-content/themes/trueniu_base/node_modules/mozjpeg/vendor/cjpeg: error while loading shared libraries: libpng16.so.16: cannot open shared object file: No such file or directory
Details:
code: 127
killed: false
stdout:
stderr: /home/wwwroot/trueniu-php/wp-content/themes/trueniu_base/node_modules/mozjpeg/vendor/cjpeg: error while loading shared libraries: libpng16.so.16: cannot open shared object file: No such file or directory
failed: true
signal: null
cmd: /home/wwwroot/trueniu-php/wp-content/themes/trueniu_base/node_modules/mozjpeg/vendor/cjpeg -optimize -progressive -outfile /tmp/ea377731-efbb-445e-8d82-b84b6b561e54 /tmp/ad053805-5064-43dc-8da2-93e69a3cd529
timedOut: false
domainEmitter: [object Object]
domain: [object Object]
domainThrown: false
1
yangg 2018-08-23 14:13:22 +08:00
|
2
zbinlin 2018-08-23 14:27:52 +08:00
明显是依赖库未安装:
```sh yum install -y libjpeg libpng ``` https://www.npmjs.com/package/gulp-image#user-content-external-dendencies |
3
s609926202 OP @zbinlin 确实已经安装了、、
软件包 libjpeg-turbo-1.2.90-5.el7.x86_64 已安装并且是最新版本 软件包 2:libpng-1.5.13-7.el7_2.x86_64 已安装并且是最新版本 |
4
s609926202 OP @yangg 这些都搜过了,现在是即使安装了这个 libpng16.so ,还是提示这样,,哎,,
|
5
zbinlin 2018-08-23 15:04:54 +08:00
版本问题,我看了下 centos 默认的 libpng, 和 libpng-devel 是 1.5 的,所以只有 libpng15.so ,没有 libpng16.so
|