For Programmers: Free Programming Magazines  


Home > Archive > Tcl > July 2007 > problem with installation of tklib









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author problem with installation of tklib
beet

2007-07-20, 7:15 pm

Hi all,

sorry for a newbie question about tklib installation...I got the
following error.

Installing Tklib 0.4.1
You have chosen the following configuration ...

Packages: /home/myhome/lib/tklib0.4.1
Examples: /home/myhome/bin/tklib_examples0.4.1
Documentation:

NROFF: /home/myhome/man/mann
HTML: /home/myhome/lib/tklib0.4.1/tklib_doc

Error in startup script: can't find package doctools
while executing
"package require doctools"
(procedure "_man" line 4)
invoked from within
"_man autoscroll nroff n /home/myhome/man/mann"
("eval" body line 1)
invoked from within
"eval $guide($m,$type) $m $args"
(procedure "xinstall" line 4)
invoked from within
"xinstall doc nroff n $config(doc,nroff,path)"
(procedure "doinstall" line 18)
invoked from within
"doinstall"
(procedure "main" line 11)
invoked from within
"main"
(file "installer.tcl" line 485)

Thanks for your help..

Beet

dkushner99@yahoo.com

2007-07-20, 7:15 pm

On Jul 20, 1:28 pm, beet <whh...@gmail.com> wrote:
> Hi all,
>
> sorry for a newbie question about tklib installation...I got the
> following error.
>
> Installing Tklib 0.4.1
> You have chosen the following configuration ...
>
> Packages: /home/myhome/lib/tklib0.4.1
> Examples: /home/myhome/bin/tklib_examples0.4.1
> Documentation:
>
> NROFF: /home/myhome/man/mann
> HTML: /home/myhome/lib/tklib0.4.1/tklib_doc
>
> Error in startup script: can't find package doctools
> while executing
> "package require doctools"
> (procedure "_man" line 4)
> invoked from within
> "_man autoscroll nroff n /home/myhome/man/mann"
> ("eval" body line 1)
> invoked from within
> "eval $guide($m,$type) $m $args"
> (procedure "xinstall" line 4)
> invoked from within
> "xinstall doc nroff n $config(doc,nroff,path)"
> (procedure "doinstall" line 18)
> invoked from within
> "doinstall"
> (procedure "main" line 11)
> invoked from within
> "main"
> (file "installer.tcl" line 485)
>
> Thanks for your help..
>
> Beet


Hello,
It looks like the script "can't find package doctools".
under [TCL-installed dir]/lib dir there should be a dir for the
package doctools.
In the dir there should be a pkgIndex.tcl file.

When the script does "package require doctools" it uses the info
provided in
this pkgIndex.tcl file.

You might try something like this just to get going:
In the pkgIndex.tcl file, there should be a line like this (this is
for widgets, yours should be for doctools):

package ifneeded Iwidgets 3.0.1 [list source [file join $dir
iwidgets.tcl]]


You will get an error like the one you got when the script tries to
use the doctools package if this line from the pkgIndex.tcl has not
been read OR if the $dir in the file is unknown or incorrect.

In your script, you might add a line defining the dir where the
doctools.tcl or .dll file is, then the "package ifneeded" line. It's
just a quick fix but should tell you what the problem is and a quick
workaroung to get going.


For instance:

set dir "C:/blaa/blaa/blaa"
;# this is where the "iwidgets.tcl" file is for me or the doctools.tcl
file is for you.

package ifneeded Iwidgets 3.0.1 [list source [file join $dir
iwidgets.tcl]]
;# This tells the interp what file to load when "package require
command is issued.

- Daniel



Michael Schlenker

2007-07-21, 4:19 am

beet schrieb:
> Hi all,
>
> sorry for a newbie question about tklib installation...I got the
> following error.
>
> Installing Tklib 0.4.1
> You have chosen the following configuration ...
>
> Packages: /home/myhome/lib/tklib0.4.1
> Examples: /home/myhome/bin/tklib_examples0.4.1
> Documentation:
>
> NROFF: /home/myhome/man/mann
> HTML: /home/myhome/lib/tklib0.4.1/tklib_doc
>
> Error in startup script: can't find package doctools


Doctools is a package from tcllib. Do you have tcllib installed?

Michael
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com