You are not logged in.
Trying to install scrypt in an empty directory:
[michael@stingray tmp]$ npm install scrypt
> scrypt@6.0.3 preinstall /home/michael/tmp/node_modules/scrypt
> node node-scrypt-preinstall.js
Error: Error: Command failed: ./configure
configure: error: in `/home/michael/tmp/node_modules/scrypt/scrypt/scrypt-1.2.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
> scrypt@6.0.3 install /home/michael/tmp/node_modules/scrypt
> node-gyp rebuild
make: Verzeichnis „/home/michael/tmp/node_modules/scrypt/build“ wird betreten
SOLINK_MODULE(target) Release/obj.target/copied_files.node
make: *** [copied_files.target.mk:22: Release/obj.target/copied_files.node] Fehler 1
make: Verzeichnis „/home/michael/tmp/node_modules/scrypt/build“ wird verlassen
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack at emitTwo (events.js:125:13)
gyp ERR! stack at ChildProcess.emit (events.js:213:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.11.9-1-ARCH
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/michael/tmp/node_modules/scrypt
gyp ERR! node -v v8.2.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/home/michael/tmp/package.json'
npm WARN tmp No description
npm WARN tmp No repository field.
npm WARN tmp No README data
npm WARN tmp No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! scrypt@6.0.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the scrypt@6.0.3 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! /home/michael/.npm/_logs/2017-07-27T09_29_50_926Z-debug.log
Other packages requiring compilation steps with node-gyp install without problems. On a current Ubuntu system installation also works fine, so the scrypt node package in general does not seem to be broken. Does anyone have pointers where to start looking at?
It would already be helpful if someone has an idea how to preserve config.log with error message details. When npm finishes, all temporary files are deleted :-/
Last edited by TripleSpeeder (2017-07-27 10:46:33)
Offline
Hmm. Reinstallation of base-devel fixed it, although all current packages were marked as already installed:
[michael@stingray scrypt-1.2.0]$ sudo pacman -S base-devel
:: Es befinden sich 25 Mitglieder in Gruppe base-devel:
:: Repositorium core
1) autoconf 2) automake 3) binutils 4) bison 5) fakeroot 6) file 7) findutils 8) flex 9) gawk 10) gcc 11) gettext
12) grep 13) groff 14) gzip 15) libtool 16) m4 17) make 18) pacman 19) patch 20) pkg-config 21) sed 22) sudo
23) texinfo 24) util-linux 25) which
Geben Sie eine Auswahl ein (Voreinstellung=alle):
Warnung: autoconf-2.69-4 ist aktuell -- Reinstalliere
Warnung: automake-1.15.1-1 ist aktuell -- Reinstalliere
Warnung: binutils-2.28.0-4 ist aktuell -- Reinstalliere
Warnung: bison-3.0.4-3 ist aktuell -- Reinstalliere
Warnung: fakeroot-1.21-2 ist aktuell -- Reinstalliere
Warnung: file-5.31-1 ist aktuell -- Reinstalliere
Warnung: findutils-4.6.0-2 ist aktuell -- Reinstalliere
Warnung: flex-2.6.4-1 ist aktuell -- Reinstalliere
Warnung: gawk-4.1.4-2 ist aktuell -- Reinstalliere
Warnung: gettext-0.19.8.1-2 ist aktuell -- Reinstalliere
Warnung: grep-3.1-1 ist aktuell -- Reinstalliere
Warnung: groff-1.22.3-7 ist aktuell -- Reinstalliere
Warnung: gzip-1.8-2 ist aktuell -- Reinstalliere
Warnung: libtool-2.4.6-8 ist aktuell -- Reinstalliere
Warnung: m4-1.4.18-1 ist aktuell -- Reinstalliere
Warnung: make-4.2.1-2 ist aktuell -- Reinstalliere
Warnung: pacman-5.0.2-2 ist aktuell -- Reinstalliere
Warnung: patch-2.7.5-1 ist aktuell -- Reinstalliere
Warnung: pkg-config-0.29.2-1 ist aktuell -- Reinstalliere
Warnung: sed-4.4-1 ist aktuell -- Reinstalliere
Warnung: sudo-1.8.20.p2-1 ist aktuell -- Reinstalliere
Warnung: texinfo-6.4-1 ist aktuell -- Reinstalliere
Warnung: util-linux-2.29.2-2 ist aktuell -- Reinstalliere
Warnung: which-2.21-2 ist aktuell -- Reinstalliere
...
Offline