Error compiling couchbase-server 2.2.0 community edition (MapReduce compilaiton)

Hello couchbase community,

I am currently trying to compile couchbase server 2.2.0 community edition from source on debian squeeze OS i686. I have some errors when it goes to mapreduce compilation.

What I do is downloading the source tarball from this page http://www.couchbase.com/download and following this page : http://www.couchbase.com/wiki/display/couchbase/Building+Couchbase+from+Source+on+Linux
Which mean all I do is uncompressing and ‘make’

Here is the part that fail :

make[3]: Entering directory `/home/builder/packaging/debian-squeeze/couchbase/couchbase-server_src/couchdb/src/mapreduce' /bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src/snappy/snappy-1.0.4 -Wall -Winline -D_XOPEN_SOURCE -I/usr/include/v8 -I/opt/local/include -I/usr/local/include/v8 -I/opt/local/include/v8 -L/usr/local/lib -L/opt/local/lib -I/usr/lib/erlang/usr/include -DXP_UNIX -g -O2 -MT mapreduce_nif_la-mapreduce_nif.lo -MD -MP -MF .deps/mapreduce_nif_la-mapreduce_nif.Tpo -c -o mapreduce_nif_la-mapreduce_nif.lo `test -f 'mapreduce_nif.cc' || echo './'`mapreduce_nif.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src/snappy/snappy-1.0.4 -Wall -Winline -D_XOPEN_SOURCE -I/usr/include/v8 -I/opt/local/include -I/usr/local/include/v8 -I/opt/local/include/v8 -L/usr/local/lib -L/opt/local/lib -I/usr/lib/erlang/usr/include -DXP_UNIX -g -O2 -MT mapreduce_nif_la-mapreduce_nif.lo -MD -MP -MF .deps/mapreduce_nif_la-mapreduce_nif.Tpo -c mapreduce_nif.cc -fPIC -DPIC -o .libs/mapreduce_nif_la-mapreduce_nif.o In file included from mapreduce_nif.cc:39: mapreduce.h:67: error: ISO C++ forbids declaration of 'Isolate' with no type mapreduce.h:67: error: invalid use of '::' mapreduce.h:67: error: expected ';' before '*' token make[3]: *** [mapreduce_nif_la-mapreduce_nif.lo] Error 1 make[3]: Leaving directory `/home/builder/packaging/debian-squeeze/couchbase/couchbase-server_src/couchdb/src/mapreduce' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/home/builder/packaging/debian-squeeze/couchbase/couchbase-server_src/couchdb/src' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/builder/packaging/debian-squeeze/couchbase/couchbase-server_src/couchdb' make: *** [make-install-couchdb] Error 2

I also tried with couchbase-server 2.1.1
Do you have any idea on the problem ? Any advice would be appreciate. Thanks.
I am available if you need more informations.

Thomas.


EDIT : I did stop trying to compile on Squeeze, but managed to compile on wheezy