New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed at the sha3@1.2.0 install script 'node-gyp rebuild'. #27
Comments
|
Adding npm log file |
|
I am installing this on Debian with Node v4 |
|
Same to me |
|
Same problem here too |
|
Hi, I've hit a roadblock with installing Truffle on my local (win 7) machine too. I am using npm v2.15.9 and node v4.6.1, these are the same version as the ethereum studio VM where I managed to install Truffle. Locally I am getting the following issues: |
|
Anyone it's working on this? |
|
same issue here :o |
|
same error on windows 7, latest node.js 6 |
|
I had the same issue with sha3. So to diagnose it try running The error messages were more specific. Turns out I had to install Python 2.7.x (and add to path before Python v3 location) Hope this can help someone. I'm running Windows10, Node v7.2.0 and Npm v3.10.9 |
|
Resolved : sudo apt-get install build-essential |
|
For Red Hat distributions (for example, CentOS) it will be |
|
I am also having the same issue. I am trying to run an I am trying this on ubuntu and amazon linux - same error on both: I tried all the suggestions above. Node version 6.9, Pretty desperate here, anyone have any suggestions at all on how to get |
System InformationRestarting the travis build normally helps to finish the build. [...]
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
error /home/travis/build/ethereum/mist/node_modules/sha3: Command failed.
Exit code: 1
Command: sh
Arguments: -c node-gyp rebuild
Directory: /home/travis/build/ethereum/mist/node_modules/sha3
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@3.4.0
gyp info using node@6.9.4 | linux | x64
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp http GET https://nodejs.org/dist/v6.9.4/node-v6.9.4-headers.tar.gz
gyp http 200 https://nodejs.org/dist/v6.9.4/node-v6.9.4-headers.tar.gz
gyp http GET https://nodejs.org/dist/v6.9.4/SHASUMS256.txt
gyp http 200 https://nodejs.org/dist/v6.9.4/SHASUMS256.txt
gyp info spawn /opt/python/2.7.12/bin/python2
gyp info spawn args [ '/usr/local/yarn-0.17.8/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/home/travis/build/ethereum/mist/node_modules/sha3/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/yarn-0.17.8/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/travis/.node-gyp/6.9.4/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/travis/.node-gyp/6.9.4',
gyp info spawn args '-Dnode_gyp_dir=/usr/local/yarn-0.17.8/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/travis/build/ethereum/mist/node_modules/sha3',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory `/home/travis/build/ethereum/mist/node_modules/sha3/build'
CXX(target) Release/obj.target/sha3/src/addon.o
In file included from ../src/addon.cpp:3:0:
/home/travis/.node-gyp/6.9.4/include/node/v8.h:15:0: error: unterminated #ifndef
#ifndef INCLUDE_V8_H_
^
../src/addon.cpp: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE SHA3Hash::New(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/addon.cpp:59:58: warning: ‘v8::Local<v8::Object> v8::Function::NewInstance(int, v8::Local<v8::Value>*) const’ is deprecated (declared at /home/travis/.node-gyp/6.9.4/include/node/v8.h:3269): Use maybe version [-Wdeprecated-declarations]
info.GetReturnValue().Set(cons->NewInstance(argc, argv));
^
make: *** [Release/obj.target/sha3/src/addon.o] Error 1
make: Leaving directory `/home/travis/build/ethereum/mist/node_modules/sha3/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/yarn-0.17.8/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.0-51-generic
gyp ERR! command "/home/travis/.nvm/versions/node/v6.9.4/bin/node" "/usr/local/yarn-0.17.8/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/travis/build/ethereum/mist/node_modules/sha3
gyp ERR! node -v v6.9.4
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok |
|
Same issue I've hit a roadblock with installing Truffle on my local (win 7) : 124447 error Windows_NT 6.1.7601 |
|
I have the same issue, installing windows build tools (build essential for windows) did not resolve the problem. Did someone succeeded to make |
|
I'm also experiencing this issue, on both travis-ci and heroku. |
|
Not sure if this will help anyone else, but switching to Node 6.x fixed this issue for me. Previously our builds were using Node 7.x (latest stable build) and I so far have not found a workaround for this in Node 7. |
|
sudo apt-get install libgmp-dev solved the issue for me |
|
This issue is still open. None of the above suggestions work. Mine is identical to the original problem reported by domu904. |
|
for me it failed on windows because: So I uninstalled mine and installed 2.7 |
|
gyp ERR! configure error |
|
For those using arch linux, installing the gmp package worked as well (thanks @sduprey ) |
|
@luclu Did you ever resolve your issue? |
|
In my package.json, the node version was given as "node": ">=6.4.0". For the 'greater than' sign, in GCP, it was using 8.9.1 version which was causing the issue. Then I fixed it to 6.4.0 by removing the greater than sign, "node": "=6.4.0". This solved my problem. |
|
i managed to solve this for windows 7 and latest npm and node. So i had to edit added the AND NOW IT WORKS! somehow by installing the plain redistributable for .NET 4.7.1 didn't work - it didn't add the registry entries that are described in this file in _DetectVisualStudioVersions |
`sha3` currently has troubles installing under node 9.5.0 See: phusion/node-sha3#27 Please monitor and fix this.
|
For people still in pain (like I was). I resolved the build error by making sure the g++ command was resolvable. Read: 0mkara/etheratom#88 (comment) |
|
This library is a thin wrapper to a C implementation, using
|
|
Created #37 to investigate modernizing the compilation toolchain. |
|
I had the same issue. The sha3 package was included in another dependency I have added to my package.json. Hope that helps |
|
I'm still seeing this on ubuntu. I tried the solutions above but the same error just keeps showing up. |
|
I recently came across the viz.js project, which is using Emscripten to compile C for JavaScript with near-native performance. I'll see it this would be feasible for this project. If so, that would achieve the migration off of install-time C compilation steps and all the transitive dependencies that implies. |
This saves my day. Thank you. |
|
Closing this as a duplicate of #37, to consolidate the independently reported issues with the install-time compilation steps. Help wanted! |
|
For anyone following this: #44 resolves this issue and is in need of review! Please take a look, review, and/or reach out to security-minded comrades for verification. I know this node-gyp issue has plagued the community for some time, so am excited to finally get it fixed. |
|
I am having the same issue with keccak |
|
I had the same issue. The problem was python3 didn't work, and I had to use python2. What worked for me was: (Windows 10)
And then I just changed my PATH back to python3 |
|
|
|
Macos:
|
this worked for me! thanks |
|
Downgrading from Node 12 to Node 10 fixed this for me |
|
I am working on ubuntu 18.04. I wanted to install the latest version of truffle, so uninstall it but now I am trying: npm ERR! typeerror Error: Missing required argument #1 npm ERR! Please include the following file with any support request: |
domu904 commentedSep 2, 2016
I was trying to install Truffle and I got the following error:
"/usr/lib/node_modules/truffle/node_modules/truffle-default-builder/node_modules/node-sass/vendor/linux-x64-46/binding.node" exists.
testing binary.
Binary is fine; exiting.
npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "truffle"
npm ERR! node v4.5.0
npm ERR! npm v2.15.9
npm ERR! code ELIFECYCLE
npm ERR! sha3@1.2.0 install:
node-gyp rebuildnpm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sha3@1.2.0 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the sha3 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 sha3
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls sha3
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/user/Projects/WeatherContractBlock/npm-debug.log
The text was updated successfully, but these errors were encountered: