jbdemonte / node-p7zip

7z for nodejs - including the latest version of 7za
10 stars 8 forks source link

npm ERR! make exited with code 2 #19

Open QAnders opened 1 month ago

QAnders commented 1 month ago

Not sure if this is till maintained, but seemed like a good option as we run on AWS Lambda and a standalone 7zip runtime is needed so it would be awesome getting it running...

Running npm i on Ubuntu 22.04 but end up with an npm error as:

npm ERR! code 1
npm ERR! path /home/anders/qip/node_modules/p7zip
npm ERR! command failed
npm ERR! command sh -c node scripts/install.js
npm ERR! Downloading https://github.com/jbdemonte/p7zip/archive/16.02.zip
npm ERR! Downloading https://codeload.github.com/jbdemonte/p7zip/zip/refs/tags/16.02
npm ERR! Decompress 16.02.zip
npm ERR! mkdir -p bin
npm ERR!
npm ERR! make -C CPP/7zip/Bundles/Alone all
npm ERR!
npm ERR! make[1]: Entering directory '/home/anders/qip/node_modules/p7zip/build/p7zip-16.02/CPP/7zip/Bundles/Alone'
npm ERR!
npm ERR! gcc -c -I. -I../../../../C -I../../../../CPP/myWindows -I../../../../CPP/include_windows -I../../../../CPP -O -s -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_REENTRANT -DENV_UNIX -DBREAK_HANDLER -DUNICODE -D_UNICODE -DUNIX_USE_WIN_FILE   ../../../../C/7zCrc.c
npm ERR!
npm ERR! gcc -c -I. -I../../../../C -I../../../../CPP/myWindows -I../../../../CPP/include_windows -I../../../../CPP -O -s -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_REENTRANT -DENV_UNIX -DBREAK_HANDLER -DUNICODE -D_UNICODE -DUNIX_USE_WIN_FILE   ../../../../C/7zCrcOpt.c

...
[ cut away a whole bunch of failures similar to these...]
...

npm ERR! make exited with code 2

Any clues?

jbdemonte commented 1 month ago

Hi, Maybe just a write right missing? Right now, I'm on vacation with my kids, If you don't find, I'll look later on the month, Keep me aware