我安装了 homebrew 并且 brew doctor 抱怨我的路径 /user/local/bin 不在 /usr/bin 之上,所以我更正了这个问题,然后尝试使用以下命令安装 exiv2 和 pyexiv2:
brew install exiv2 pyexiv2
然后我收到以下错误:
bubbles-MacBook-Pro:Desktop bubble$ brew install exiv2 pyexiv2
Warning: exiv2-0.23 already installed
==> Downloading http://launchpad.net/pyexiv2/0.3.x/0.3.2/+download/pyexiv2-0.3.2
Already downloaded: /Library/Caches/Homebrew/pyexiv2-0.3.2.tar.bz2
==> Patching
patching file src/SConscript
==> scons BOOSTLIB=boost_python-mt
boost::python::detail::converter_target_type<boost::python::to_python_value<std::string&> >::get_pytype() in exiv2wrapper_python.os
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
scons: *** [build/libexiv2python.dylib] Error 1
scons: building terminated because of errors.
有任何想法吗?我真的需要 pyexiv2 才能在这台 macbook 上工作。