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

Posted 梁伟雄的博客

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了源码安装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





以上是关于源码安装cx_Oracle(适合离线环境)的主要内容,如果未能解决你的问题,请参考以下文章

Python源码安装cx_Oracle

Harbor一键部署——初学者如何快速了解它?

zabbix 安装(离线源码安装)

Harbor最新版部署Harbor最新版部署

源码安装PHP

源码安装PHP