安装oracle gcc版本,安装cx_Oracle时报错:error: command 'gcc' failed with exit status 1
安装cx_Oracle时报错:error: command 'gcc' failed with exit status 1
发布时间:2020-06-19 21:27:36
来源:51CTO
阅读:1661
作者:free_renee
1、安装cx_Oracle
1)下载cx_Oracle,https://pypi.python.org/pypi
2)解压压缩包
3)执行python setup.py install
执行后报错:error: command 'gcc' failed with exit status 1
排查:
1)检查是否安装oracle客户端软件
2)查看当前环境变量中是否配置oracle的相关变量,如echo $ORACLE_HOME
3)如果没有配置需要将oracle环境变量配置到当前用户.bash_profile中,或/etc/profile中
# cat .bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORA_CRS_HOME=$ORACLE_BASE/product/10.2.0/crs_1
export ORACLE_SID=icpdb
export PATH=.:${PATH}:$HOME/bin:$ORACLE_HOME/bin:$ORA_CRS_HOME/bin
export PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
export ORACLE_TERM=xterm
export TNS_ADMIN=$ORACLE_HOME/network/admin
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib
export CLASSPATH=$ORACLE_HOME/JRE
export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib
export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib
export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib
export THREADS_FLAG=native
export DISPLAY=192.168.196.5:0.0
export NLS_LANG="AMERICAN_AMERICA.ZHS16GBK"
安装oracle gcc版本,安装cx_Oracle时报错:error: command 'gcc' failed with exit status 1相关推荐
- Mac os更新系统后安装scrapy报错error: command ‘xcrun‘ failed with exit status 1
查看报错信息: In file included from src/twisted/test/raiser.c:4: In file included from /Library/Developer/ ...
- tx2安装包报错error: command ‘aarch64-linux-gnu-gcc‘ failed with exit status 1
tx2上安装包python-hwinfo,时报错: pip3 install python-hwinfo 错误信息为: error: command 'aarch64-linux-gnu-gcc' f ...
- PIP scrapydo时报错ERROR: Command errored out with exit status 1: python setup.py egg_info Check the log
今天PIP安装scrapydo 包时,报错,图如下 ERROR: Command errored out with exit status 1: python setup.py egg_info Ch ...
- 安装torchvision时,报错error: command ‘aarch64-linux-gnu-gcc‘ failed with exit status 1
jetson nano安装torchvision时报错 进行编译安装: cd torchvision python3 setup.py install 解决: 1.如果是python2请先使用sudo ...
- Ubuntu 16 安装 python 依赖出现 error: command 'i686-linux-gnu-gcc' failed with exit status 1
问题 在 Ubuntu 下安装 python 依赖的时候出现以下错误 build/temp.linux-i686-3.5/_openssl.c:498:30: fatal error: openssl ...
- python下载第三方库的时候报错ERROR: Command errored out with exit status 1: python setup.py egg_info Check the
python下载第三方库的时候报错ERROR: Command errored out with exit status 1: python setup.py egg_info Check the l ...
- ubuntu18.04安装python的mysqlclient==1.4.6报错ERROR Command errored out with exit status 1python setup
安装python的mysqlclient==1.4.6报错 环境: ubuntu18.04 python 3.7.2 Django 2.2 想要使用Django来操作MySQL,报错: LookupE ...
- Python PIP Mysql-python 报错 ERROR: Command errored out with exit status 1: python setup.py egg_info C
pip install mysql-python 安装Mysql-python时,报错,先看下错误内容: ERROR: Command errored out with exit status 1:c ...
- django2.0 在安装mysqlclient 报错ERROR: Command errored out with exit status 1: python setup.py egg_info
环境:centos7 + Django2.0 + python3.6 django2.0连接mysql需要安装PyMySQL和mysqlclient pip3 install PyMySQL pip ...
- error: command ‘arm-linux-gnueabihf-gcc‘ failed with exit status 1, 树莓派安装 paramiko
在树莓派上安装paramiko包时,遇到该问题,解决方法如下: sudo apt-get install gcc sudo apt-get install gcc libffi-dev libssl- ...
最新文章
- kaldi 源码分析(十) - gmm-init-mono.c分析
- Linux高可用集群(Corosync+Pacemaker)
- Vcenter5.5安装部署:[2]web client的安装
- [转]Java中Set的深入研究
- python将列表横着输出来
- 毕业设计-课程设计-Spring+SpringMVC+Mybatis项目—企业权限管理系统(1)
- mysql 导入 xc2 xa0_Python 字符串处理特殊空格xc2xa0tn Non-breaking space
- 写一个方法,用一个for循环打印九九乘法表
- apache commons - lang 常用方法记录
- 2-1 如何抓不同的接口(手机抓包,web网页抓包)
- 机器学习:使用matlab实现逻辑回归解决数字识别(多元分类)问题
- T410s主板上的黑色塑料是散热问题的祸首
- 照片宽高比怎么设置_【经验分享】照片处理
- 编程题_排列组合问题
- php easyui filebox,EasyUI1.4 新控件TextBox,FileBox
- 【uniapp】实现H5微信分享
- undefined method `devise' for User(Table doesn't exist):Class解决方法
- Kanzi: kanzi 学习:kanzi触发器参考
- Go和Python比较的话,哪个比较好?
- 状态机练习(饮料贩卖机程序设计)8/9