Permalink
Browse files

updated build-dep... shell script

  • Loading branch information...
1 parent 54b8a07 commit c59016716b9875331b96b085b380fc911625d99f Farshid Ghods committed Dec 28, 2012
View
13 centos/5/32-bit/build-dependencies.sh
@@ -1,9 +1,9 @@
#building all of the required dependencies for ubuntu 64-bit
# curl , libevent, v8, icu4c, gperftools, snappy and erlang otp
currentdir=`pwd`
-rm -rf curl-7.21.4
+rm -rf curl-7.21.4*
rm -rf /opt/couchbase/*
-curl -O http://curl.haxx.se/download/curl-7.21.4.tar.gz
+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
./configure --prefix=/opt/couchbase --without-ssl --disable-shared --disable-ldap --disable-ldaps --without-libidn CFLAGS="-O2 -g"
@@ -25,9 +25,11 @@ cp centos-5-x86-libevent-2.0.11-stable.tar.gz $currentdir/
cd $currentdir
rm -rf /opt/couchbase/*
rm -rf v8
+mkdir -p /opt/couchbase/lib
+mkdir -p /opt/couchbase/include
git clone git://github.com/couchbase/v8
git checkout 3.9.7
-scons -j 8 arch=ia32 mode=release snapshot=on library=shared visibility=default
+scons -j 8 arch=xia32 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
@@ -120,9 +122,8 @@ 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 ./configure --prefix=/opt/couchbase --enable-smp-support --disable-hipe --disable-fp-exceptions CFLAGS="-O2 -g"
LD_RUN_PATH=/opt/couchbase/lib make
LD_RUN_PATH=/opt/couchbase/lib make install
tar -zcvf centos-5-x86-otp-OTP_R14B04.tar.gz /opt/couchbase
-cp centos-5-x86-otp-OTP_R14B04.tar.gz $currentdir/
+cp centos-5-x86-otp-OTP_R14B04.tar.gz $currentdir/
View
11 centos/5/64-bit/build-dependencies.sh
@@ -1,9 +1,9 @@
#building all of the required dependencies for ubuntu 64-bit
# curl , libevent, v8, icu4c, gperftools, snappy and erlang otp
currentdir=`pwd`
-rm -rf curl-7.21.4
+rm -rf curl-7.21.4*
rm -rf /opt/couchbase/*
-curl -O http://curl.haxx.se/download/curl-7.21.4.tar.gz
+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
./configure --prefix=/opt/couchbase --without-ssl --disable-shared --disable-ldap --disable-ldaps --without-libidn CFLAGS="-O2 -g"
@@ -25,9 +25,11 @@ cp centos-5-x86-64-libevent-2.0.11-stable.tar.gz $currentdir/
cd $currentdir
rm -rf /opt/couchbase/*
rm -rf v8
+mkdir -p /opt/couchbase/lib
+mkdir -p /opt/couchbase/include
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
+scons -j 8 arch=x64 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
@@ -120,8 +122,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 ./configure --prefix=/opt/couchbase --enable-smp-support --disable-hipe --disable-fp-exceptions CFLAGS="-O2 -g"
LD_RUN_PATH=/opt/couchbase/lib make
LD_RUN_PATH=/opt/couchbase/lib make install
tar -zcvf centos-5-x86-64-otp-OTP_R14B04.tar.gz /opt/couchbase
View
6 mac/10.8/64-bit/build-dependencies.sh
@@ -1,7 +1,7 @@
#building all of the required dependencies for ubuntu 64-bit
# curl , libevent, v8, icu4c, gperftools, snappy and erlang otp
currentdir=`pwd`
-rm -rf curl-7.21.4
+rm -rf curl-7.21.4*
rm -rf /opt/couchbase/*
curl -O http://curl.haxx.se/download/curl-7.21.4.tar.gz
tar -xvf curl-7.21.4.tar.gz
@@ -25,9 +25,11 @@ cp centos-5-x86-64-libevent-2.0.11-stable.tar.gz $currentdir/
cd $currentdir
rm -rf /opt/couchbase/*
rm -rf v8
+mkdir -p /opt/couchbase/lib
+mkdir -p /opt/couchbase/include
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
+scons -j 8 arch=x64 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
View
11 ubuntu/10.04/32-bit/build-dependencies.sh
@@ -1,9 +1,9 @@
#building all of the required dependencies for ubuntu 64-bit
# curl , libevent, v8, icu4c, gperftools, snappy and erlang otp
currentdir=`pwd`
-rm -rf curl-7.21.4
+rm -rf curl-7.21.4*
rm -rf /opt/couchbase/*
-curl -O http://curl.haxx.se/download/curl-7.21.4.tar.gz
+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
./configure --prefix=/opt/couchbase --without-ssl --disable-shared --disable-ldap --disable-ldaps --without-libidn CFLAGS="-O2 -g"
@@ -25,6 +25,8 @@ cp ubuntu-10-04-x86-libevent-2.0.11-stable.tar.gz $currentdir/
cd $currentdir
rm -rf /opt/couchbase/*
rm -rf v8
+mkdir -p /opt/couchbase/lib
+mkdir -p /opt/couchbase/include
git clone git://github.com/couchbase/v8
git checkout 3.9.7
scons -j 8 arch=ia32 mode=release snapshot=on library=shared visibility=default
@@ -113,9 +115,8 @@ 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 ./configure --prefix=/opt/couchbase --enable-smp-support --disable-hipe --disable-fp-exceptions CFLAGS="-O2 -g"
LD_RUN_PATH=/opt/couchbase/lib make
LD_RUN_PATH=/opt/couchbase/lib make install
tar -zcvf ubuntu-10-04-x86-otp-OTP_R14B04.tar.gz /opt/couchbase
-cp ubuntu-10-04-x86-otp-OTP_R14B04.tar.gz $currentdir/
+cp ubuntu-10-04-x86-otp-OTP_R14B04.tar.gz $currentdir/
View
11 ubuntu/10.04/64-bit/build-dependencies.sh
@@ -1,9 +1,9 @@
#building all of the required dependencies for ubuntu 64-bit
# curl , libevent, v8, icu4c, gperftools, snappy and erlang otp
currentdir=`pwd`
-rm -rf curl-7.21.4
+rm -rf curl-7.21.4*
rm -rf /opt/couchbase/*
-curl -O http://curl.haxx.se/download/curl-7.21.4.tar.gz
+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
./configure --prefix=/opt/couchbase --without-ssl --disable-shared --disable-ldap --disable-ldaps --without-libidn CFLAGS="-O2 -g"
@@ -25,9 +25,11 @@ cp ubuntu-10-04-x86-64-libevent-2.0.11-stable.tar.gz $currentdir/
cd $currentdir
rm -rf /opt/couchbase/*
rm -rf v8
+mkdir -p /opt/couchbase/lib
+mkdir -p /opt/couchbase/include
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
+scons -j 8 arch=x64 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
@@ -113,8 +115,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 ./configure --prefix=/opt/couchbase --enable-smp-support --disable-hipe --disable-fp-exceptions CFLAGS="-O2 -g"
LD_RUN_PATH=/opt/couchbase/lib make
LD_RUN_PATH=/opt/couchbase/lib make install
tar -zcvf ubuntu-10-04-x86-64-otp-OTP_R14B04.tar.gz /opt/couchbase

0 comments on commit c590167

Please sign in to comment.