Skip to content
This repository

Can not install on windows, no waf, can you compile it to windows ? #25

Closed
orenz opened this Issue September 20, 2012 · 16 comments

6 participants

Oren Zbeda Dan VerWeire w1nk Jeff Willden merrittholmes Peter Mikitsh
Oren Zbeda

No description provided.

Dan VerWeire
Collaborator

This is something that has been discussed, but I don't currently have a windows development environment to work on this. Not sure if @w1nk does either. Patches welcome.

Oren Zbeda
Dan VerWeire
Collaborator

You could try installing node-gyp (npm install -g node-gyp), python 2.7, Visual C++ Express, then download and extract https://github.com/wankdanker/node-odbc/zipball/v0.4.1. Then try running node-gyp configure build in the extracted directory. If it works then yeah, all we need to do is compile. If not, then we need to debug and implement platform specific changes.

It currently fails on my system, but that may be because the windows system I have access to can not be rebooted at the moment and the Visual C++ install can't complete as a result.

I do have a use case for this on Windows coming up, so this may be something I will be working on more in the near future.

w1nk
Owner
Oren Zbeda
Jeff Willden

+1 to get odbc running cross-platform. I develop on Mac, deploy on both Windows and *nix servers. Cross-platform modules are nearly essential for my projects.

Oren Zbeda

Tried compiling on windows got a few errors.

Dan VerWeire
Collaborator

Great news, I have successfully built this on Windows and it works. There is only one issue which is that Windows does not have a strptime() function. Hopefully, I will be able to get everything updated in the next few days.

Oren Zbeda
Dan VerWeire
Collaborator

For anyone who has a Windows build environment (possibly @orenz ), try installing with npm install odbc. Make sure that you have previously installed node-gyp globally with npm install -g node-gyp.

I haven't tested extensively yet and performance doesn't look great on my MSSQL server.

If you find bugs or additional requests, please open a separate issue. As soon as I hear confirmation that this is working for others on Windows, I will be closing this issue.

Thanks everyone!

Oren Zbeda
w1nk
Owner
merrittholmes

Hi Guys,

IS there a windows version you can share? Or specific instructions for a newbie?

Cheers

Mike

Dan VerWeire
Collaborator

Hey @merrittholmes,

I do not have a recent version of the windows version to share. The next time I build one, I will try to bundle it up and share a link here. I wouldn't count on this being any time soon, though.

Dan

Peter Mikitsh

I installed Python 2.7 and Visual Studio Express 2013 for Desktop and was able to build on Windows 7 using node-gyp with no problem. I think the issue can be closed.

Pete

Dan VerWeire
Collaborator

Thanks, Pete. Yeah, this is fixed.

As long as you have Python 2.7 and Visual Studio Express installed you can install node-odbc with:

C:\project> npm install odbc
Dan VerWeire wankdanker closed this April 03, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.