-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Build error with electron on windows environment #862
Comments
Is the right version of NAN installed? Stepping back a bit, are you able to use the pre-built binaries? |
NAN is a dep of oracledb? Should I install it through NPM?
If I run the app without electron environment, the binaries work just fine (was able to connect and query on different databases) |
@lealhugui what's the version of NAN that is being used? Can you work out why there is even a build being kicked off - the normal 'npm install oracledb' can't fallback to building. Have you updated electron? |
@cjbj |
How have you set the dependency for oracledb? Why isn't the package.json 'install' script target being executed (to download a pre-built binary)? |
The dependency was a added through a npm install, and that went just fine. |
Can you explain more so I can try to help? What install options? |
The error doesn't occurr during the instalation of the module. The module is installed correctly, and works fine while the app is executed outside electron environment. |
That's too generic; I can't offer any new guesses. Can you share exact details about what you are entering where, and the commands you are running? Other people seem to be use Electron without an issue. |
Yes I Can. |
Maybe electron or something is ignoring the install script in package.json. Try creating your own oracledb bundle without the binding.gyp file and using that as a target in your package.json. |
Can you tell me how to do that? |
|
My environment is windows, so that must be the real differnce. |
@cjbj
|
It seems in your case the package.json install script target isn't being invoked. I don't have more guesses on why. I assume the target was invoked for me when I tried your testcase, since your testcase didn't fail for me. Got another platform you can test on? A different environment e.g. with or without globally installed modules? |
Yes. Same project on a macOS works. Unfortunately, need to cover macOS,
Linux, and Windows.
The problem appears specialy on windows.
Em qui, 8 de mar de 2018 às 18:06, Christopher Jones <
notifications@github.com> escreveu:
It seems in your case the package.json install script target isn't being
invoked. I don't have more guesses on why. I assume the target was invoked
for me when I tried your testcase, since your testcase didn't fail for me.
Got another platform you can test on? A different environment e.g. with or
without globally installed modules?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#862 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACjaTZjU2BveE_0GZqQJHkDYWwqo59M6ks5tcZ1tgaJpZM4ST4Tq>
.
--
Guilherme Leal
|
@kwent did you face something similar with electron on Windows? |
@lealhugui Could you try using that PR ? #851 |
Will try tomorrow
|
Got an error during |
@lealhugui you need to clone using git clone --recursive git://github.com/username/repository.git |
The other option (if you've already cloned) is to run these commands in the directory you cloned: git submodule init |
@kwent Same error as initial report. |
@lealhugui not from me, sorry. |
Closing - no activity. |
I'm trying to build a electron bundled app that uses oracledb connections.
No problem with the instalation or the use on "pure node" mode. But when I try to rebuild the dependency tree with
electron-rebuild
(mainly because I use other libs that neednode-ffi
) I get a build error on oracledb headers.What is your Node.js version?
Run at: Mon Feb 26 2018 17:31:45 GMT-0300
Node.js version: v8.9.3 (win32 x64)
Node-oracledb version: 2.1.2
Oracle Client library version: 12.2.0.1.0
What is your node-oracledb version?
2.1.1
What is your Oracle client (e.g. Instant Client) version? Is it 64-bit or 32-bit? How was it installed? Where is it installed?
InstantClient 12.2, 64Bit on windows, installed from zip on C:\instantclient_12_2_64.
What is your Oracle Database version?
Not relevant for this issue.
What is your OS and version?
Windows 10
What is your compiler version? For example, with GCC, run
gcc --version
MSBuild 14.0
What Oracle environment variables did you set? How exactly did you set them?
Only isntant client on path: C:\instantclient_12_2_64.
What is the
PATH
environment variable (on Windows) orLD_LIBRARY_PATH
(on Linux) set to? On macOS, what is in~/lib
?C:\instantclient_12_2_64.
What error(s) you are seeing?
On gist: Oracledb error on electron-rebuild
The text was updated successfully, but these errors were encountered: