'dBi'에 해당되는 글 2건

  1. 2008.01.18 ruby dbi 설정
  2. 2008.01.16 DBI 설치

> ruby dbi를 다운 로드 받습니다.
http://rubyforge.org/projects/ruby-dbi/


> 압축 해재
[neouserwork-1(neouser):/ko> tar xvfz dbi-0.1.1.tar.gz
ruby-dbi/
ruby-dbi/bin/
ruby-dbi/bin/commandline/
ruby-dbi/bin/commandline/sqlsh.rb
ruby-dbi/bin/PATHCONV
ruby-dbi/bin/proxyserver/
ruby-dbi/bin/proxyserver/proxyserver.rb
...


> 실행환경 설정
[neouserwork-1(neouser):/ko/ruby-dbi> ruby setup.rb config --with=dbd_ado,dbi,dbd_mysql,dbd_odbc,dbd_oracle


> setup실행
[neouserwork-1(neouser):/ko/ruby-dbi> ruby setup.rb setup


> setup실행 (root 권한)
[neouserwork-1(neouser):/ko/ruby-dbi> ruby setup.rb install

DBI 설치

Ruby 2008. 1. 16. 20:46

본 항목이 무슨 Ruby와 연관이 있을까 싶지만
Ruby를 가지고 crontab 에 걸어서 DB작업을 주기적으로 할때라면
DBI가 빠지고서는 이야기 하기 어렵기 때문이다.

DBI
 - Download : http://search.cpan.org/~timb/DBI/DBI.pm
 - FileName : DBI-1.601.tar.tar

[testwork-1(neouser):/neouser/DBI-1.601> ls
Changes  Driver.xst    Makefile.PL*  TASKS.pod      dbilogstrip.PL  dbivport.h    lib/
DBI.pm   Driver_xst.h  Perl.xs       TODO_2005.txt  dbipport.h      dbixs_rev.h   t/
DBI.xs   MANIFEST      README        dbd_xsh.h      dbiprof.PL      dbixs_rev.pl  test.pl*
DBIXS.h  META.yml      Roadmap.pod   dbi_sql.h      dbiproxy.PL     ex/           typemap


> 과정 1

[testwork-1(neouser):/neouser/DBI-1.601> perl Makefile.PL
**************************************************************************
  Perl versions below 5.6.1 are no longer supported by the DBI.
  Perl versions 5.6.x may fail during installation with a complaint
  about the use of =head3 in the pod documentation.
**************************************************************************
Press return to continue...


> 과정 2~4 (root 계정)


[testwork-1(neouser):/neouser/DBI-1.601> make
 ...
[testwork-1(neouser):/neouser/DBI-1.601> make test
 ...
[testwork-1(neouser):/neouser/DBI-1.601> make install



> 확인



1 

글 보관함

카운터

Total : / Today : / Yesterday :
get rsstistory!