Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
For 2021 - online Python 3 training - see ((here)).

Our plans were to retire in summer 2020 and see the world, but Coronavirus has lead us into a lot of lockdown programming in Python 3 and PHP 7.
We can now offer tailored online training - small groups, real tutors - works really well for groups of 4 to 14 delegates. Anywhere in the world; course language English.

Please ask about private 'maintenance' training for Python 2, Tcl, Perl, PHP, Lua, etc.
Expect - Installation Woes

Posted by dvorak_user (dvorak_user), 16 April 2008
Update: still no luck. Right now, I'm not even worrying about tcl-dp, as I can't even get Expect to compile properly. I'm using tcl8.0p2, tk8.0p2, and expect-5.30 (all from Any help at this point would be tremendously appreciated.

Hello, again! Right now, I'm trying to install expect on a new linux machine. Here's the version info:
OS: Fedora 7
Tcl: 8.0.5
Tk: 8.0.5
Tcl-DP: 4.0b2
Expect: 5.30

This computer is specifically for using Tcl-DP, whose newest version is 4.02b and highest-supported Tcl version is 8.0; because of that, I'm pretty much stuck with the versions above, although I could always opt for an older version of Expect.

The installation hits a few problems, but it does finish. However, it's less than ideal:

expect1.1> spawn telnet
spawn telnet
Segmentation fault
[root@lfischer-lnx2 expect-5.30]#

Other commands, like expect and exp_send, do work (although they're certainly not useful without a spawned process).

Installation errors I saw (all source files are in /home/lfischer/Desktop):
exp_printify.c: In function ‘exp_printify’:
exp_printify.c:34: warning: incompatible implicit declaration of built-in function ‘strlen’
exp_printify.c:43: warning: incompatible implicit declaration of built-in function ‘strcpy’
exp_printify.c:45: warning: incompatible implicit declaration of built-in function ‘strcpy’
exp_printify.c:47: warning: incompatible implicit declaration of built-in function ‘strcpy’

make[1]: Entering directory `/home/lfischer/Desktop/expect-5.30'
Making all in testsuite...
make[2]: Entering directory `/home/lfischer/Desktop/expect-5.30/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/lfischer/Desktop/expect-5.30/testsuite'
make[1]: Leaving directory `/home/lfischer/Desktop/expect-5.30'

make test:
/bin/sh: line 5: 16156 Segmentation fault      LD_LIBRARY_PATH=.:/usr/local/lib:/usr/local/lib:$LD_LIBRARY_PATH ./expect -f .tmp
make: *** [test] Error 139

make install:
tclUnixPipe.c:(.text+0x701): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
: expectk_installed

Any help would be appreciated. Thanks.

Edit: These are the commands I am using (within the expect-5.30 folder in Desktop)
$ su
# ./configure
# make
# make test
# make install

This page is a thread posted to the opentalk forum at and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2022: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: • WEB: • SKYPE: wellho