我已經看過幾篇關於我的同樣錯誤的文章,但解決方案建議對我無效。我在OS X Mavericks上。沒有找到gcc-4.0,與gcc的符號鏈接不好
當運行 'PIP安裝psycopg2',它失敗,出現錯誤:
...
unable to execute gcc-4.0: No such file or directory
error: command 'gcc-4.0' failed with exit status 1
建議的解決方法就是有GCC-4.0鏈接GCC。
當我的CD到/ usr/bin和鏈接GCC-4.0與命令gcc '須藤LN -s GCC GCC-4.0',並再次運行 'PIP安裝psycopg2',它給了我這個錯誤:
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: command 'gcc-4.0' failed with exit status 1
其中上面的20個錯誤包括「Unsupported architecture
」和「unknown type name '__uint32_t
」等一堆其他隨機事物。它似乎真的想要gcc-4.0而不是gcc。
有什麼建議嗎?