Skip to content
Browse files

updated build instructios to libevent,icu4c,gperftools and curl

  • Loading branch information...
1 parent 905a053 commit 2907727f2436166e3577474cddb555603dcbb0a5 Farshid Ghods committed Dec 19, 2012
Showing with 51 additions and 7 deletions.
  1. +2 −2 build-curl.txt
  2. +3 −1 build-gperftools.txt
  3. +2 −0 build-icu4c.txt
  4. +2 −2 build-libevent.txt
  5. +7 −1 build-snappy.txt
  6. +35 −1 build-v8.txt
View
4 build-curl.txt
@@ -35,7 +35,7 @@ tar -zcvf ubuntu-10-04-x86-curl-7.21.4.tar.gz /opt/couchbase/
curl -O http://curl.haxx.se/download/curl-7.21.4.tar.gz
tar -xvf curl-7.21.4.tar.gz
cd curl-7.21.4
-./configure --prefix=/opt/couchbase --without-ssl --disable-shared --disable-ldap --disable-ldaps --without-libidn
+./configure --prefix=/opt/couchbase --without-ssl --disable-shared --disable-ldap --disable-ldaps --without-libidn --host=x86_64-w64-mingw32 --enable-shared --disable-static
LD_RUN_PATH=/opt/couchbase/lib make
LD_RUN_PATH=/opt/couchbase/lib make install
-tar -zcvf win-2k8-x86-64-curl-7.21.4.tar.gz /opt/couchbase/
+tar -zcvf win-2k8-x86-64-curl-7.21.4.tar.gz /opt/couchbase/
View
4 build-gperftools.txt
@@ -42,7 +42,9 @@ tar -zcvf ubuntu-10-04-x86-gperftools-2.0.tar.gz /opt/couchbase/
curl -O http://gperftools.googlecode.com/files/gperftools-2.0.tar.gz
tar -xvf gperftools-2.0.tar.gz
cd gperftools-2.0
-./configure --prefix=/opt/couchbase --disable-static --enable-minimal CXXFLAGS=-DTCMALLOC_SMALL_BUT_SLOW
+./configure --prefix=/opt/couchbase --host=x86_64-w64-mingw32 --disable-static --enable-shared \
+ --enable-minimal --disable-debugalloc --disable-dependency-tracking \
+ --disable-cpu-profiler --disable-heap-checker --disable-heap-profiler
make libtcmalloc_minimal.la
make install-exec-am install-data-am
tar -zcvf ubuntu-10-04-x86-gperftools-2.0.tar.gz /opt/couchbase/
View
2 build-icu4c.txt
@@ -5,3 +5,5 @@ cd source && ./configure "--prefix=/opt/couchbase
cd ..
make -C source install
tar -zcvf centos-10-7-x86-64-icu4c-894be7.tar.gz /opt/couchbase/
+* windows 64-bit
+
View
4 build-libevent.txt
@@ -38,7 +38,7 @@ tar -zcvf ubuntu-10-04-x86-libevent-2.0.11-stable.tar.gz /opt/couchbase/
wget https://github.com/downloads/libevent/libevent/libevent-2.0.11-stable.tar.gz
tar -xvf libevent-2.0.11-stable.tar.gz
cd libevent-2.0.11-stable
-./configure --prefix=/opt/couchbase --disable-openssl
+./configure --prefix=/opt/couchbase --disable-openssl --host=x86_64-w64-mingw32 --enable-shared --disable-static
make
make install
-tar -zcvf win-sk8-x86-64-libevent-2.0.11-stable.tar.gz /opt/couchbase/
+tar -zcvf win-2k8-x86-64-libevent-2.0.11-stable.tar.gz /opt/couchbase/
View
8 build-snappy.txt
@@ -26,4 +26,10 @@ make install
./configure --prefix=/opt/couchbase
make LDFLAGS=" -no-undefined"
make install
-
+* windows 64-bit 2k8
+git clone git://github.com/couchbase/snappy
+cd snappy
+git reset --hard 5681dde156e9d07adbeeab79666c9a9d7a10ec95
+./configure --prefix=/opt/couchbase --host=x86_64-w64-mingw32 --enable-shared --disable-static
+make LDFLAGS=" -no-undefined"
+make install
View
36 build-v8.txt
@@ -4,4 +4,38 @@ scons -j 8 arch=x86_64 mode=release snapshot=on library=shared visibility=defaul
cp libv8.* /opt/couchbase/lib
cp include/* /opt/couchbase/include
echo "447decb75060a106131ab4de934bcc374648e7f2" > /opt/couchbase/lib/libv8.ver
-tar -zcvf centos-5-x86-64-curl-7.21.4.tar.gz /opt/couchbase/
+tar -zcvf centos-5-x86-64-curl-7.21.4.tar.gz /opt/couchbase/
+
+
+
+
+import sys
+sys.path.append("lib")
+sys.path.append(".")
+from mc_bin_client import MemcachedClient
+client_source = MemcachedClient("localhost", 11511)
+for i in range (100000):
+ x = client_source.set("couchbase%d"%i, 1000+i, 100000+i, "nosql")
+
+client_source = MemcachedClient("localhost", 11211)
+for i in range (100000):
+ x = client_source.set("couchbase%d"%i, 1000+i, 100000+i, "nosql")
+
+client_source = MemcachedClient("localhost", 11211)
+ x = client_source.set("couchbase%d"%i, 1000+i, 100000+i, "nosql")
+#Then we put some items with unique flags into the cluster
+
+for i in range (100000):
+ try:
+ a,b,c = client_source.get("couchbase%d"%i)
+ if a != 100000+i:
+ print "flags mismatch for %s " % ("couchbase%d"%i),a,
+ break
+ if c != "nosql":
+ print "value mismatch ",c,
+ break
+ except:
+ print "couchbase%d"%i,
+
+
+ x = client_source.set("couchbase%d"%i, 1000+i, 100000+i, "nosql")

0 comments on commit 2907727

Please sign in to comment.
Something went wrong with that request. Please try again.