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 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
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 http://expect.nist.gov/src/). 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:

Code:
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):
make:
Code:
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’

~~
Code:
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:
Code:
/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:
Code:
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 www.opentalk.org.uk 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., 2024: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho