Web lists-archives.com

RE: Problem referencing libraries in tcl 8.6, e.g. fileutil




Marco,

This worked. Thank you.

I have to remember to add the line...
	% package require fileutil
...at the start of a tcl script though. I'll get used to it 😊

-----Original Message-----
From: Marco Atzeri <marco.atzeri@xxxxxxxxx>
Sent: Tuesday, August 7, 2018 5:58 PM
To: cygwin@xxxxxxxxxx
Subject: Re: Problem referencing libraries in tcl 8.6, e.g. fileutil

Am 07.08.2018 um 17:56 schrieb SImon Conway-Smith:
> I have added the tcl intepreter into my Cygwin (64-bit) installation,
> but when trying to run some code samples using the fileutil library,
> e.g. the foreachLine command, I'm getting 'invalid command name
> "fileutil::foreachLine"'. I've even tried prefixing the command with "tcl::"
> as I had to do for the mathfunc:: library functions, but still get the
> error message. Is there an additional tcl package I need to install, or what?
>

fileutil is part of tcllib that is not provided as cygwin package

The last upstream version is located at
https://sourceforge.net/projects/tcllib/files/tcllib/1.19/

It includes an installer written in TCL

$ ./installer.tcl
Installing Tcllib 1.19
You have chosen the following configuration ...

Packages:      /usr/lib/tcllib1.19
Applications:  /usr/bin
Examples:      /usr/bin/tcllib_examples1.19
Documentation:

         NROFF:  /usr/man/mann
         HTML:   Not installed.

Is the chosen configuration ok ? y/N:

Disclaimer: I have not tested the installer as I know nothing of TCL

Regards
Marco



---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple