我需要爲openerp
安裝psycopg2
安裝過程,但我總是發現錯誤。我已經使用pip
和easy_install
,我的gcc
是最新版本。真的需要你的幫助來解決我的問題......錯誤:安裝psycopg2時,命令'gcc'失敗,退出狀態
這是我用的easy_install完整的錯誤..
[[email protected] ~]# easy_install psycopg2
Searching for psycopg2
Reading http://pypi.python.org/simple/psycopg2/
Reading http://initd.org/psycopg/
Reading http://initd.org/projects/psycopg2
Best match: psycopg2 2.4.5
Downloading http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.5.tar.gz
Processing psycopg2-2.4.5.tar.gz
Running psycopg2-2.4.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-anWVvJ/psycopg2-2.4.5/egg-dist-tmp-cZbdtn
no previously-included directories found matching 'doc/src/_build' In file included from psycopg/psycopgmodule.c:27:
./psycopg/psycopg.h:31:22: error: libpq-fe.h: No such file or directory In file included from psycopg/psycopgmodule.c:29:
...
error: Setup script exited with error: command 'gcc' failed with exit status 1
我該怎麼處理libpq-fe.h? 你能給我更多的解釋嗎? –
檢查你是否有它。如果沒有,請安裝提供它的包,libpq-devel或libpq-dev或類似的東西,具體取決於分發。 –