libcouchbase on Windows

375 views
Skip to first unread message

Sean V Baker

unread,
Oct 1, 2012, 3:21:48 PM10/1/12
to couc...@googlegroups.com
Greetings,

I'm attempting to use Couchbase with Node.js on a Windows Server (2003 Standard SP2, 64 bit.) We generally use Windows Servers for all back-end functionality, so it would be ideal for me to be able to set up a Node.js server that interfaces with Couchbase on Windows if possible.

Question: Is it possible to compile libcouchbase on Windows without having to load all of Microsoft Visual Studio 2010 on my server? Might there be another approach for me to get libcouchbase installed on a Windows server? (A different compiler perhaps?)

Thanks so much for any insight on this-

-Sean


Trond Norbye

unread,
Oct 1, 2012, 3:53:21 PM10/1/12
to couc...@googlegroups.com
All you need is a C compiler and you should be good to go... We do provide an nmakefile to build on windows without using the autotools suite.

Cheers,

Trond
--
Trond Norbye

Sean V Baker

unread,
Oct 1, 2012, 4:02:33 PM10/1/12
to couc...@googlegroups.com
Great - thanks so much!

Trond Norbye

unread,
Oct 1, 2012, 4:04:54 PM10/1/12
to couc...@googlegroups.com
I don't think we've got any plans about providing a binary package, but I guess that could come in handy for win32 deployments given that they normally don't come with a c compiler pre-installed ;)

CHeers,

Trond
--
Trond Norbye

Sergey Avseyev

unread,
Oct 1, 2012, 4:22:04 PM10/1/12
to couc...@googlegroups.com
I've built zipfiles for latest tag, and our builders[1] are making
them for each build here[2]

I attached them to this message, but they are not published anywhere yet

[1]: http://sdkbuilds.couchbase.com/job/libcouchbase-win
[2]: http://sdkbuilds.couchbase.com/job/libcouchbase-win/ARCH=x86,MSVCC_VER=9,label=windows/ws/libcouchbase-2.0.0beta-20-gffb60dc_x86_vc9.zip

--
Sergey Avseyev
windows-2.0.0beta.tar

Matt Ingenthron

unread,
Oct 1, 2012, 5:58:30 PM10/1/12
to couc...@googlegroups.com
On 10/1/12 1:04 PM, "Trond Norbye" <trond....@gmail.com> wrote:

I don't think we've got any plans about providing a binary package, but I guess that could come in handy for win32 deployments given that they normally don't come with a c compiler pre-installed ;)

We definitely do plan this, we just have needed to work through the packaging and testing.  I see later in the thread, Sergey has provided some links to current builds.

Sean: please let us know how this works out for you!

Matt

Sean V Baker

unread,
Oct 2, 2012, 10:29:16 AM10/2/12
to couc...@googlegroups.com
Hi Trond,

It looks like I can't use NPM to install couchnode on Windows - I imagine that is not a targeted platform for the couchnode NPM at this point?

This is what I get:

C:\Inetpub\wwwroot\node>npm install couchbase > c:\npm.txt
npm WARN package.json mon...@1.1.1 No README.md file found!
'node-waf' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! couc...@0.0.1 install: `node-waf clean ; node-waf configure build`
npm ERR! `cmd "/c" "node-waf clean ; node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the couc...@0.0.1 install script.
npm ERR! This is most likely a problem with the couchbase package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-waf clean ; node-waf configure build
npm ERR! You can get their info via:
npm ERR!     npm owner ls couchbase
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 5.2.3790
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "couchbase"
npm ERR! cwd C:\Inetpub\wwwroot\node
npm ERR! node -v v0.8.11
npm ERR! npm -v 1.1.62
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Inetpub\wwwroot\node\npm-debug.log
npm ERR! not ok code 0

Thanks-
-Sean



On Monday, October 1, 2012 3:53:22 PM UTC-4, Trond Norbye wrote:

Trond Norbye

unread,
Oct 2, 2012, 12:12:06 PM10/2/12
to couc...@googlegroups.com
To be honest I've never tried node.js at all on windows :) All I've done on windows have so far been building a pure win32 program using libcouchbase directly.

We are currently beefing up the node.js driver and we'll most likely test on win32 as well :) Sorry that I can't promise anything

Cheers,

Trond
--
Trond Norbye

Sean V Baker

unread,
Oct 2, 2012, 1:12:26 PM10/2/12
to couc...@googlegroups.com
Thanks man! Glad to hear the node driver is on the radar. I'll work with it on my mac until I figure out how to install it on Windows :)

-Sean
Reply all
Reply to author
Forward
0 new messages