본문 바로가기
콤퓨타/Simulator&Testing

dbt2 - postgreSQL로 돌리기 (미완성)

by 어니엉 2013. 5. 7.
728x90

readling_line 설치

소스다운로드 :  ftp://ftp.cwru.edu/pub/bash/readline-6.2.tar.gz

압축풀고 폴더 들어가서

./configure

make

sudo make install

sudo ldconfig


~/.bash_profile열고 LD_LIBRARY_PATH에 shlib폴더의 위치 추가

source ~/.bash_profile

sudo ldconfig




python 2.7 설치

wget http://www.python.org/ftp/python/2.7.1/Python-2.7.1.tar.bz2 

압축풀고 폴더로ㄱ ㄱ

./configure

make

sudo make install



R 설치

이거 설치 안되어있으면 ImportError: No module named rpy2.robjects 어쩌구 에러남여

다운로드

wget http://cran.cnr.berkeley.edu/src/base/R-2/R-2.15.2.tar.gz


설치

./configure --with-readline=no --with-x=no --enable-R-shlib 

make (이거좀많이~~ 오래걸림)

sudo make install


~/.bash_profile열고 LD_LIBRARY_PATH에 lib폴더 위치 추가하고 sudo ldconfig






rpy2설치

wget http://downloads.sourceforge.net/project/rpy/rpy2/2.3.x/rpy2-2.3.1.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Frpy%2Ffiles%2Frpy2%2F2.3.x%2Frpy2-2.3.1.tar.gz%2Fdownload&ts=1359529900&use_mirror=jaist

압축풀고 폴더 들어가서
python setup.py build
python setup.py install



wget http://downloads.sourceforge.net/project/rpy/rpy/1.0.3/rpy-1.0.3.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Frpy%2Ffiles%2Frpy%2F1.0.3%2Frpy-1.0.3.tar.gz%2Fdownload&ts=1359529961&use_mirror=jaist






dbt2 소스 다운로드

git clone git://osdldbt.git.sourceforge.net/gitroot/osdldbt/dbt2


cmake -DDBMS=pgsql

sudo make install DESTDIR=/usr/local



다운로드받은 폴더 안에 들어가서, storedproc/pgsql/c 로 들어가서

make

make install 

(절대 ! sudo 로 하지말것... 안그럼 pg_config를 못찾는다고 나옴)


[설치위치]/bin/pgsql/로 이동 !

[설치위치]/examples/dbt2_profile을 복사해다 넣을 것.

source dbt_profile


디비생성 (/tmp/data에 생성된다고함..)

dbt2-pgsql-build-db -w 1


테스트 워크로드 궈궈 (5분정도 걸림 -0-)

dbt2-run-workload -a pgsql -d 300 -w 1 -o /tmp/result -c 10



Tip!!

TIMESLOG:  could not bind IPv6 socket: Address already in use

HINT:  Is another postmaster already running on port 5432? If not, wait a few seconds and retry.LOG:  could not bind IPv4 socket: Address already in use

HINT:  Is another postmaster already running on port 5432? If not, wait a few seconds and retry.

WARNING:  could not create listen socket for "localhost" FATAL:  could not create any TCP/IP sockets


뭐 이런 에러 뜨면, ps -ef | grep post 라고 검색해서 나오는 postgreSQL 관련 프로세스 다 주겨뻐리기기

728x90

'콤퓨타 > Simulator&Testing' 카테고리의 다른 글

DBT2 - MySQL  (0) 2013.05.07
dbt3 (postgreSQL)  (0) 2013.05.06

댓글