mac下安装mysqldb时出现的问题
2014-04-13 16:47
453 查看
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Hash._MD2' extension
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE
-DMACOSX -Wall -Wstrict-prototypes -Wshorten-64-to-32 -fwrapv -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/MD2.c
-o build/temp.macosx-10.9-intel-2.7/src/MD2.o
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
error: command 'cc' failed with exit status 1
网上说是gcc版本不兼容的的问题
百度一下很多人将卸载xcode和commond-line-tools,但是这样太麻烦了 而且不知道怎么卸载
再百度得知
clang并不支持这个参数, 做一下修改把他改成warning.
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
这样就ok了.
building 'Crypto.Hash._MD2' extension
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE
-DMACOSX -Wall -Wstrict-prototypes -Wshorten-64-to-32 -fwrapv -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/MD2.c
-o build/temp.macosx-10.9-intel-2.7/src/MD2.o
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
error: command 'cc' failed with exit status 1
网上说是gcc版本不兼容的的问题
百度一下很多人将卸载xcode和commond-line-tools,但是这样太麻烦了 而且不知道怎么卸载
再百度得知
clang并不支持这个参数, 做一下修改把他改成warning.
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
这样就ok了.
相关文章推荐
- mysql学习笔记
- mysql 如何在访问某张数据表按照某个字段分类输出
- Mac上安装MySql与简单配置
- MySQL 事务的学习整理
- MySQL 之SQL语言、表库操作、查询及变量精讲
- Hive集成Mysql作为元数据
- 如何连接百度Mysql
- Mac OS安装卸载MySQL教程
- windows下mysql忘记root密码的解决方法
- 数据库–Cobar分布式数据库集群MySQL中间件
- MySQL按年龄段查询
- mysql中limit的用法详解[数据分页常用]
- MySQL基础讲解(一)
- mysql send packet larger错误
- mysql数据库备份及恢复命令mysqldump,source的用法
- mysql 表分区
- JDBC连接MySQL
- ubuntu12.04.4安装mysql
- MySQL数据库优化(转)
- mysqldump备份脚本