javascript - Node.js imagemin on CentOS -
i trying use node.js imagemin compress lot of images on server. using imagemin because know how point @ specific directories.
i using centos 6 , when run file, error:
node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/vendor/pngquant: /lib64/libc.so.6: version `glibc_2.14' not found
also, when installed imagemin npm install imagemin, got error said:
error: pngquant failed build, make sure libpng-dev installed
any ideas on can solve this?
(problem de facto solved in comments - sake of completion , future generations i'm posting actual answer).
error: pngquant failed build, make sure libpng-dev installed
this error means system lacking libpng development library, needed install imagemin node.js module. install on centos 6, need issue command:
yum install libpng-devel
please note both package manager (here - yum) , package name (libpng-devel) can vary between different linux distributions.
Comments
Post a Comment