Homebrew - pyexif2 - clang:错误:链接器命令失败,退出代码为1

时间:2013-07-28 12:04:13

标签: macos homebrew pyexiv2

我安装了homebrew和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。

1 个答案:

答案 0 :(得分:0)

我发现this有帮助。

我刚用brew来安装依赖项。

brew install scons boost exiv2

然后从源头安装了pyexiv2和一些tomfoolery。我downloaded the latest tarball,将其导出并从终端cd加入其中。

cd pyexiv2-0.3.2
echo "env['FRAMEWORKS'] += ['Python']" >> src/SConscript
scons BOOSTLIB=boost_python-mt
sudo scons BOOSTLIB=boost_python-mt install