我在 Mac OS X 10.11 上遇到了 pdftk 问题,希望在尝试使用我已经安装的最新软件包 2.02(可在 StackOverflow 上找到)进行新安装之前,从系统中删除它的所有痕迹。
我怀疑我的系统中可能有多个版本。
当我尝试时
pdftk --version
Run Code Online (Sandbox Code Playgroud)
系统报错:
dyld: Symbol not found: __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev
Referenced from: /usr/local/bin/pdftk
Expected in: /usr/local/bin/../lib/libstdc++.6.dylib
in /usr/local/bin/pdftk
Trace/BPT trap: 5
Run Code Online (Sandbox Code Playgroud)
当我跑步时
export DYLD_LIBRARY_PATH=/opt/pdflabs/pdftk/lib:$DYLD_LIBRARY_PATH
Run Code Online (Sandbox Code Playgroud)
并检查我得到的版本
pdftk 2.02 a Handy Tool for Manipulating PDF Documents
Copyright (c) 2003-13 Steward and Lee, LLC - Please Visit: www.pdftk.com
This is free software; see the source code for copying conditions. There is
NO warranty, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR …Run Code Online (Sandbox Code Playgroud)