2013-10-02 39 views
1

我嘗試用沖泡安裝PostgreSQL,結果是我想用沖泡安裝PostgreSQL,但它無法找到Python.h

checking for libperl... yes 
checking Python.h usability... no 
checking Python.h presence... no 
checking for Python.h... no 
configure: error: header file <Python.h> is required for Python 

這個錯誤我安裝了Python後,它說:

brew install python 
Warning: python-2.7.5 already installed, it's just not linked 

我需要做什麼? 感謝

回答

0

你必須告訴家釀鏈接的Python:

$ brew link python 

之前,你這樣做,它只是安裝在/usr/local/Cellar的地方,但不掛/usr/local/bin(例如,/usr/local/bin/python)和朋友。

這種情況發生的原因是Python似乎只作爲依賴項安裝,但所請求的軟件包(PostgreSQL)的安裝失敗,所以它的依賴關係被安裝但未鏈接(即激活)。

相關問題