1

我正在尝试将 mapnik 与我的 mac os x 10.8.3 上由 homebrew 完成的 python 安装一起使用。这是问题所在:

otool -L $(brew list boost | grep 'python.*.dylib')
/usr/local/Cellar/boost/1.53.0/lib/libboost_python-mt.dylib:
    /usr/local/lib/libboost_python-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
    /usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0)
    /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)

如您所见,它指向/usr/local/opt/python... 这是完全错误的(这是苹果提供的默认 python,我不打算使用它)。

我怎样才能改变这个?谢谢

4

1 回答 1

2

我终于做到了。方法如下:

我运行了这个命令:

brew rm $(brew deps mapnik --with-cairo)
brew rm mapnik
brew rm boost
brew update
brew doctor
brew install --with-icu --build-from-source boost
brew install mapnik --with-cairo

现在,命令otool -L $(brew list boost | grep 'python.*.dylib')仍然显示:

/usr/local/Cellar/boost/1.53.0/lib/libboost_python-mt.dylib:
    /usr/local/lib/libboost_python-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
    /usr/local/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0)
    /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)

这是完整的线程:https ://github.com/mxcl/homebrew/issues/16144

于 2013-04-03T15:47:50.060 回答