title: Tcl/Tk Tkinter version 8.4 and 8.5 conflict on Mac Os X 10.4.11 with python 2.6.4
body: <p>I am having trouble getting Tkinter up and runnning in order to install matplot lib.</p>
  
  <p>I am running Mac OS X 10.4.11, and just installed Python 2.6.4 . </p>
  
  <p>After several other fights, one remaining battle for me to get matlotlib installed is to have a working version of Tkinter, although there are several in my Mac from Xcode and also Python, I guess they just aren't installed in useful places? After I installed Python 2.6.4, import _tkinter failed. So I installed Tcl 8.5 from active state.</p>
  
  <p>Now, I make it to the  Tkinter test:</p>
  
  <blockquote>
    <blockquote>
      <blockquote>
        <p>Tkinter._test()
        Traceback (most recent call last):
          File "", line 1, in 
          File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk/Tkinter.py", line 3746, in _test
            root = Tk()
          File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk/Tkinter.py", line 1645, in <strong>init</strong>
            self._loadtk()
          File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk/Tkinter.py", line 1659, in _loadtk
            % (_tkinter.TK_VERSION, tk_version)
        RuntimeError: tk.h version (8.4) doesn't match libtk.a version (8.5)</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>I realize you have discussed the exact error I am describing here:
  <a href="http://bugs.python.org/issue4017" rel="nofollow noreferrer">http://bugs.python.org/issue4017</a></p>
  
  <p>but those errors arose from a problem  with an earlier version of python, where setup.py reversed the order of where to look. The advice in your previous post is to fix this order in setup.py and rebuild python, but my setup.py is already looking good - it includes these lines:</p>
  
  <p>def detect_tkinter_darwin(self, inc_dirs, lib_dirs):
          # The _tkinter module, using frameworks. Since frameworks are quite
          # different the UNIX search logic is not sharable.
          from os.path import join, exists
          framework_dirs = [
              '/Library/Frameworks',
              '/System/Library/Frameworks/',
              join(os.getenv('HOME'), '/Library/Frameworks')</p>
  
  <p>I would really appreciate any insight on how to handle this!( I am a biologist...)</p>
  
  <p>While I'm at it, I'll include what is going on when I try to install m matplotlib in case it is useful...matplotlib thinks I have Tkinter 8.4 (ironically, only afeter I  installed 8.5, before that it always said it could not find Tkinter):</p>
  
  <p>Tkinter: Tkinter: 65971, Tk: 8.4, Tcl: 8.4</p>
  
  <p>also, here is the error I run into  when trying to build matplotlib:</p>
  
  <p>powerpc-apple-darwin8-g++-4.0.1: unrecognized option '-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk'
  i686-apple-darwin8-g++-4.0.1: unrecognized option '-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk'
  /usr/bin/ld: -syslibroot: multiply specified
  collect2: ld returned 1 exit status
  /usr/bin/ld: -syslibroot: multiply specified
  collect2: ld returned 1 exit status
  lipo: can't open input file: /var/tmp//ccrblCgU.out (No such file or directory)
  error: command 'g++' failed with exit status 1
  make: *** [mpl_build] Error 1</p>
  
  <p>thank you!!</p>
  
  <p>Katrine</p>