Installing Couchenode on Windows 7

What a nightmare!

First,straight parts:

Installing node-gyp

npm install -g node-gyp

Installing Python

Install version  2.7.3  here. Newer versions do not work.

Installing Libcouchbase

Download C client library from here.Extract it under C:/couchbase. lib folder should be placed right under this directory.

Now,the fun part:

Installing Visual Studio

We need this for C/C++ compiler.Anybody can find a better solution,be my guest.Since this was painful,i am writing down step-by step instructions.

You need to install Visual Studio 2010.Not a newer version!

If you have any Visual C++ 2010 copies on your machine,remove them. Uninstall any Visual Studio or SDK from your machine,including the ones installed by other programs.

Download and install Visual Studio C++ 2010 Express from here,then SDK 7.1 from here and then Visual C++ Compiler Update from here.Please follow this order.Otherwise if you type on your command line:

npm install couchbase

you could get the very fancy error:

“error MSB8007: The Platform for project ‘couchbase_impl.vcxproj’ is invalid.
Platform=’x64′. You may be seeing this message because you are trying to build a project without a solution file,……blablabla  “

Once you are done with this,run the install command again.

npm install couchbase

You would see the error below:

c:\program files (x86)\microsoft visual studio 10.0\vc\include\intrin.h(26): fatal error C1083: Cannot open include file: ‘ammintrin.h’: No such file or directory

To overcome this,install Microsoft Visual Studio 2010 Service Pack 1 from here.

Finally,

npm install couchbase

should work.

Sorry to expose so much Microsoft stuff to you.

Advertisements