checking whether we are cross compiling... configure: error: in `/tmp/pip-build-rktAki/pycrypto解决方法
前文
公司引入了阿里云centos,在新的阿里云上安装salt的时候报错如下,由于暂未升级到python3的salt,所以是直接用的pip install salt安装,结果报错,显示configure error: cannot run C compiled programs!具体如下:
解决思路
首先根据报错说的,通过config.log查看详细报错信息,结果find / -name config.log并没有找到。。。另一方面观察到是/tmp下的pycrypto包出现异常,所以尝试卸载重装,结果仍旧报一样的错,显示runtimeerror:autoconf error;所以怀疑是CPython包在C下编译异常了,尝试网上求解。
在google搜了大量的资料,发现相关的甚少,并且尝试了大量的操作(根据别人的解决方法安装了大量包),发现都没用。。。包括更新了pip、安装了setuptools、安装了development tools、安装了gcc、安装了gcc ++等等,结果都失败;最后在如下的这篇stackoverflow里提供了解决方法,连接如下:pycrypto installation: configure error: cannot run C compiled programs
详细内容截图如下,根据大神的描述,需要修改/tmp这个挂载点,这里采用的是第二种方法,即重建一个tmp的目录,然后指定pycrypto到该目录下:
如果按照上述的方法安装后仍旧报错如下,这时再安装python-devel,命令如下:
yum install python-devel
最后即可成功安装salt:
总结
涉及到linux的编译、装载的问题,还是有很多不懂,这些底层的知识还是要慢慢打磨!
checking whether we are cross compiling... configure: error: in `/tmp/pip-build-rktAki/pycrypto解决方法相关推荐
- linux下编译isl,GCC编译器升级./configure报错“configure: error: Unable to find a usable ISL.”解决办法...
现象: GCC编译器升级时,./configure报错"configure: error: Unable to find a usable ISL. See config.log for d ...
- php zip.so 编译出错,php使用ZipArchive提示Fatal error: Class ZipArchive not found in的解决方法...
本文实例讲述了php使用ZipArchive提示Fatal error: Class ZipArchive not found in的解决方法.分享给大家供大家参考.具体如下: ZipArchive是 ...
- 使用 EasyBCD 安装Ubuntu 14.04 Error 15: file not found错误的解决方法
使用 EasyBCD 安装Ubuntu 14.04 Error 15: file not found错误的解决方法 参考文章: (1)使用 EasyBCD 安装Ubuntu 14.04 Error 1 ...
- Android studio ERROR: Software caused connection abort: recv failed 解决方法
使用Android studio打开kotlin项目时报错:ERROR: Software caused connection abort: recv failed 解决方法:修改三个文件即可 1.修 ...
- Error parsing HTTP request header Larger错误解决方法
Error parsing HTTP request header Larger错误解决方法 参考文章: (1)Error parsing HTTP request header Larger错误解决 ...
- MySQL5.7报错[ERROR] Unix socket lock file is empty /tmp/mysql.sock.lock的解决方法
MySQL5.7报错[ERROR] Unix socket lock file is empty /tmp/mysql.sock.lock的解决方法 参考文章: (1)MySQL5.7报错[ERROR ...
- 当遇到error: stray ‘\241‘ in program错误的解决方法
当遇到error: stray '\241' in program错误的解决方法 报错的意思是c/c++中的产生了编译错误. 该错误是指源程序中有非法字符,需要将非法字符去掉.一般是由于coder使用 ...
- 已解决RuntimeError: CUDA error: device-side assert triggered异常的正确解决方法,亲测有效!!!
已解决RuntimeError: CUDA error: device-side assert triggered异常的正确解决方法,亲测有效!!! 文章目录 报错问题 解决方法 福利 报错问题 粉丝 ...
- vue打包时报错 Error: No PostCSS Config found in 的解决方法
1.报错 vue 项目打包时报了如下错误:Error: No PostCSS Config found in... 2.解决方法: 没有PostCSS配置,因此需要添加一个 postcss.confi ...
最新文章
- Centos 7 意外断电如何处理
- 独家 | 用于数据清理的顶级R包(附资源)
- Ehcache 缓存监控配置
- Python 技术篇-sha256()加密的使用方法,sha1、md5加密方法
- .bash_profile 写入时间格式YYYY-MM-DD HH24:MI:SS 时报错 not a valid identifier
- 用PHP删除一条记录mysql,php – 如何使用jquery删除mysql记录
- Linux 引导管理器 grub2 使用简介
- linux .o,.a,.so文件区别是什么
- 亚马逊结算一览(C#项目)
- win7装sql2000找不到服务器,WIN7 64位系统 SQL2000服务无法启动
- 密码键盘介绍二:主密钥和工作密钥的导入
- uniapp使用苹果支付
- 机器学习 | 牛顿冷却定律
- linux服务器上查看显卡(nvidia)型号
- C语言中getch()、getche()和getchar()
- 2021-03-17XX兔展-19.00-N.008
- EMC VNX5200 故障灯亮,但无任何硬件故障提示
- TinkerBoard-S 疑难杂症汇总(持续更新)
- PC寄存器 -- 读书摘抄
- 几种分布式存储组网架构参考
热门文章
- 【Python相关】PyCharm如何修改行注释颜色
- linux内核参数分析,linux内核启动第一阶段分析
- 什么叫幂等?如何实现幂等性?
- ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker
- Spark分布式计算框架之SparkStreaming+kafka
- flash as3.0 图片切换
- Microsoft Dynamics AX2012 R2吐槽系列(4)
- 【量化笔记】ARCH效应检验及GARCH建模的python实现
- IC设计中节省静态功耗和动态功耗的方法
- java不同时区时间转换,Java在不同时区转换时间