Home Accessibility Courses Diary The Mouth Facebook Resources Site Map About Us Contact
This week, we're updating our course layouts and descriptions. Presentation and materials always gently change over time, but just occasionally there's a need to make a step change to clear out some of the old and roll in the new. That's now happening - but over a long and complex site it's not instant and you'll see sections of the site changing up to and including 19th September.

See also [here] for status update
Installing Tcl and Expect on Solaris 10 - a checklist

Hot off the presses from the last couple of days - a check list (and a couple of "Gotcha" notes) concerning the installation of Tcl and Expect on a Solaris 10 system, compiling from scratch were possible.

You'll need a C Compiler

We used gcc (the Gnu C compiler) and we installed it from Sun standard packages - you can't compile the C compiler yourself, of course, in the first instance as you need a working compiler to do it ...

The following three packages are needed:


For the following operations:

a) add /usr/sfw/bin, /usr/local/bin and /usr/ccs/bin to your path, and export
b) set the CC environment variable to the value gcc and export it.

Installing Tcl

1. From a .tar.gz download ... ungzip and untar, cd to the directory created and the unix subdirectory therein.

2. Run ./configure which works out HOW the build should be done

3. Run make which does the build in the work directory

4. Run make test to check that the build worked

(at this point you need to become root, and get back to the same directory)

5. Run make install to install the Tcl program in place (you'll find it as /usr/local/bin/tclsh8.4

(at this point revert to ordinary user

Installing Expect

1. From a .tar.gz download ... unzip, unta, cd to the directory created.

2. Run ./configure --with-tcl=/xxx/yyy/tclzzz/unix - that path is tha path to the copy level of the Tcl build wherever you put that - the directory that contains the Tcl Configuration file.

3. Run make expect which does the build of expect in the work directory

(at this point you need to become root, and get back to the same directory)

4. Run make install to install the expect program in place (you'll find it as /usr/local/bin/expect

(at this point revert to ordinary user


1. If the make test reports network / socket errors and you're not properly network connected, that's not a problem.

2. Our sample build did NOT include the Tk GUI toolkit. Warnings generated during the build of Expect telling us it could not build expectk could be ignored.

3. If you get error messages from /usr/ccs/bin/as they you haven't installed the SUNWbinutilities properly, or your PATH is in the wrong order.

4. If you're using Tcl version 8.5a6 and you get fatal error messages about TCL_REG_BOSONLY build, you have a version of Expect that's not compatible directly with that Tcl, in which various elements were moved around include files. Best solution (as I write) is to step back 1 level with the Tcl.

5. My sample notes used Tcl 8.4.14 and Expect 5.42 on a "recent" Solaris 10 (built No. 0106).

6. Installs are all to default /usr/local/bin directory. Options at ./configure time allow you to change this.
(written 2007-05-02, updated 2007-05-03)

Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
T201 - Tcl/Tk - What is Tcl?
  [2463] Tcl - a true interpretive, command based language - (2009-10-20)
  [1268] Changes in advertising cut lines / Buscot / Tcl course - (2007-07-16)
  [691] Testing you Perl / PHP / MySQL / Tcl knowledge - (2006-04-19)
  [382] Central London Courses - Perl, PHP, Python, Tcl, MySQL - (2005-07-18)
  [133] Tcl embeds - (2004-11-28)

T211 - Tcl/Tk - What is Expect? Why use it?
  [3572] Adding Expect on top of Tcl - what is it and where can I get a training course to learn about it? - (2012-01-08)
  [3286] Should we cover expect and/or Tk on our public Tcl courses? - (2011-05-11)
  [3009] Expect in Perl - a short explanation and a practical example - (2010-10-22)
  [2489] Parallel Pinging, using Python Threads or Expect spawn lists - (2009-11-02)
  [2474] Using Tcl and Expect to automate repetitive jobs - (2009-10-24)
  [1602] Automating processes through Expect - (2008-04-05)
  [1531] Expecting a item from a list of possibles - (2008-02-04)
  [1469] Curley brackets v double quotes - Tcl, Tk, Expect - (2007-12-12)
  [1411] Buffering of inputs to expect, and match order - (2007-10-27)
  [1409] What is Expect? - (2007-10-26)
  [1173] Cheat Sheet / Check list for Expect maintainers - (2007-05-02)
  [435] Expect for Windows - (2005-09-04)
  [286] Automating regular manual procedures - (2005-04-21)

T248 - Tcl/Tk - A Review of Tcl and Tk Basics
  [4208] Tcl + Tk (Wish) - an introduction and revision example - (2013-11-15)
  [1181] Good Programming practise - where to initialise variables - (2007-05-09)
  [1092] Tcl training - often for a larger group - (2007-02-24)

Back to
Cheat Sheet / Check list for Expect maintainers
Previous and next
Horse's mouth home
Forward to
Local elections - choosing who to vote for
Some other Articles
Ducking stool for Melksham?
Sorting out for a site map
A pu that got me into trouble
Local elections - choosing who to vote for
Installing Tcl and Expect on Solaris 10 - a checklist
May day 2007 in pictures
Traffic light control for horses
Smoking, or no? The law insists we spell out the obvious
Emailing as HTML (Web Page) - PHP example
4285 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86 at 50 posts per page

This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

1 unpublished comment pending on this page

edit your own (not yet published) comments

© WELL HOUSE CONSULTANTS LTD., 2014: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 899360 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/mouth/1174_Ins ... klist.html • PAGE BUILT: Sun Mar 30 15:20:58 2014 • BUILD SYSTEM: WomanWithCat