From: MHD on 8 Dec 2008 11:05 For the record, Neil's solution worked. I went into /usr/local/lib/ tk8.5 and changed the reference from 8.5 to 8.5.5, and it ran just fine. Thanks. On Dec 6, 2:00 am, Neil Madden <n...(a)cs.nott.ac.uk> wrote: > MHD wrote: > > I'm fairly new to tcl/tk and found that I had to upgrade to 8.5 on my > > FreeBSD7 machine to take advantage of some new widgets. > > > So I installed the package > > pkg_add -r tk85 > > > and ended up with tk 8.5.5. > > > No problem, except the interpreter seems to think 8.5 and 8.5.5 > > require different commands, and neither seems to work. Take this > > simple program: > > > #! /usr/local/bin/tclsh8.5 > > package require Tk > > grid [ttk::button .b -text "Hello World"] > > > Which triggers the error message: > > > attempt to provide package Tk 8.5 failed: package Tk 8.5.5 provided > > instead > > ("package ifneeded Tk 8.5" script) > > invoked from within > > "package require Tk " > > (file "./test.tcl" line 3) > > > Changing line 2 to "package require Tk 8.5" gets the same result. > > > OK, let's change line 2 of the file to > > > package require Tk 8.5.5 > > > Well then, I get > > > can't find package Tk 8.5.5 > > while executing > > "package require Tk 8.5.5 " > > (file "./test.tcl" line 3) > > > So I don't get it. The interpreter can't find 8.5.5, unless I tell it > > I want vanilla 8.5, where all of a sudden 8.5.5 is all it can find! > > Looks like a bug in the FreeBSD Tk packaging. That error is produced > when a package claims to provide version 8.5 (exactly) in it's > pkgIndex.tcl script, but then the actual package has a "package provide > Tk 8.5.5". You need to locate the pkgIndex.tcl for Tk and change the > version number in it to match what is actually provided (i.e. 8.5.5). > > -- Neil
From: Don Porter on 8 Dec 2008 11:30 MHD wrote: > For the record, Neil's solution worked. I went into /usr/local/lib/ > tk8.5 and changed the reference from 8.5 to 8.5.5, and it ran just > fine. Please track back who delivered you the broken file, and ask them to correct their bug. -- | Don Porter Mathematical and Computational Sciences Division | | donald.porter(a)nist.gov Information Technology Laboratory | | http://math.nist.gov/~DPorter/ NIST | |______________________________________________________________________|
First
|
Prev
|
Pages: 1 2 Prev: http::geturl Illegal characters in URL path Next: Is there a Tcl equivelent of VBA's SendKeys |