Missing packages in Tcl8.5 ?

Posted by _philw on 2008-01-03 04:33

Perhaps I am missing something here, but here goes ...

I came across the news of Tcl8.5 being released, and not having used Tcl in anger for several years, decided to download 8.5 and have a look at new features.

I have not used ActiveState Tcl before, having used cygwins tclsh, wish and expect distributions.

I was expecting :-) to see mention of expect, incrtcl, and all of the other additions in one of the install directories, but cannot find a trace.

When I try to 'package require Expect' I get a package not found error message.

Is there a problem with the Windows 8.5 distrib ?

Regards

Phil W

shyam singh | Sun, 2008-01-06 20:53

It seems to be a problem with new TCL package.Download Expect sepretly & place into the "../tcl/lib" folder it will work.

shyam singh | Sun, 2008-01-06 20:53

It seems to be a problem with new TCL package.Download Expect sepretly & place into the "../tcl/lib" folder it will work.

BoTanaka | Mon, 2008-01-07 11:13

Where can you download Expect by itself?

Thanks

shyam singh | Mon, 2008-01-07 23:17

Hi,
These are the location where you can find the Expect package.

packages.debian.org/unstable/interpreters/expect-tcl8.3

http://expect.nist.gov/old/expect-5.43.0.tar.gz.
Regards

Shyam Singh

shyam singh | Mon, 2008-01-07 23:17

Hi,
These are the location where you can find the Expect package.

packages.debian.org/unstable/interpreters/expect-tcl8.3

http://expect.nist.gov/old/expect-5.43.0.tar.gz.
Regards

Shyam Singh

grahams
ActiveState Staff
Tue, 2008-04-29 12:04

Expect for ActiveTcl should be installed using the TEApot mechanism.
Following the 8.5.0 release, many formerly built-in extensions have been migrated to the TEApot distribution system. This allows these extensions to be updated by users without recourse to a full-scale upgrade.

Extensions distributed through TEApot must be downloaded after installation, but there are several ways to accomplish this. Using Expect as an example:
From tclsh8.5 -
%teacup install Expect
From Windows command line -
C:>\teacup install Expect

If teacup fails to connect, you are most likely behind a proxy server or a firewall which is blocking the outbound connection request. If you have a proxy server, you can set the http_proxy environment variable to tell teacup how to make a connection.
Set the http_proxy variable with the hostname or IP address of the proxy server:
http_proxy=http://proxy.example.org
If the proxy server requires a user name and password, include them in the following form:
http_proxy=http://username:password@proxy.example.org
If the proxy server uses a port other than 80, include the port number:
http_proxy=http://username:password@proxy.example.org:8080

Once teacup is working, you can also install the entire TEA repository at once.
From tclsh8.5 -
%teacup update
From Windows command line -
C:>\teacup update

A third way to get extensions for 8.5.2 is to install 8.5.2 over top of 8.4.18. Modules from 8.4.18 are compatible with 8.5.2, and this also gives you both tclsh and tclsh8.5, wish and wish8.5, 8.4 basekits and 8.5 basekits. Furthermore, it enables all the demos in ActiveTcl and TclDevKit, since many of them are dependent on ActiveTcl 8.4. If you decide to go this route, you must uninstall 8.5.2, then install 8.4.18 and re-install 8.5.2 on top of it.