Will be good to have opinions on the built and run.
cmake file needs to be updated. does not contain Java related. Thanks, Kashirin Alex -- You received this message because you are subscribed to the Google Groups "Hypertable Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/hypertable-dev. For more options, visit https://groups.google.com/groups/opt_out.
FindBerkeleyDB.cmake
Description: Binary data
#!/usr/bin/env bash arch=`uname -m` if [ $arch == "i386" ] || [ $arch == "i586" ] || [ $arch == "i686" ] ; then ARCH=32 elif [ $arch == "x86_64" ] ; then ARCH=64 else echo "Unknown processor architecture: $arch" exit 1 fi echo "Release: $(lsb_release -sc)" echo "Arch: $arch" cd ~ mkdir src cd src apt-get -y update apt-get -y --allow-unauthenticated install git git clone git://github.com/hypertable/hypertable.git apt-get -y update apt-get -y --allow-unauthenticated install zip g++ make #apt-get -y --allow-unauthenticated install gcc-multilib g++-4.7-multilib libstdc++6-4.7-dev libc6-dev-amd64 apt-get -y --allow-unauthenticated install python-dev apt-get -y --allow-unauthenticated install rrdtool apt-get -y --allow-unauthenticated install mpich2 apt-get -y --allow-unauthenticated install libicu-dev #apt-get -y --allow-unauthenticated install libart-2.0-2 libart-2.0-dev cd ~ mkdir dependeciesBuilds echo make cd ~/dependeciesBuilds wget http://ftp.gnu.org/gnu/make/make-4.0.tar.gz tar xf make-4.0.tar.gz cd make-4.0 ./configure; make; make install cd ~; /sbin/ldconfig echo Cmake cd ~/dependeciesBuilds wget http://www.cmake.org/files/v2.8/cmake-2.8.12.tar.gz tar xzvf cmake-2.8.12.tar.gz cd cmake-2.8.12 ./bootstrap --prefix=/usr; make; make install cd ~; /sbin/ldconfig echo m4 cd ~/dependeciesBuilds wget 'http://ftp.gnu.org/gnu/m4/m4-1.4.17.tar.gz' tar xf m4-1.4.17.tar.gz cd m4-1.4.17 ./configure; make; make install cd ~; /sbin/ldconfig echo gmp cd ~/dependeciesBuilds wget 'https://ftp.gnu.org/gnu/gmp/gmp-5.1.3.tar.bz2' tar xf gmp-5.1.3.tar.bz2 cd gmp-5.1.3 ./configure; make; make install cd ~; /sbin/ldconfig echo mpfr cd ~/dependeciesBuilds wget 'http://www.mpfr.org/mpfr-current/mpfr-3.1.2.tar.gz' tar xf mpfr-3.1.2.tar.gz cd mpfr-3.1.2 ./configure; make; make install cd ~; /sbin/ldconfig echo mpc cd ~/dependeciesBuilds wget 'ftp://ftp.gnu.org/gnu/mpc/mpc-1.0.2.tar.gz' tar xf mpc-1.0.2.tar.gz cd mpc-1.0.2 ./configure; make; make install cd ~; /sbin/ldconfig echo gcc-4.8.2 cd ~/dependeciesBuilds wget 'http://www.netgull.com/gcc/releases/gcc-4.8.2/gcc-4.8.2.tar.gz' tar xzvf gcc-4.8.2.tar.gz cd gcc-4.8.2 ./configure --enable-multilib --enable-threads=posix --prefix=/usr/local; make; make install #http://gcc.gnu.org/install/configure.html sudo rm /usr/bin/cpp /usr/bin/gcc /usr/bin/g++ sudo ln -s /usr/local/bin/cpp /usr/bin/cpp sudo ln -s /usr/local/bin/gcc /usr/bin/gcc sudo ln -s /usr/local/bin/g++ /usr/bin/g++ #update-alternatives --install /usr/bin/gcc gcc /usr/local/bin/gcc 60 #http://stackoverflow.com/questions/7832892/how-to-change-the-default-gcc-compiler-in-ubuntu cd ~; /sbin/ldconfig echo log4cpp cd ~/dependeciesBuilds wget 'http://sourceforge.net/projects/log4cpp/files/log4cpp-1.1.x%20(new)/log4cpp-1.1/log4cpp-1.1.1.tar.gz/download' --output-document=log4cpp.tgz tar zxf log4cpp.tgz cd log4cpp ./configure --with-pthreads; make; make install cd ~; /sbin/ldconfig echo libevent4 cd ~/dependeciesBuilds wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz tar xzvf libevent-2.0.21-stable.tar.gz cd libevent-2.0.21-stable ./configure; make; make install cd ~; /sbin/ldconfig echo libunwind if [ $ARCH -eq 64 ]; then cd ~/dependeciesBuilds wget http://download.savannah.gnu.org/releases/libunwind/libunwind-1.0.1.tar.gz tar xzvf libunwind-1.0.1.tar.gz cd libunwind-1.0.1/ ./configure CFLAGS=-U_FORTIFY_SOURCE ; make; make install cd ~; /sbin/ldconfig fi echo Cronolog cd ~/dependeciesBuilds wget http://cronolog.org/download/cronolog-1.6.2.tar.gz tar xzvf cronolog-1.6.2.tar.gz cd cronolog-1.6.2/ ./configure; make; make install cd ~; /sbin/ldconfig echo Google Perftools cd ~/dependeciesBuilds wget https://gperftools.googlecode.com/files/gperftools-2.1.tar.gz tar xzvf gperftools-2.1.tar.gz cd gperftools-2.1 ./configure LIBS=-lstdc++; make; make install cd ~; /sbin/ldconfig echo bzip2 cd ~/dependeciesBuilds wget http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz tar xzvf bzip2-1.0.6.tar.gz cd bzip2-1.0.6 make --makefile=Makefile-libbz2_so; make install cd ~; /sbin/ldconfig echo zlib cd ~/dependeciesBuilds wget http://zlib.net/zlib-1.2.8.tar.gz tar xzvf zlib-1.2.8.tar.gz cd zlib-1.2.8 ./configure; make; make install cd ~; /sbin/ldconfig echo Boost cd ~/dependeciesBuilds wget 'http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.bz2/download' --output-document=boost_1_55_0.tar.bz2 tar xjvf boost_1_55_0.tar.bz2 cd boost_1_55_0 ./bootstrap.sh --with-icu echo "using mpi ;" >> "project-config.jam" ./bjam install --with-atomic --with-thread --with-python --with-chrono --with-filesystem --with-iostreams --with-program_options --with-system --with-graph --with-regex cd ~; /sbin/ldconfig echo BerkeleyDB cd ~/dependeciesBuilds wget http://download.oracle.com/berkeley-db/db-6.0.20.tar.gz tar xzvf db-6.0.20.tar.gz cd db-6.0.20/build_unix ../dist/configure --enable-cxx; make; make install ln -s /usr/local/BerkeleyDB.6.0 /usr/local/BerkeleyDB-current echo "/usr/local/BerkeleyDB.6.0/lib" > "/etc/ld.so.conf.d/bdb.conf" cd ~; /sbin/ldconfig echo SIGAR cd ~/dependeciesBuilds wget 'http://sourceforge.net/projects/sigar/files/sigar/1.6/hyperic-sigar-1.6.4-src.tar.gz/download' --output-document=hyperic-sigar-1.6.4-src.zip unzip hyperic-sigar-1.6.4-src.zip cp hyperic-sigar-1.6.4/sigar-bin/include/*.h /usr/local/include if [ $ARCH -eq 32 ]; then cp hyperic-sigar-1.6.4/sigar-bin/lib/libsigar-x86-linux.so /usr/local/lib else cp hyperic-sigar-1.6.4/sigar-bin/lib/libsigar-amd64-linux.so /usr/local/lib fi cd ~; /sbin/ldconfig echo Google RE2 cd ~/dependeciesBuilds wget http://re2.googlecode.com/files/re2-20140111.tgz tar zxf re2-20140111.tgz cd re2 make install cd ~; /sbin/ldconfig echo Google Snappy cd ~/dependeciesBuilds wget http://snappy.googlecode.com/files/snappy-1.1.1.tar.gz tar xzvf snappy-1.1.1.tar.gz cd snappy-1.1.1 ./configure; make; make install cd ~; /sbin/ldconfig echo expat cd ~/dependeciesBuilds wget 'http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz/download' --output-document=expat-2.1.0.tar.gz tar xzvf expat-2.1.0.tar.gz cd expat-2.1.0 ./configure; make; make install cd ~; /sbin/ldconfig echo libxml2 cd ~/dependeciesBuilds wget ftp://xmlsoft.org/libxml2/libxml2-2.9.1.tar.gz tar xzvf libxml2-2.9.1.tar.gz cd libxml2-2.9.1 ./configure; make; make install cd ~; /sbin/ldconfig echo ncurses cd ~/dependeciesBuilds wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz tar xzvf ncurses-5.9.tar.gz cd ncurses-5.9 ./configure --prefix=/usr --with-shared --without-debug --enable-widec; make; make install mv -v /usr/lib/libncursesw.so.5* /lib ln -sfv ../../lib/$(readlink /usr/lib/libncursesw.so) /usr/lib/libncursesw.so for lib in ncurses form panel menu ; do rm -vf /usr/lib/lib${lib}.so echo "INPUT(-l${lib}w)" > /usr/lib/lib${lib}.so ln -sfv lib${lib}w.a /usr/lib/lib${lib}.a ln -sfv ${lib}w.pc /usr/lib/pkgconfig/${lib}.pc done ln -sfv libncurses++w.a /usr/lib/libncurses++.a rm -vf /usr/lib/libcursesw.so echo "INPUT(-lncursesw)" > /usr/lib/libcursesw.so ln -sfv libncurses.so /usr/lib/libcurses.so ln -sfv libncursesw.a /usr/lib/libcursesw.a ln -sfv libncurses.a /usr/lib/libcurses.a make distclean ./configure --prefix=/usr \ --with-shared \ --without-normal \ --without-debug \ --without-cxx-binding make sources libs cp -av lib/lib*.so.5* /usr/lib cd ~; /sbin/ldconfig echo readline cd ~/dependeciesBuilds wget ftp://ftp.cwru.edu/pub/bash/readline-6.2.tar.gz tar xzvf readline-6.2.tar.gz cd readline-6.2 ./configure CFLAGS=-fPIC --enable-widec; make; make install cd ~; /sbin/ldconfig echo libedit cd ~/dependeciesBuilds wget http://thrysoee.dk/editline/libedit-20130712-3.1.tar.gz tar xzvf libedit-20130712-3.1.tar.gz cd libedit-20130712-3.1 ./configure CFLAGS=-fPIC --enable-widec; make; make install cd ~; /sbin/ldconfig echo Thrift cd /usr/src wget http://archive.apache.org/dist/thrift/0.8.0/thrift-0.8.0.tar.gz tar xzvf thrift-0.8.0.tar.gz rm -f thrift ln -s hrift-0.8.0 thrift cd thrift-0.8.0 chmod 755 ./configure ./lib/php/src/ext/thrift_protocol/build/shtool ./configure --with-c_glib=yes --with-python=no --with-perl=no --with-ruby=no make; make install cd ~; /sbin/ldconfig echo jemalloc cd ~/dependeciesBuilds wget http://www.canonware.com/download/jemalloc/jemalloc-3.5.0.tar.bz2 tar xjvf jemalloc-3.5.0.tar.bz2 cd jemalloc-3.5.0 ./configure; make; make install cd ~; /sbin/ldconfig #echo util-linux #warning kerner version mismaches #cd ~/dependeciesBuilds #wget 'ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.24/util-linux-2.24.tar.gz' #tar xzvf util-linux-2.24.tar.gz #cd util-linux-2.24 #./configure --with-python=no --disable-mount --disable-libmount --enable-libuuid --enable-libblkid; make; make install #cd ~; /sbin/ldconfig #apt-get -y --allow-unauthenticated install default-jdk #apt-get -y --allow-unauthenticated install ant echo qfs cd ~ wget 'https://github.com/quantcast/qfs/tarball/master' --output-document=qfs-master.tar.gz tar xzvf qfs-master.tar.gz cd quantcast-qfs-a30c50e make; mv ~/quantcast-qfs-a30c50e/build/release/ /opt/qfs cd ~; /sbin/ldconfig #echo kosmosfs #cd ~ #wget 'http://sourceforge.net/projects/kosmosfs/files/kosmosfs/kfs-0.5/kfs-0.5.tar.gz/download' --output-document=kfs-0.5.tar.gz #tar xzvf kfs-0.5.tar.gz #cd kfs-0.5 #mkdir build #cd build #cmake -D CMAKE_BUILD_TYPE=RelWithDebInfo ~/kfs-0.5/ #make #make install #cd ~; /sbin/ldconfig # apt-get install -y --allow-unauthenticated libcephfs-dev libcephfs1 #echo ceph #cd ~ #wget http://ceph.com/download/ceph-0.75.tar.gz #tar xzvf ceph-0.75.tar.gz #cd ceph-0.75 #./configure --with-libzfs --disable-cephfs-java; make; make install #cd ~; /bin/rm -rf ~/ceph-0.75* #/sbin/ldconfig #echo CDH4 #cd ~ #wget http://archive.cloudera.com/cdh4/one-click-install/precise/amd64/cdh4-repository_1.0_all.deb #dpkg -i cdh4-repository_1.0_all.deb rm -r /opt/hypertable rm -r ~/build/ mkdir -p ~/build/hypertable cd ~/build/hypertable cmake ~/src/hypertable make -j5 make install /opt/hypertable/0.9.7.15/bin/start-all-servers.sh local cd ~/build/hypertable nohup make alltests &
