DBD::Oracle installation causing error

折月煮酒 提交于 2019-12-02 13:23:45

Refer these steps in given sequence.

I am using 64 bit linux box, so choose your RPM accordingly.

  • set below variables:

    LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib
    ORACLE_HOME=/usr/lib/oracle/11.2/client64
    

    MacOS users will need:

    DYLD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/
    

    Also add ORACLE_HOME to your PATH variable.

  • download DBD::Oracle from CPAN

  • untar the module and run below commands in given sequence:

    perl Makefile.PL
    make
    make install
    

    OR you can install the module using cpan command

DONE !!!

Thanks for the info! I noticed that oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm installed into /usr. So adding a soft link like this helps me solved the problem.

sudo ln -s /usr/include/oracle/11.2/client64 $ORACLE_HOME/include

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!