2012-04-26 124 views
0

我正在嘗試構建MySQLdb 1.2.3。我已經編輯生成配置設置線程= FALSE,而現在,當我建,我看到以下內容:警告翼在Mac OS 10.7上構建mysqldb時出錯,Python 2.7.1

_mysql.c:986: warning: implicit conversion shortens 64-bit value into a 32-bit value 

一個長長的清單,並在年底的LLVM崩潰:

lipo: /var/folders/fk/648y1j5d0c94ljvc5k0xncmh0000gt/T//ccoAI1iz.out and /var/folders/fk/648y1j5d0c94ljvc5k0xncmh0000gt/T//cc9fJKgC.out have the same architectures (x86_64) and can't be in the same fat output file 
error: command 'llvm-gcc-4.2' failed with exit status 1 

是否有解決這些問題的快速解決方法?

回答

1

看起來像這是由我在我的系統上建立的庫版本,python版本和/或mysql版本之間的不匹配所導致的問題。

我通過確保所有版本的比賽在64位和運行

ARCHFLAGS="-arch x86_64" python setup.py build 

推薦here糾正它。

相關問題