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

源码安装cx_Oracle(适合离线环境)的更多相关文章

  1. Windows 环境下于虚拟环境安装源码安装 cx_oracle

    安装前提条件: (1).安装 instantclient-basic-nt (2).安装 instantclient-sdk-nt (3).安装 Microsoft Visual C++ Compil ...

  2. Windows 环境下于虚拟环境中源码安装 cx_oracle

    安装前提条件: (1).安装 instantclient-basic-nt (2).安装 instantclient-sdk-nt (3).安装 Microsoft Visual C++ Compil ...

  3. CentOS 6.3下源码安装LAMP(Linux+Apache+Mysql+Php)环境【转载】

    本文转载自 园友David_Tang的博客,如有侵权请联系本人及时删除,原文地址: http://www.cnblogs.com/mchina/archive/2012/11/28/2778779.h ...

  4. 搭建LNAMP环境(七)- PHP7源码安装Memcached和Memcache拓展

    上一篇:搭建LNAMP环境(六)- PHP7源码安装MongoDB和MongoDB拓展 一.安装Memcached 1.yum安装libevent事件触发管理器 yum -y install libe ...

  5. 搭建LNAMP环境(二)- 源码安装Nginx1.10

    上一篇:搭建LNAMP环境(一)- 源码安装MySQL5.6 1.yum安装编译nginx需要的包 yum -y install pcre pcre-devel zlib zlib-devel ope ...

  6. 搭建LNAMP环境(一)- 源码安装MySQL5.6

    1.yum安装编译mysql需要的包 yum -y install gcc-c++ make cmake bison-devel ncurses-devel perl 2.为mysql创建一个新的用户 ...

  7. 搭建LNAMP环境(六)- PHP7源码安装MongoDB和MongoDB拓展

    上一篇:搭建LNAMP环境(五)- PHP7源码安装Redis和Redis拓展 一.安装MongoDB 1.创建mongodb用户组和用户 groupadd mongodb useradd -r -g ...

  8. 搭建LNAMP环境(三)- 源码安装Apache2.4

    上一篇:搭建LNAMP环境(二)- 源码安装Nginx1.10 1.yum安装编译apache需要的包(如果已经安装,可跳过此步骤) yum -y install pcre pcre-devel zl ...

  9. 搭建LNAMP环境(五)- PHP7源码安装Redis和Redis拓展

    上一篇:搭建LNAMP环境(四)- 源码安装PHP7 一.安装Redis 1.创建redis用户组和用户 groupadd redis useradd -r -g redis -s /sbin/nol ...

随机推荐

  1. VMware Workstation 10序列号:

    VMware Workstation 10序列号:1Y0LW-4WJ9N-LZ5G9-Z81QP-92PN7

  2. http请求contentype详解

    请求头 在http请求头中有一项重要的参数就是contentype,用来告诉浏览器,我服务器传送过来的数据是什么格式,这样浏览器才知道怎么去解析服务器传过来的数据 urlencoded 通常我们for ...

  3. 修改chrome的安装目录

    进入默认安装目录,然后把application文件夹复制出来,把文件夹改名为“Chrome浏览器”之类的.然后进入这个文件夹,新建一个文件夹,名字叫做est_profile 在chrome.exe目录 ...

  4. nginx的location配置root、alias用法和区别

    root & alias区别root与alias主要区别在于nginx如何解释location后面的uri,这会使两者分别以不同的方式将请求映射到服务器文件上root的处理结果是:root路径 ...

  5. django auth permission

    django 提供内置view处理登陆和退出. 查看django.contrib.auth源码,主要查看三个函数authenticate,login,logout. authenticate(requ ...

  6. markdown笔记实现页内目录跳转

    方法一 使用Markdown的语法来增加跳转链接:[名称](#id). 1. 只要()内 #号 后面的内容和锚点处标签内的id对应即可,可以任意使用标签支持html语法 2. id不可以有括号和空格, ...

  7. [TJOI2015]概率论

    [TJOI2015]概率论 史上最短黑题 看起来一脸懵逼,没有取模,1e-9 根据期望定义,发现 分母是一个卡特兰数,,,,不能直接算 所以考虑怎么消掉一些东西 gn表示n个点的叶子个数和,fn表示n ...

  8. GitBook插件整理 - book.json配置

    目录 1. 配置概况 1.1. 全局配置 1.2. 插件列表 plugins 1.3. 插件属性配置pluginsConfig 2. 一些实用插件 2.1. back-to-top-button 回到 ...

  9. PTA数组作业一查找整数

    代码 #include<stdio.h> int main(void){ int a[20],n,flag=0,x; int i; scanf("%d%d",& ...

  10. bootstrap学习: 基本组件以及布局;

    1.下拉菜单: <div class="btn-group"> <button type="button" class="btn b ...