microsoft / node-native-keymap

Provide OS keyboard layout functionality as a nodejs module
MIT License
136 stars 37 forks source link

Failure to build native-keymap@0.4.0 on RHEL-7/x86_64 #7

Closed mcepl closed 7 years ago

mcepl commented 7 years ago

Hello, when trying to build vscode 1.10.2 on RHEL-7 (using spec file from https://github.com/FZUG/repo/blob/master/rpms/vscode/vscode.spec; 1.9.1 can be build without problems), I crash when building native-keymap@0.4.0

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@0.3.8 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@0.3.8: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: windows-foreground-love@0.1.0 (node_modules/windows-foreground-love):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for windows-foreground-love@0.1.0: wanted {"os":"win32","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: windows-mutex@0.2.0 (node_modules/windows-mutex):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for windows-mutex@0.2.0: wanted {"os":"win32","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! Linux 3.10.0-617.el7.sgruszka.x86_64
npm ERR! argv "/home/matej/build/EXTRAS/vscode/vscode-1.10.2/.nvm/versions/node/v6.10.1/bin/node" "/home/matej/build/EXTRAS/vscode/vscode-1.10.2/.nvm/versions/node/v6.10.1/bin/npm" "install" "--loglevel" "info"
npm ERR! node v6.10.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! native-keymap@0.4.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the native-keymap@0.4.0 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 native-keymap 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 native-keymap
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls native-keymap
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/matej/build/EXTRAS/vscode/vscode-1.10.2/npm-debug.log
error: Bad exit status from /var/tmp/rpm-tmp.aiHLtp (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.aiHLtp (%build)

npm-debug.log.txt

alexdima commented 7 years ago

@mcepl

Sorry about that. This module now also includes X11/extensions/XKBrules.h and I think that would require also yum install libxkbfile-devel.x86_64 on Red Hat. I will update the README

The vscode README had it correctly -- https://github.com/Microsoft/vscode-wiki/blob/master/How-to-Contribute.md

image