question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

electron-rebuild - Cannot open include file: 'sqlcli1.h'

See original GitHub issue

Hi,

I’ve tried to rebuild the node modules for electron with node_modules/.bin/electron-rebuild --target=1.5.1 --arch=x64 but I get the following error message:

On a windows 10 (x64) machine:

Building the projects in this solution one at a time. To enable parallel build, please add the “/m” switch. odbc.cpp c:\users\ieuser\desktop\myapp\node_modules\ibm_db\src\odbc.h(30): fatal error C1083: Cannot open include file: ‘sqlcli1.h’: No such file or directory [C:\Users\IEUser\Desktop\myapp\node_modules\ibm_db\build\odbc_bindings.vcxproj] odbc_connection.cpp c:\users\ieuser\desktop\myapp\node_modules\ibm_db\src\odbc.h(30): fatal error C1083: Cannot open include file: ‘sqlcli1.h’: No such file or directory [C:\Users\IEUser\Desktop\myapp\node_modules\ibm_db\build\odbc_bindings.vcxproj] odbc_statement.cpp c:\users\ieuser\desktop\myapp\node_modules\ibm_db\src\odbc.h(30): fatal error C1083: Cannot open include file: ‘sqlcli1.h’: No such file or directory [C:\Users\IEUser\Desktop\myapp\node_modules\ibm_db\build\odbc_bindings.vcxproj] odbc_result.cpp c:\users\ieuser\desktop\myapp\node_modules\ibm_db\src\odbc.h(30): fatal error C1083: Cannot open include file: ‘sqlcli1.h’: No such file or directory [C:\Users\IEUser\Desktop\myapp\node_modules\ibm_db\build\odbc_bindings.vcxproj] dynodbc.cpp win_delay_load_hook.cc gyp ERR! build error gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe failed with exit code: 1

On macOS Sierra (x64) the same issue:

gyp info spawn args [ ‘BUILDTYPE=Release’, ‘-C’, ‘build’ ] CXX(target) Release/obj.target/odbc_bindings/src/odbc.o In file included from …/src/odbc.cpp:25: …/src/odbc.h:30:10: fatal error: ‘sqlcli1.h’ file not found #include <sqlcli1.h> ^ 1 error generated. make: *** [Release/obj.target/odbc_bindings/src/odbc.o] Error 1 gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/Users/theuser/.nvm/versions/node/v7.7.2/lib/node_modules/electron-rebuild/node_modules/node-gyp/lib/build.js:285:23) gyp ERR! stack at emitTwo (events.js:106:13) gyp ERR! stack at ChildProcess.emit (events.js:194:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) gyp ERR! System Darwin 16.4.0 gyp ERR! command “/Users/theuser/.nvm/versions/node/v7.7.2/bin/node” “/Users/theuser/.nvm/versions/node/v7.7.2/lib/node_modules/electron-rebuild/node_modules/.bin/node-gyp” “rebuild” “–target=1.5.1” “–arch=x64” “–dist-url=https://atom.io/download/electron” “–build-from-source” gyp ERR! cwd /Users/theuser/Documents/myapp/node_modules/ibm_db gyp ERR! node -v v7.7.2 gyp ERR! node-gyp -v v3.6.0 gyp ERR! not ok

Failed with exit code: 1

Even if I only call node-gyp rebuild --arch=x64 in the “node_modules/ibm_db” folder it fails with the same error.

How can I fix that?

Both machines have: Node v7.7.2 NPM v4.1.2 node-gyp@3.6.0 electron v1.5.1 electron-rebuild v1.5.7

kind regards Christian

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
kloenercommented, Mar 22, 2017

Thanks for your fast reply 😃 This solved my problem!

cd node_modules/ibm_db/installer/clidriver export IBM_DB_HOME=$(pwd) cd …/… node-gyp rebuild --arch=x64

The include folder is present, too.

Thanks

1reaction
amangrover1commented, Apr 26, 2017

Hi @rhtpandeyIN , Thanks for your help it worked for. I missed one entry in my first attempt. Thanks a lot

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - fatal error C1083: Cannot open include file: 'sqlcli1.h ...
I was able to compile and install ibm_db through 'npm i ibm_db'. but when I run '.\node_modules.bin\electron-rebuild.cmd', I get the following error.
Read more >
Trouble building node ibm_db package with Electron
I finally figured it out! This package is obnoxiously difficult to build on win32 -. See the following issue. Here is how I...
Read more >
Common Configuration - electron-builder
Because in a configuration file you cannot use JavaScript, can be specified as a path to file or module id. Function must be...
Read more >
Electron packager tutorial - Christian Engvall
In this electron packager tutorial we will look at how to create MacOS ... Now when that is done open up package.json and...
Read more >
How to build an Electron app using create-react-app ... - Medium
// dock icon is clicked and there are no other windows open. if (mainWindow === null) { createWindow() } }); // In this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found