嘗試在OS X Lion上使用XCode 4.3.1構建pgmagick
時,我並沒有獲得太大的成功。如何在OS X上的pythonbrew下構建pgmagick?
我已經安裝了ImageMagick的和GraphicsMagick工具,沿着邊提升,使用(通過自制)以下命令:
$ brew install graphicsmagick --with-magick-plus-plus
$ brew install imagemagick --with-magick-plus-plus
$ brew install boost --with-thread-unsafe
然後我克隆回購在https://bitbucket.org/hhatto/pgmagick:
$ hg clone https://bitbucket.org/hhatto/pgmagick/src
$ cd pgmagick
$ python setup.py build
但我總是收到以下錯誤:
ld: library not found for -lboost_python
collect2: ld returned 1 exit status
基於stdout上的輸出,設置是在正確的地方尋找提升(/usr/local/lib
)。
我也試過easy_install
和pip
但沒有運氣。我使用Pythonbrew,但也禁用了這一點,並嘗試使用股票python安裝 - 仍然沒有成功。
有關如何解決問題或進一步診斷問題的任何建議?
Lion是否附帶Python 2.7?嘗試brew編輯提升s.t. bootstrap.sh用'--python-version = 2.6'調用。 – 2012-03-22 13:59:13
@PauloScardine boost.rb中沒有'--python-version = 2.6'。 – 2012-03-22 14:08:48
等一下:您是以非特權用戶身份執行此操作。出於好奇,你的安裝目標是否被誤入了'〜/ .pythonbrew'? – MrGomez 2012-03-23 19:52:46