Open dhpradeep opened 6 years ago
I'm getting a build error as well, it might be related - I think it's something to do with libpng. I'm using latest Ubuntu.
CC(target) Release/obj.target/lwip_decoder/src/lib/png/png.o
In file included from ../src/lib/png/png.c:14:0:
../src/lib/png/pngpriv.h:805:4: error: #error ZLIB_VERNUM != PNG_ZLIB_VERNUM "-I
(include path) error: see the notes in pngpriv.h"
# error ZLIB_VERNUM != PNG_ZLIB_VERNUM \
^~~~~
lwip_decoder.target.mk:165: recipe for target 'Release/obj.target/lwip_decoder/src/lib/png/png.o' failed
make: *** [Release/obj.target/lwip_decoder/src/lib/png/png.o] Error 1
make: Leaving directory '/home/johnny/proj/example/node_modules/lwip/build'
gyp ERR! build error
@jwater7 the work around is to install graphicsmagick or imagemagick on your machine.
e.g. on unbuntu you could apt-get install graphicsmagick
Any idea how to fix this on a Mac?
Same here
nodejs version : 9.3.0 npm version: 5.6.0
Dinindus-Mac-mini:proj dinindu$ npm install lwip@latest --save
npm WARN deprecated lodash-node@2.4.1: This package is discontinued. Use lodash@^4.0.0.
> lwip@0.0.9 install /Volumes/Projects/expe/proj/node_modules/lwip
> node-gyp rebuild
CXX(target) Release/obj.target/lwip_decoder/src/decoder/init.o
CXX(target) Release/obj.target/lwip_decoder/src/decoder/util.o
CXX(target) Release/obj.target/lwip_decoder/src/decoder/buffer_worker.o
../src/decoder/buffer_worker.cpp:8:56: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
_height(0), _channels(0), _trans(false), _metadata("") {
^
1 warning generated.
CXX(target) Release/obj.target/lwip_decoder/src/decoder/jpeg_decoder.o
CXX(target) Release/obj.target/lwip_decoder/src/decoder/png_decoder.o
CXX(target) Release/obj.target/lwip_decoder/src/decoder/gif_decoder.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jmemnobs.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jcomapi.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdapimin.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdapistd.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdatadst.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdatasrc.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdcoefct.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdcolor.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jddctmgr.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdhuff.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdinput.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdmainct.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdmarker.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdmaster.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdpostct.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdsample.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jerror.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jfdctflt.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jfdctfst.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jfdctint.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jidctflt.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jidctfst.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jidctint.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jutils.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jmemmgr.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdarith.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jdmerge.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jaricom.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jquant1.o
CC(target) Release/obj.target/lwip_decoder/src/lib/jpeg/jquant2.o
CC(target) Release/obj.target/lwip_decoder/src/lib/png/png.o
In file included from ../src/lib/png/png.c:14:
../src/lib/png/pngpriv.h:805:4: error: ZLIB_VERNUM != PNG_ZLIB_VERNUM "-I (include path) error: see the notes in pngpriv.h"
# error ZLIB_VERNUM != PNG_ZLIB_VERNUM \
^
1 error generated.
make: *** [Release/obj.target/lwip_decoder/src/lib/png/png.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:159:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Darwin 16.7.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Volumes/Projects/expe/proj/node_modules/lwip
gyp ERR! node -v v9.3.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! lwip@0.0.9 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the lwip@0.0.9 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/dinindu/.npm/_logs/2017-12-21T05_58_20_942Z-debug.log
Dinindus-Mac-mini:proj dinindu$
I have the same error. and I can install node-sass successful (means my dev tools and env has set well)
I can install this module successfull on nodejs v7.5.0 Bat I have the same error on nodejs v7.6.0
Wow, this is still an issue, even with graphicsmagick installed....
npm ERR! node v6.11.5 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE
npm ERR! lwip@0.0.9 install:
node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the lwip@0.0.9 install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the lwip package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs lwip npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls lwip npm ERR! There is likely additional logging output above.