Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-10-22
17:19 • Ticket [b7ca5ab010] TCL LIB ENV for expect package status still Closed with ... artifact: 7990606be7 user: serhiy.storchaka
2026-10-14
14:20 • Closed ticket [b7ca5ab010]. artifact: 6f21c92fe4 user: serhiy.storchaka
2019-11-11
05:27 • New ticket [b7ca5ab010]. artifact: 1c4ccf0418 user: anonymous_19

TCL LIB ENV for expect package

Closed / Invalidb7ca5ab0107215c9b8cdd3680bbc0b51571584c7Created 7 years agoUpdated 42 days ago
Descriptionplain2019-11-11 05:27:13
Hi,

I am working with  expect 5.45.4 ,I was able to build and install the package successfully on AIX  machine and created binaries when i run the binaries for testing shows the following error,

can't find package Expect

    while executing

"package require Expect"

    (file "/opt/freeware/bin/autoexpect" line 6)
code in binary file:

#!/bin/sh
# -*- tcl -*-
# The next line is executed by /bin/sh, but not tcl \
exec tclsh "$0" ${1+"$@"}

package require Expect

By setting the env for the TCLLIB path as,

export  TCLLIBPATH="/opt/freeware/lib64/tcl8.6" ========this will solve the problem, but solution need to be set manually , i want this solution to be included in expect script file and generate the binary file with fix Can i get help with this?

TCL_Version 8.6.8

TK_Version 8.6.8

 AIX Version 6.1


Thanks,
Ashwini
serhiy.storchakawiki2026-10-14 14:20:20

Not a Tcl bug: Expect was installed in a directory that is not in the package path of this tclsh. Install it into a directory listed in $auto_path, or add the directory in the script with lappend auto_path /opt/freeware/lib64/tcl8.6 before package require Expect.

serhiy.storchaka Ticket [b7ca5ab010]: 3 changes [History diff]2026-10-22 17:19:25
Log in (anonymous is fine) to add a comment.