• 源码安装cx_Oracle(适合离线环境)


    cd ~/tools

    unzip instantclient-basic-linux.x64-12.2.0.1.0.zip

    mv instantclient_12_2 /opt/

    export ORACLE_HOME=/opt/instantclient_12_2/

    mv instantclient-sdk-linux.x64-12.2.0.1.0.zip /opt

    cd /opt

    unzip instantclient-sdk-linux.x64-12.2.0.1.0.zip

    这里解压会自动解压到/opt/instantclient_12_2/里

    export C_INCLUDE_PATH=/opt/instantclient_12_2/sdk/include/

    export LD_LIBRARY_PATH=/opt/instantclient_12_2/

    ln -s /opt/instantclient_12_2/libclntsh.so.12.1 /opt/instantclient_12_2/libclntsh.so

    cd ~/tools/rpmbao

    for hello in cpp-4.8.5-16.el7_4.1.x86_64.rpm libgcc-4.8.5-16.el7_4.1.i686.rpm libquadmath-4.8.5-16.el7_4.1.x86_64.rpm libstdc++-devel-4.8.5-16.el7_4.1.x86_64.rpm gcc-4.8.5-16.el7_4.1.x86_64.rpm libgcc-4.8.5-16.el7_4.1.x86_64.rpm libquadmath-devel-4.8.5-16.el7_4.1.x86_64.rpm python-devel-2.7.5-58.el7.x86_64.rpm gcc-c++-4.8.5-16.el7_4.1.x86_64.rpm libgfortran-4.8.5-16.el7_4.1.x86_64.rpm libstdc++-4.8.5-16.el7_4.1.i686.rpm gcc-gfortran-4.8.5-16.el7_4.1.x86_64.rpm libgomp-4.8.5-16.el7_4.1.x86_64.rpm libstdc++-4.8.5-16.el7_4.1.x86_64.rpm;
    当出现">"这个符号时,再敲"do rpm -ivh $hello ; "
    do rpm -ivh $hello ;
    当出现">"这个符号时,再敲"done"
    done

    echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/instantclient_12_2/" >> ~/.bashrc

    source ~/.bashrc

    cd ~/tools/cx_Oracle-6.0.3

    python setup.py install

  • 相关阅读:
    设计原则
    最小路径和--p64--动态规划
    ssm实现数据库关键信息的动态加载
    最大二叉树--p654--递归构造
    城市天际线--p807
    长url转短url--p535
    从中序与后序遍历中构造二叉树-p106--数组,二叉树遍历
    n皇后问题--p52--回溯
    Markdown(editormd)语法解析成HTML
    NFA的实现
  • 原文地址:https://www.cnblogs.com/liangweixiong/p/8004478.html
Copyright © 2020-2023  润新知