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

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

Comments

Projects
None yet
6 participants

orenz commented Sep 20, 2012

No description provided.

Collaborator

wankdanker commented Sep 20, 2012

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.

orenz commented Sep 20, 2012

ODBC is cool and important, however, if not on windows, it will be very
limited.
All U need is to compile, like all top modules did.
I can not help, I do not know how, and too busy to learn now.

On Thu, Sep 20, 2012 at 5:16 PM, Dan VerWeire notifications@github.comwrote:

This is something that has been discussed, but I don't currently have a
windows development environment to work on this. Not sure if @w1nkhttps://github.com/w1nkdoes either. Patches welcome.


Reply to this email directly or view it on GitHubhttps://github.com/w1nk/node-odbc/issues/25#issuecomment-8729398.

Collaborator

wankdanker commented Sep 20, 2012

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.

Owner

w1nk commented Sep 20, 2012

Oren,

As Dan said, we should be circling up soon to get a windows build
functional. I do have a build environment, I just lack time at the
moment. That should be changing in the next few weeks and I'll get with
Dan and we'll see where we're at. I'd expect there to be a little porting
involved, but not tons. For instance we use pthread's mutex mechanisms,
we'll need to support using the win32 semaphores as a substitute on win32.
All in all though, it should be a pretty straightforward port as the root
of this code base was initially a win32 library anyhow.

-Lee

On Thu, Sep 20, 2012 at 10:29 AM, Dan VerWeire notifications@github.comwrote:

You could try installing node-gyphttps://github.com/TooTallNate/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.


Reply to this email directly or view it on GitHubhttps://github.com/w1nk/node-odbc/issues/25#issuecomment-8733325.

orenz commented Sep 21, 2012

Thanks,

I will be waiting.

I think ODBC is the best way to work.
you learn only one API and use it for all databases.

On Thu, Sep 20, 2012 at 9:25 PM, w1nk notifications@github.com wrote:

Oren,

As Dan said, we should be circling up soon to get a windows build
functional. I do have a build environment, I just lack time at the
moment. That should be changing in the next few weeks and I'll get with
Dan and we'll see where we're at. I'd expect there to be a little porting
involved, but not tons. For instance we use pthread's mutex mechanisms,
we'll need to support using the win32 semaphores as a substitute on win32.
All in all though, it should be a pretty straightforward port as the root
of this code base was initially a win32 library anyhow.

-Lee

On Thu, Sep 20, 2012 at 10:29 AM, Dan VerWeire notifications@github.comwrote:

You could try installing node-gyp<
https://github.com/TooTallNate/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.


Reply to this email directly or view it on GitHub<
https://github.com/w1nk/node-odbc/issues/25#issuecomment-8733325>.


Reply to this email directly or view it on GitHubhttps://github.com/w1nk/node-odbc/issues/25#issuecomment-8740631.

+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.

orenz commented Oct 14, 2012

Tried compiling on windows got a few errors.

Collaborator

wankdanker commented Oct 24, 2012

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.

orenz commented Oct 24, 2012

Great !!! waiting !

On Wed, Oct 24, 2012 at 9:06 PM, Dan VerWeire notifications@github.comwrote:

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.


Reply to this email directly or view it on GitHubhttps://github.com/w1nk/node-odbc/issues/25#issuecomment-9752131.

Collaborator

wankdanker commented Oct 24, 2012

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!

orenz commented Oct 25, 2012

WORKS !!!

looks ok, however I will run some more tests.

Thanks ! This helps me very much.

On Thu, Oct 25, 2012 at 12:58 AM, Dan VerWeire notifications@github.comwrote:

For anyone who has a Windows build environment (possibly @orenzhttps://github.com/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!


Reply to this email directly or view it on GitHubhttps://github.com/w1nk/node-odbc/issues/25#issuecomment-9760181.

Owner

w1nk commented Oct 25, 2012

Dan,

Awesome job! I'll have a windows build env later today (new job) so I
should be able to lend you a hand if you need!
On Oct 25, 2012 3:37 AM, "Oren Zbeda" notifications@github.com wrote:

WORKS !!!

looks ok, however I will run some more tests.

Thanks ! This helps me very much.

On Thu, Oct 25, 2012 at 12:58 AM, Dan VerWeire notifications@github.comwrote:

For anyone who has a Windows build environment (possibly @orenz<
https://github.com/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!


Reply to this email directly or view it on GitHub<
https://github.com/w1nk/node-odbc/issues/25#issuecomment-9760181>.


Reply to this email directly or view it on GitHubhttps://github.com/w1nk/node-odbc/issues/25#issuecomment-9769886.

Hi Guys,

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

Cheers

Mike

Collaborator

wankdanker commented Jun 25, 2013

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

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

Collaborator

wankdanker commented Apr 3, 2014

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

@wankdanker wankdanker closed this Apr 3, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment