Skip to content
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

Unable to install on 32-bit Windows OS #40

Closed
pratikgchaudhari opened this issue Feb 12, 2018 · 8 comments
Closed

Unable to install on 32-bit Windows OS #40

pratikgchaudhari opened this issue Feb 12, 2018 · 8 comments

Comments

@pratikgchaudhari
Copy link

Hi,
I need to build my project for 32-bit systems.
Hence I have built dlib for 32-bit Windows and have set the DLIB_INCLUDE_DIR & DLIB_LIB_DIR in windows PATH variable.
But I am getting following error:

C:\face-detector>npm i face-recognition@0.4.0

dlib-build@0.0.6 install C:\face-detector\node_modules\dlib-build
node ./install.js

found dlib
DLIB_INCLUDE_DIR: C:\prj\dlib_build_release\include
DLIB_LIB_DIR: C:\prj\dlib_build_release\lib

face-recognition@0.4.0 install C:\face-detector\node_modules\face-recognition
node-gyp rebuild

C:\face-detector\node_modules\face-recognition>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_
modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_mo
dules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )

gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: win-x86/node.lib local checksum 4514e8d359637abcf994f36fc110b956c73344e761773de5e9c72a0cccec59b5 not match remote
c4edece2c0aa68e816c4e067f397eb12e9d0c81bb37b3d349dbaf47cf246b0b7
gyp ERR! stack at deref (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\install.js:266:20)
gyp ERR! stack at Request. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\install.js:384:24)
gyp ERR! stack at emitOne (events.js:121:20)
gyp ERR! stack at Request.emit (events.js:211:7)
gyp ERR! stack at IncomingMessage. (C:\Program Files\nodejs\node_modules\npm\node_modules\request\request.js:1085:12)
gyp ERR! stack at Object.onceWrapper (events.js:313:30)
gyp ERR! stack at emitNone (events.js:111:20)
gyp ERR! stack at IncomingMessage.emit (events.js:208:7)
gyp ERR! stack at endReadableNT (_stream_readable.js:1055:12)
gyp ERR! stack at _combinedTickCallback (internal/process/next_tick.js:138:11)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node
-gyp.js" "rebuild"
gyp ERR! cwd C:\face-detector\node_modules\face-recognition
gyp ERR! node -v v8.9.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! face-recognition@0.4.0 install: node-gyp rebuild
npm ERR! Exit status 1

OS: Windows 7, 32-bit
Node: v8.9.4
npm: 5.6.0

@justadudewhohacks
Copy link
Owner

Hmm, no clue sorry, node checksum seems to not match. You are better off asking the guys at node-gyp what the issue is.

@pratikgchaudhari
Copy link
Author

I found this Issue 693 in node-gyp's repo. But it isn't of much help.

I even tried installing it without using my own build of dlib and let npm download and build dlib using VS2017 build tools but it still throws the same error.

Is there any other way?

@justadudewhohacks
Copy link
Owner

justadudewhohacks commented Feb 13, 2018

The error is thrown by node-gyp in the install script, when trying to install the node headers. The auto build of dlib on windows is currently hardcoded to x64, so I would definitely use an own build of dlib for that.

@pratikgchaudhari
Copy link
Author

As I have stated before, I had initially used my own build of dlib for 32-bit Windows but still encountered the aforementioned error.
Later on I tried using the auto build.

@justadudewhohacks
Copy link
Owner

Yes I know, just saying you should stick with your own build. I have no clue what could cause this problem as I never ran into this, sorry. Maybe also nodejs/node-gyp#724 helps, or upgrading npm/ the node-gyp version that comes bundled with npm.

@pratikgchaudhari
Copy link
Author

Nope. Still getting the same error.
I give up.
Thanks anyway.

@pratikgchaudhari
Copy link
Author

Feel free to close this issue.

@justadudewhohacks
Copy link
Owner

justadudewhohacks commented Feb 14, 2018

Okay, well one could also download the node headers manually and set the node path with --nodedir or --tarball flag on npm install.
nodejs/node-gyp#1133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants