Skip to content

Commit

Permalink
add python installar
Browse files Browse the repository at this point in the history
  • Loading branch information
oda committed May 22, 2012
1 parent 6f958d8 commit fb4f7d0
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
9 changes: 8 additions & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
see http://jubat.us/

usage:
------
0. install git, hg and gcc
1. add jubatus.profile to your .xshrc or source jubatus.profile
2. move install.sh directory
3. run install.sh

if you want to use python client,

4. run install_python.sh

install.sh -dip
d : only download
i : only install
p : install path

for example,
example:
---------

# ./install.sh -i -p /usr/local/

if you want to install jubatus another directory,
Expand Down
12 changes: 10 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ MECAB_VER="0.99"
IPADIC_VER="2.7.0-20070801"
ZK_VER="3.3.4"
EVENT_VER="2.0.18"

PKG_VER="0.26"
PREFIX="${HOME}/local"

while getopts dip: OPT
Expand All @@ -31,6 +31,8 @@ if [ "${INSTALL_ONLY}" != "TRUE" ]
wget http://mecab.googlecode.com/files/mecab-ipadic-${IPADIC_VER}.tar.gz
wget http://ftp.riken.jp/net/apache/zookeeper/zookeeper-${ZK_VER}/zookeeper-${ZK_VER}.tar.gz
wget https://github.com/downloads/libevent/libevent/libevent-${EVENT_VER}-stable.tar.gz
wget http://pkgconfig.freedesktop.org/releases/pkg-config-${PKG_VER}.tar.gz

hg clone https://re2.googlecode.com/hg re2

git clone git://github.com/pfi/pficommon.git
Expand All @@ -50,14 +52,20 @@ if [ "${DOWNLOAD_ONLY}" != "TRUE" ]
tar zxf mecab-ipadic-${IPADIC_VER}.tar.gz
tar zxf zookeeper-${ZK_VER}.tar.gz
tar zxf libevent-${EVENT_VER}-stable.tar.gz
tar zxf pkg-config-${PKG_VER}.tar.gz

mkdir -p ${PREFFIX}

LD_LIBRARY_PATH=${PREFIX}/lib
export LD_LIBRARY_PATH


cd ./msgpack-${MSG_VER}
cd ./pkg-config-${PKG_VER}
./configure --prefix=${PREFIX}
make
make install

cd ../msgpack-${MSG_VER}
./configure --prefix=${PREFIX}
make
make install
Expand Down
27 changes: 27 additions & 0 deletions install_python.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#/bin/sh

PYTHON_VER="2.7.2"
PREFIX="${HOME}/local"


mkdir download
cd download

wget http://www.python.org/ftp/python/${PYTHON_VER}/Python-${PYTHON_VER}.tgz
wget http://peak.telecommunity.com/dist/ez_setup.py

tar zxf Python-${PYTHON_VER}.tgz

cd Python-${PYTHON_VER}
./configure --prefix=${PREFIX}
make
make install

cd ..
python ez_setup.py
easy_install pip
pip install jubatus
pip install msgpack-rpc-python



0 comments on commit fb4f7d0

Please sign in to comment.