尝试在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