Can't compile node.js driver Couchnode on Windows


#1

I can’t compile node.js driver Couchnode on Windows 7. I use node-gyp for compile node.js extension and have latest compiled libcouchbase.
I try # npm install couchbase
and have errors
Creating library D:\Projects\Serverside\node_modules\couchnode\build\Release\couchbase_impl.lib and object D:\Projects\Serverside\node_modules\couchnode\build\Release\couchbase_impl.exp
notify.obj : error LNK2001: unresolved external symbol __imp_lcb_get_cookie [D:\Projects\Serverside\node_modules\couchnode\build\couchbase_impl.vcxproj]
notify.obj : error LNK2001: unresolved external symbol __imp_lcb_set_store_callback [D:\Projects\Serverside\node_modules\couchnode\build\couchbase_impl.vcxproj]
notify.obj : error LNK2001: unresolved external symbol __imp_lcb_set_touch_callback [D:\Projects\Serverside\node_modules\couchnode\build\couchbase_impl.vcxproj]

Anybody compiled extension for node.js couchbase on Windows?


#2

Hello,
Sorry for the late answer, I have created a blog post explaining how to use Couhbase and Node on Windows:
http://tugdualgrall.blogspot.com/2013/01/getting-started-with-couchbase-
I am not building it from source just using libcouchbase and npm.
Let me know if this helps, or if you need more information.
Regards
Tug
@tgrall


#3

Hi there,
I’ve run into the same problems when trying to install Couchnode. It seems to be an issue with the Couchbase Client C Library. I’ve tried building it myself, and when I do so, I get the above errors that are mentioned above. I’ve also followed the instructions here: https://github.com/AdamLiechty/couchnode/blob/6cda2c0222921db1b5a0c02f6e
However, both the readme and your blog post (Tug) reference library distributions that aren’t actually on the Couchbase site. Basically, if I got to http://www.couchbase.com/communities/c/getting-started and try to download the Windows libraries, I get a server error saying that they don’t exist.
Does anybody know where I can get 64-bit compatible versions of the Client C Library for Windows? Without that, it seems I can’t install Couchnode on my local box. I can always use a server, but I’d much rather prefer to do local development for a variety of reasons.
Thanks!
-Sam