我安装了自制软件,brew医生抱怨我的路径/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。
我发现这很有帮助。
我只是用brew来安装依赖项。
brew install scons boost exiv2
然后用一些愚蠢的手段从源代码安装了pyexiv2。我下载了最新的tarball,导出了它,并从终端将cd
'ed导入其中。
cd pyexiv2-0.3.2
echo "env['FRAMEWORKS'] += ['Python']" >> src/SConscript
scons BOOSTLIB=boost_python-mt
sudo scons BOOSTLIB=boost_python-mt install