준호씨의 블로그

osx - DBD::Oracle 설치 본문

개발이야기

osx - DBD::Oracle 설치

준호씨 2018.10.05 01:11
cpan DBD::Oracle

ORACLE_HOME 설정 필요. 이건 instantclient-basic 경로로 해야 됨

Instant Client Package - SDK 필요

demo.mk 위치 수동 지정

그냥 cpan DBD::Oracle 로 설치 하려 하면 여기서 막힌다.

    Unable to locate an oracle.mk or other suitable *.mk
    file in your Oracle installation.  (I looked in
    /usr/local/Cellar/instantclient-sdk/12.2.0.1.0-2/rdbms/demo/demo_xe.mk /usr/local/Cellar/instantclient-sdk/12.2.0.1.0-2/rdbms/lib/oracle.mk /usr/local/Cellar/instantclient-sdk/12.2.0.1.0-2/rdbms/demo/oracle.mk /usr/local/Cellar/instantclient-sdk/12.2.0.1.0-2/rdbms/demo/demo_rdbms.mk /usr/local/Cellar/instantclient-sdk/12.2.0.1.0-2/rdbms/demo/demo_rdbms64.mk /usr/local/Cellar/instantclient-sdk/12.2.0.1.0-2/rdbms/lib/ins_rdbms.mk under /usr/local/Cellar/instantclient-sdk/12.2.0.1.0-2)

demo.mk 파일은 아래 위치에 있다.

/usr/local/Cellar/instantclient-sdk/12.2.0.1.0-2 $ find . | grep mk
./lib/sdk/demo/demo.mk

cd ~/.cpan/build/DBD-Oracle-1.74... 디렉토리로 이동

직접 지정해서 수동 설치 해 준다.

perl Makefile.PL -m /usr/local/Cellar/instantclient-sdk/12.2.0.1.0-2/lib/sdk/demo/demo.mk
make
make install

참고

https://stackoverflow.com/questions/5964999/how-do-you-install-perl-dbdoracle-on-osx-snow-leopard-10-6

0 Comments
댓글쓰기 폼