title: How do I completely remove (all versions of) pdftk server from Mac OS X?
body: <p>I am having trouble with pdftk on my Mac OS X 10.11 and want to remove all traces of it from my system before attempting to make a new install with the newest package 2.02 (available here on StackOverflow) which I already installed.  </p>
  
  <p>I suspect there might be more than one version in my system.</p>
  
  <p>When I try </p>
  
  <pre><code>pdftk --version
  </code></pre>
  
  <p>the system gives an error:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>and when I run</p>
  
  <pre><code>export DYLD_LIBRARY_PATH=/opt/pdflabs/pdftk/lib:$DYLD_LIBRARY_PATH
  </code></pre>
  
  <p>and check for the version I get</p>
  
  <pre><code>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 PURPOSE.
  </code></pre>
  
  <p>How do I remove them from the system?</p>
  
  <p>EDIT:  I actually tried the "version" option on both places,
  by going to each folder and typing</p>
  
  <pre><code>pdftk --version
  </code></pre>
  
  <p>I got the problem on the /usr/local folder, but the /opt folder printed the version.  It seems I really do have two versions of pdftk on my computer and the default is the problematic one. </p>