On Wed, Apr 17, 2013 at 5:33 PM, Kevin Walzer <k...@codebykevin.com> wrote: > On 4/16/13 11:01 PM, Jeff Hobbs wrote: >> >> Can you force a rebuild anyway? I wonder if something in the Tcl.xs >> underlying library has the 8.5.12 embedded that is causing the >> conflict. > > > How would I do that? I'm not very familiar with Perl's package internals, so > it's not clear to me how to delete a package and/or rebuild it--cpan doesn't > seem to support this.
That I'm not sure on ... I just use ppm. > Another question, though, is more general: I had a build of Tcl/Tk 8.6 > elsewhere on my path and Tkx picked that up without crashing; but when I > deleted that, it found Tk 8.5.13 and crashed. Why is this? This is a concern > because I was hoping to deploy an app on the Mac that linked to whatever > version of Tcl/Tk was installed by the system (bundling a tkkit won't work > because of Mac App Store rules), and it needs to be reliable. You can control the Tcl used via PERL_TCL_DLL or PERL_TCL_DL_PATH env (or Tcl::DL_PATH in Tcl.pm), but otherwise it should just pull it off the path. You can see the code at http://cpansearch.perl.org/src/VKON/Tcl-1.02/, and the Tcl.xs file has a special load function for APPLE that will try and load from Tcl.framework dirs. Also, the way it's hard-coded, it tries to load 8.4 first, and if that fails, it counts down the minor from 9 (8.9, 8.8, 8.7 ...). Jeff