xdenser / node-firebird-libfbclient

Firebird SQL binding
MIT License
82 stars 34 forks source link

Error: not a valid Win32 application #42

Closed heri16 closed 9 years ago

heri16 commented 9 years ago

On Node 0.10.33 (32-bit), after npm install firebird.

PS C:\Users\ec2-user\cps-mailin> node test

module.js:356 Module._extensions[extension](this, filename); ^ Error: %1 is not a valid Win32 application. C:\Users\ec2-user\cps-mailin\node_modules\firebird\build\Release\binding.node at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (C:\Users\ec2-user\cps-mailin\node_modules\firebird\firebird.js:1:77) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17)

xdenser commented 9 years ago

It looks like no fbclient.dll on the path.

heri16 commented 9 years ago

There is a 64-bit fbclient.dll in the path.

xdenser commented 9 years ago

So what do you expect? 32 bit application will not use 64-bit dll place 32-bit fbclient.dll in the same dir with binding.node and you'll be able to connect to 64 or 32 bit Firebird

heri16 commented 9 years ago

Correction: We use 64-bit node on our windows production servers. Please do indicate whether 64-bit NodeJs can be used with 64-bit fbclient.dll via these bindings. Thank you for the effort.

xdenser commented 9 years ago

Just replace fbclient_ms.lib with x64 version and npm install. Or you want it to be automatic from npm on production servers?

heri16 commented 9 years ago

Yes, I was looking for the x64 version of that file, but could not find it on npm or github servers. How is this file generated?

xdenser commented 9 years ago

It should be in Firebird x64 installation in lib directory, while WOW64 contains 32-bit version.

heri16 commented 9 years ago

My Firebird installation does not have a lib directory. Which version of firebird should we get this file from? 2.1? 2.5? 3? Could you commit it to this github repository? Thanks.

mariuz commented 9 years ago

can be closed

duplicated of https://github.com/xdenser/node-firebird-libfbclient/issues/41

heri16 commented 9 years ago

Thanks! I did a fork of this repo here, and was about to send in a pull request, but you beat me to it! Thanks for the fast response!