Hypertable Installation on Ubuntu


Ubuntu 8.10 Intrepid Ibex 32-bit

EC2: ami-5c709435

Basic Dependencies

apt-get update
apt-get install g++ cmake libboost-dev liblog4cpp5-dev git-core cronolog libgoogle-perftools-dev libevent-dev zlib1g-dev libexpat1-dev libdb4.6++-dev libncurses-dev libreadline5-dev
wget http://internap.dl.sourceforge.net/sourceforge/sigar/hyperic-sigar-1.6.2.tar.gz
tar -xzvf hyperic-sigar-1.6.2.tar.gz
cp hyperic-sigar-1.6.2/sigar-bin/include/*.h /usr/local/include
cp hyperic-sigar-1.6.2/sigar-bin/lib/libsigar-x86-linux.so /usr/local/lib/
ldconfig

Thrift Broker Dependencies

See this official thrift installation wiki page for up-to-date installation instructions.

apt-get install sun-java6-jdk
update-java-alternatives --set java-6-sun
apt-get install ant autoconf automake libtool bison flex pkg-config php5 php5-cli ruby-dev libhttp-access2-ruby libbit-vector-perl
sudo ln -f -s /bin/bash /bin/sh
svn co http://svn.apache.org/repos/asf/incubator/thrift/trunk thrift
cd thrift
./bootstrap.sh
./configure
sudo make
sudo make install
sudo ldconfig

# install hypertable
mkdir hypertable_src
mkdir hypertable_build
cd hypertable_src
git clone git://scm.hypertable.org/pub/repos/hypertable.git
cd hypertable_build
cmake ../hypertable_src/hypertable
sudo make
sudo make install
Note:
1. 如果得到 "CMake Error: Could NOT find BZip2" 錯誤
sudo apt-get install libbz2-dev
2. 安裝thrit時注意使用最新的版本以及ant的最新版本
發佈了23 篇原創文章 · 獲贊 2 · 訪問量 1萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章