Permalink
Browse files

install dependencies for couchbase server 2.0

dependnecies.json file now support mac osx 10.7
  • Loading branch information...
0 parents commit 905a0536f5bbf3cc944e64ccefa1b275650b0331 Farshid Ghods committed Nov 30, 2012
Showing with 606 additions and 0 deletions.
  1. +17 −0 README.md
  2. +41 −0 build-curl.txt
  3. +50 −0 build-gperftools.txt
  4. +7 −0 build-icu4c.txt
  5. +44 −0 build-libevent.txt
  6. +50 −0 build-otp.txt
  7. +5 −0 build-pysqlite.txt
  8. +29 −0 build-snappy.txt
  9. +7 −0 build-v8.txt
  10. 0 build.otp.txt
  11. +176 −0 dependencyutil.py
  12. +52 −0 install-deps.py
  13. +1 −0 tests/__init__.py
  14. +101 −0 tests/test-dependencies.json
  15. +26 −0 tests/tests.py
@@ -0,0 +1,17 @@
+couchbase-build-dependencies
+
+usage :
+
+python ./install-deps.py -i /opt/couchbase -t /tmp/
+
+this tool detects which operating system the user runs this tool on and finds the best
+match based on the projects listed in the dependencies.json file
+
+by default this tool downloads the dependencies from web location but if you
+want to override the web location with local directory you can use -d option
+
+all the dependencies are built with /opt/couchbase as prefix
+
+for each dependencies you will also find a build-* file which describes the steps that
+the build engineer or developers need to follow in order to generate those binaries from
+the source code.
@@ -0,0 +1,41 @@
+* mac 64-bit 10.7
+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
+LD_RUN_PATH=/opt/couchbase/lib make
+LD_RUN_PATH=/opt/couchbase/lib make install
+
+* centos 64-bit 5
+wget http://curl.haxx.se/download/curl-7.21.4.tar.gz
+tar -xvf curl-7.21.4.tar.gz
+cd curl-7.21.4
+wget https://github.com/downloads/libevent/libevent/libevent-2.0.11-stable.tar.gz
+./configure --prefix=/opt/couchbase --disable-openssl
+disable-ldaps --without-libidn
+LD_RUN_PATH=/opt/couchbase/lib make
+LD_RUN_PATH=/opt/couchbase/lib make install
+tar -zcvf centos-5-x86-64-curl-7.21.4.tar.gz /opt/couchbase/
+* centos 32-bit 5
+disable-ldaps --without-libidn
+LD_RUN_PATH=/opt/couchbase/lib make
+LD_RUN_PATH=/opt/couchbase/lib make install
+tar -zcvf centos-5-x86-curl-7.21.4.tar.gz /opt/couchbase/
+* ubuntu 64-bit 10.04
+disable-ldaps --without-libidn
+LD_RUN_PATH=/opt/couchbase/lib make
+LD_RUN_PATH=/opt/couchbase/lib make install
+tar -zcvf ubuntu-10-04-x86-64-curl-7.21.4.tar.gz /opt/couchbase/
+* ubuntu 32-bit 10.04
+disable-ldaps --without-libidn
+LD_RUN_PATH=/opt/couchbase/lib make
+LD_RUN_PATH=/opt/couchbase/lib make install
+tar -zcvf ubuntu-10-04-x86-curl-7.21.4.tar.gz /opt/couchbase/
+* windows 64-bit
+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
+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/
@@ -0,0 +1,50 @@
+* mac 64-bit 10.7
+wget 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
+make libtcmalloc_minimal.la
+make install-exec-am install-data-am
+tar -zcvf mac-10-07-x86-64-gperftools-2.0.tar.gz /opt/couchbase/
+* centos 64-bit 5
+wget 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
+make libtcmalloc_minimal.la
+make install-exec-am install-data-am
+tar -zcvf centos-5-x86-64-gperftools-2.0.tar.gz /opt/couchbase/
+* centos 32-bit 5
+wget 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
+make libtcmalloc_minimal.la
+make install-exec-am install-data-am
+tar -zcvf centos-5-x86-64-gperftools-2.0.tar.gz /opt/couchbase/
+* ubuntu 64-bit 10.04
+wget 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
+make libtcmalloc_minimal.la
+make install-exec-am install-data-am
+tar -zcvf ubuntu-10-04-x86-64-gperftools-2.0.tar.gz /opt/couchbase/
+* ubuntu 32-bit 10.04
+wget 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
+make libtcmalloc_minimal.la
+make install-exec-am install-data-am
+tar -zcvf ubuntu-10-04-x86-gperftools-2.0.tar.gz /opt/couchbase/
+* windows 64-bit 2008
+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
+make libtcmalloc_minimal.la
+make install-exec-am install-data-am
+tar -zcvf ubuntu-10-04-x86-gperftools-2.0.tar.gz /opt/couchbase/
+
+
@@ -0,0 +1,7 @@
+* mac 64-bit
+git clone git://github.com/couchbase/icu4c
+cd icu4c
+cd source && ./configure "--prefix=/opt/couchbase
+cd ..
+make -C source install
+tar -zcvf centos-10-7-x86-64-icu4c-894be7.tar.gz /opt/couchbase/
@@ -0,0 +1,44 @@
+* mac 64-bit 10.7
+./configure --prefix=/opt/couchbase --disable-openssl
+make
+make install
+* centos 64-bit 5
+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
+make
+make install
+tar -zcvf centos-5-x86-64-libevent-2.0.11-stable.tar.gz /opt/couchbase/
+* centos 32-bit 5
+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
+make
+make install
+tar -zcvf centos-5-x86-libevent-2.0.11-stable.tar.gz /opt/couchbase/
+* ubuntu 64-bit 10.04
+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
+make
+make install
+tar -zcvf ubuntu-10-04-x86-64-libevent-2.0.11-stable.tar.gz /opt/couchbase/
+* ubuntu 32-bit 10.04
+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
+make
+make install
+tar -zcvf ubuntu-10-04-x86-libevent-2.0.11-stable.tar.gz /opt/couchbase/
+* windows 64-bit 2k8
+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
+make
+make install
+tar -zcvf win-sk8-x86-64-libevent-2.0.11-stable.tar.gz /opt/couchbase/
@@ -0,0 +1,50 @@
+* mac 64-bit 10.7
+
+git apply 0001-disable-usage-of-futex-syscall.patch
+git apply otp_R14B02-ssl-server.patch
+LD_RUN_PATH=/opt/couchbase/lib ./otp_build autoconf
+touch lib/wx/SKIP lib/megaco/SKIP
+LD_RUN_PATH=/opt/couchbase/lib ./configure --prefix=/opt/couchbase --enable-smp-support \
+ --disable-hipe --disable-fp-exceptions --enable-darwin-64bit CFLAGS="-O2 -g -DNO_JUMP_TABLE"
+LD_RUN_PATH=/opt/couchbase/lib make
+LD_RUN_PATH=/opt/couchbase/lib make install
+* centos 64-bit 5
+git apply otp_R14B02-64bit.patch || true
+git apply 0001-disable-usage-of-futex-syscall.patch
+git apply otp_R14B02-ssl-server.patch
+LD_RUN_PATH=/opt/couchbase/lib ./otp_build autoconf \
+touch lib/wx/SKIP lib/megaco/SKIP
+LD_RUN_PATH=/opt/couchbase/lib ./configure --prefix=/opt/couchbase --enable-smp-support \
+ --disable-hipe --disable-fp-exceptions --enable-darwin-64bit CFLAGS="-O2 -g -DNO_JUMP_TABLE"
+LD_RUN_PATH=/opt/couchbase/lib make
+LD_RUN_PATH=/opt/couchbase/lib make install
+* centos 32-bit 5
+git apply otp_R14B02-64bit.patch || true
+git apply 0001-disable-usage-of-futex-syscall.patch
+git apply otp_R14B02-ssl-server.patch
+LD_RUN_PATH=/opt/couchbase/lib ./otp_build autoconf \
+touch lib/wx/SKIP lib/megaco/SKIP
+LD_RUN_PATH=/opt/couchbase/lib ./configure --prefix=/opt/couchbase --enable-smp-support \
+ --disable-hipe --disable-fp-exceptions --enable-darwin-64bit CFLAGS="-O2 -g -DNO_JUMP_TABLE"
+LD_RUN_PATH=/opt/couchbase/lib make
+LD_RUN_PATH=/opt/couchbase/lib make install
+* ubuntu 64-bit 10.04
+git apply otp_R14B02-64bit.patch || true
+git apply 0001-disable-usage-of-futex-syscall.patch
+git apply otp_R14B02-ssl-server.patch
+LD_RUN_PATH=/opt/couchbase/lib ./otp_build autoconf \
+touch lib/wx/SKIP lib/megaco/SKIP
+LD_RUN_PATH=/opt/couchbase/lib ./configure --prefix=/opt/couchbase --enable-smp-support \
+ --disable-hipe --disable-fp-exceptions --enable-darwin-64bit CFLAGS="-O2 -g -DNO_JUMP_TABLE"
+LD_RUN_PATH=/opt/couchbase/lib make
+LD_RUN_PATH=/opt/couchbase/lib make install
+* ubuntu 32-bit 10.04
+git apply otp_R14B02-64bit.patch || true
+git apply 0001-disable-usage-of-futex-syscall.patch
+git apply otp_R14B02-ssl-server.patch
+LD_RUN_PATH=/opt/couchbase/lib ./otp_build autoconf \
+touch lib/wx/SKIP lib/megaco/SKIP
+LD_RUN_PATH=/opt/couchbase/lib ./configure --prefix=/opt/couchbase --enable-smp-support \
+ --disable-hipe --disable-fp-exceptions --enable-darwin-64bit CFLAGS="-O2 -g -DNO_JUMP_TABLE"
+LD_RUN_PATH=/opt/couchbase/lib make
+LD_RUN_PATH=/opt/couchbase/lib make install
@@ -0,0 +1,5 @@
+* centos 64-bit
+mkdir -p /opt/couchbase/lib/python
+python2.6 setup.py config -I /opt/couchbase/include -L /opt/couchbase/lib build
+cd build/lib* && tar czf pysqlite2.tar pysqlite2
+mv pysqlite2.tar /opt/couchbase/lib/python
@@ -0,0 +1,29 @@
+* mac 64-bit 10.7
+git clone git://github.com/couchbase/snappy
+cd snappy
+git reset --hard 5681dde156e9d07adbeeab79666c9a9d7a10ec95
+./configure --prefix=/opt/couchbase
+make LDFLAGS=" -no-undefined"
+make install
+tar -zcvf tar -zcvf centos-5-x86-64-snappy-894be7.tar.gz /opt/couchbase/
+* centos 64-bit 5
+git clone git://github.com/couchbase/snappy
+cd snappy
+git reset --hard 5681dde156e9d07adbeeab79666c9a9d7a10ec95
+./configure --prefix=/opt/couchbase
+make LDFLAGS=" -no-undefined"
+make install
+tar -zcvf tar -zcvf centos-5-x86-64-snappy-894be7.tar.gz /opt/couchbase/
+* centos 32-bit 5
+./configure --prefix=/opt/couchbase
+make LDFLAGS=" -no-undefined"
+make install
+* ubuntu 64-bit 10.04
+./configure --prefix=/opt/couchbase
+make LDFLAGS=" -no-undefined"
+make install
+* ubuntu 32-bit 10.04
+./configure --prefix=/opt/couchbase
+make LDFLAGS=" -no-undefined"
+make install
+
@@ -0,0 +1,7 @@
+git clone git://github.com/couchbase/v8
+git checkout 3.9.7
+scons -j 8 arch=x86_64 mode=release snapshot=on library=shared visibility=default
+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/
No changes.
Oops, something went wrong.

0 comments on commit 905a053

Please sign in to comment.