problems installing expect utilty


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting problems installing expect utilty
# 1  
Old 04-22-2008
Data problems installing expect utilty

Hi all,


I am trying to install expect utility on RHEL 5. It is showing that we also need to install tcl also in order to run it.

I have downloaded expect from Tucows Tucows Download - Download Expect 5.32.1

and

tcl from SourceForge.net: Downloading ...

Can someone please tell me steps how to install it as I am getting some errors while installing expect.

These are errors.

Code:
[root@RHEL expect-5.32]# make
gcc -c  -I. -I. -I/usr/local/src/tcl8.5.2/generic   -DEXP_VERSION=\"5.32.1\" -DSCRIPTDIR=\"/usr/local/lib/expect5.32\" -DEXECSCRIPTDIR=\"/usr/local/lib/expect5.32\" -DTCL_DEBUGGER  -DDFLT_STTY="\"sane\""  exp_main_exp.c
exp_main_exp.c: In function ‘main':
exp_main_exp.c:26: warning: incompatible implicit declaration of built-in function ‘exit'
exp_main_exp.c:31: warning: incompatible implicit declaration of built-in function ‘exit'
if [ "xlibexpect5.32.a" != "xlibexpect5.32.a" ] ; then \
           if [ ! -d shared ] ; then \
                mkdir shared ; \
           else true; fi ; \
           gcc -c  -I. -I. -I/usr/local/src/tcl8.5.2/generic   -DEXP_VERSION=\"5.32.1\" -DSCRIPTDIR=\"/usr/local/lib/expect5.32\" -DEXECSCRIPTDIR=\"/usr/local/lib/expect5.32\" -DTCL_DEBUGGER   -DDFLT_STTY="\"sane\""  exp_main_exp.c -o shared/exp_main_exp.o ; \
        fi
gcc -c  -I. -I. -I/usr/local/src/tcl8.5.2/generic   -DEXP_VERSION=\"5.32.1\" -DSCRIPTDIR=\"/usr/local/lib/expect5.32\" -DEXECSCRIPTDIR=\"/usr/local/lib/expect5.32\" -DTCL_DEBUGGER  -DDFLT_STTY="\"sane\""  exp_command.c
In file included from /usr/local/src/tcl8.5.2/generic/tclInt.h:3836,
                 from exp_command.c:62:
/usr/local/src/tcl8.5.2/generic/tclPort.h:27:28: error: tclUnixPort.h: No such file or directory
In file included from /usr/local/src/tcl8.5.2/generic/tclInt.h:3838,
                 from exp_command.c:62:
/usr/local/src/tcl8.5.2/generic/tclIntPlatDecls.h:98: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘*' token
/usr/local/src/tcl8.5.2/generic/tclIntPlatDecls.h:113: warning: ‘struct in_addr' declared inside parameter list
/usr/local/src/tcl8.5.2/generic/tclIntPlatDecls.h:113: warning: its scope is only this definition or declaration, which is probably not what you want
/usr/local/src/tcl8.5.2/generic/tclIntPlatDecls.h:388: error: expected specifier-qualifier-list before ‘Tcl_DirEntry'
In file included from exp_command.c:72:
exp_command.h:111: error: expected specifier-qualifier-list before ‘WAIT_STATUS_TYPE'
exp_command.c: In function ‘expStateFromChannelName':
exp_command.c:230: warning: assignment discards qualifiers from pointer target type
exp_command.c: In function ‘exp_wait_zero':
exp_command.c:244: error: expected declaration specifiers before ‘WAIT_STATUS_TYPE'
exp_command.c:248: error: ‘WAIT_STATUS_TYPE' undeclared (first use in this function)
exp_command.c:248: error: (Each undeclared identifier is reported only once
exp_command.c:248: error: for each function it appears in.)
exp_command.c: In function ‘exp_state_prep_for_invalidation':
exp_command.c:263: error: ‘ExpState' has no member named ‘fg_armed'
exp_command.c: In function ‘expBusy':
exp_command.c:314: error: ‘ExpState' has no member named ‘fdBusy'
exp_command.c: In function ‘exp_close':
exp_command.c:335: error: ‘ExpState' has no member named ‘leaveopen'
exp_command.c: In function ‘exp_init_spawn_ids':
exp_command.c:452: error: ‘ExpState' has no member named ‘keepForever'
exp_command.c:455: error: ‘ExpState' has no member named ‘keepForever'
exp_command.c:459: error: ‘ExpState' has no member named ‘keepForever'
exp_command.c: In function ‘Exp_SpawnCmd':
exp_command.c:836: error: ‘ExpState' has no member named ‘leaveopen'
exp_command.c:843: error: ‘ExpState' has no member named ‘wait'
exp_command.c:925: warning: passing argument 1 of ‘expErrorLogU' discards qualifiers from pointer target type
exp_command.c:1218: error: ‘ExpState' has no member named ‘wait'
exp_command.c: In function ‘exp_i_parse_states':
exp_command.c:1679: warning: passing argument 4 of ‘Tcl_SplitList' from incompatible pointer type
exp_command.c:1690: warning: passing argument 1 of ‘expDiagLogU' discards qualifiers from pointer target type
exp_command.c: In function ‘exp_i_update':
exp_command.c:1703: warning: assignment discards qualifiers from pointer target type
exp_command.c: In function ‘Exp_SendObjCmd':
exp_command.c:1824: warning: passing argument 3 of ‘Tcl_GetIndexFromObj' from incompatible pointer type
exp_command.c: At top level:
exp_command.c:2438: error: expected specifier-qualifier-list before ‘WAIT_STATUS_TYPE'
exp_command.c: In function ‘fork_clear_all':
exp_command.c:2448: error: ‘struct forked_proc' has no member named ‘next'
exp_command.c:2449: error: ‘struct forked_proc' has no member named ‘link_status'
exp_command.c:2449: error: ‘not_in_use' undeclared (first use in this function)
exp_command.c: In function ‘fork_init':
exp_command.c:2459: error: ‘struct forked_proc' has no member named ‘link_status'
exp_command.c:2459: error: ‘wait_not_done' undeclared (first use in this function)
exp_command.c: In function ‘fork_add':
exp_command.c:2469: error: ‘struct forked_proc' has no member named ‘next'
exp_command.c:2470: error: ‘struct forked_proc' has no member named ‘link_status'
exp_command.c:2470: error: ‘not_in_use' undeclared (first use in this function)
exp_command.c:2476: error: ‘struct forked_proc' has no member named ‘next'
exp_command.c: In function ‘Exp_WaitCmd':
exp_command.c:2550: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2558: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2589: error: ‘struct forked_proc' has no member named ‘next'
exp_command.c:2590: error: ‘struct forked_proc' has no member named ‘link_status'
exp_command.c:2590: error: ‘not_in_use' undeclared (first use in this function)
exp_command.c:2592: error: ‘struct forked_proc' has no member named ‘wait_status'
exp_command.c:2624: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2624: error: ‘struct forked_proc' has no member named ‘wait_status'
exp_command.c:2638: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2638: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2639: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2639: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2641: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2641: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2642: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2642: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2643: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2643: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2645: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2645: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2646: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2646: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2651: error: ‘struct forked_proc' has no member named ‘link_status'
exp_command.c: In function ‘Exp_DisconnectCmd':
exp_command.c:2748: error: ‘ExpState' has no member named ‘valid'
exp_command.c:2763: error: ‘ExpState' has no member named ‘valid'
exp_command.c: In function ‘Exp_InterpreterObjCmd':
exp_command.c:2882: warning: passing argument 3 of ‘Tcl_GetIndexFromObj' from incompatible pointer type
make: *** [exp_command.o] Error 1
[root@RHEL expect-5.32]# make install
gcc -c  -I. -I. -I/usr/local/src/tcl8.5.2/generic   -DEXP_VERSION=\"5.32.1\" -DSCRIPTDIR=\"/usr/local/lib/expect5.32\" -DEXECSCRIPTDIR=\"/usr/local/lib/expect5.32\" -DTCL_DEBUGGER  -DDFLT_STTY="\"sane\""  exp_command.c
In file included from /usr/local/src/tcl8.5.2/generic/tclInt.h:3836,
                 from exp_command.c:62:
/usr/local/src/tcl8.5.2/generic/tclPort.h:27:28: error: tclUnixPort.h: No such file or directory
In file included from /usr/local/src/tcl8.5.2/generic/tclInt.h:3838,
                 from exp_command.c:62:
/usr/local/src/tcl8.5.2/generic/tclIntPlatDecls.h:98: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘*' token
/usr/local/src/tcl8.5.2/generic/tclIntPlatDecls.h:113: warning: ‘struct in_addr' declared inside parameter list
/usr/local/src/tcl8.5.2/generic/tclIntPlatDecls.h:113: warning: its scope is only this definition or declaration, which is probably not what you want
/usr/local/src/tcl8.5.2/generic/tclIntPlatDecls.h:388: error: expected specifier-qualifier-list before ‘Tcl_DirEntry'
In file included from exp_command.c:72:
exp_command.h:111: error: expected specifier-qualifier-list before ‘WAIT_STATUS_TYPE'
exp_command.c: In function ‘expStateFromChannelName':
exp_command.c:230: warning: assignment discards qualifiers from pointer target type
exp_command.c: In function ‘exp_wait_zero':
exp_command.c:244: error: expected declaration specifiers before ‘WAIT_STATUS_TYPE'
exp_command.c:248: error: ‘WAIT_STATUS_TYPE' undeclared (first use in this function)
exp_command.c:248: error: (Each undeclared identifier is reported only once
exp_command.c:248: error: for each function it appears in.)
exp_command.c: In function ‘exp_state_prep_for_invalidation':
exp_command.c:263: error: ‘ExpState' has no member named ‘fg_armed'
exp_command.c: In function ‘expBusy':
exp_command.c:314: error: ‘ExpState' has no member named ‘fdBusy'
exp_command.c: In function ‘exp_close':
exp_command.c:335: error: ‘ExpState' has no member named ‘leaveopen'
exp_command.c: In function ‘exp_init_spawn_ids':
exp_command.c:452: error: ‘ExpState' has no member named ‘keepForever'
exp_command.c:455: error: ‘ExpState' has no member named ‘keepForever'
exp_command.c:459: error: ‘ExpState' has no member named ‘keepForever'
exp_command.c: In function ‘Exp_SpawnCmd':
exp_command.c:836: error: ‘ExpState' has no member named ‘leaveopen'
exp_command.c:843: error: ‘ExpState' has no member named ‘wait'
exp_command.c:925: warning: passing argument 1 of ‘expErrorLogU' discards qualifiers from pointer target type
exp_command.c:1218: error: ‘ExpState' has no member named ‘wait'
exp_command.c: In function ‘exp_i_parse_states':
exp_command.c:1679: warning: passing argument 4 of ‘Tcl_SplitList' from incompatible pointer type
exp_command.c:1690: warning: passing argument 1 of ‘expDiagLogU' discards qualifiers from pointer target type
exp_command.c: In function ‘exp_i_update':
exp_command.c:1703: warning: assignment discards qualifiers from pointer target type
exp_command.c: In function ‘Exp_SendObjCmd':
exp_command.c:1824: warning: passing argument 3 of ‘Tcl_GetIndexFromObj' from incompatible pointer type
exp_command.c: At top level:
exp_command.c:2438: error: expected specifier-qualifier-list before ‘WAIT_STATUS_TYPE'
exp_command.c: In function ‘fork_clear_all':
exp_command.c:2448: error: ‘struct forked_proc' has no member named ‘next'
exp_command.c:2449: error: ‘struct forked_proc' has no member named ‘link_status'
exp_command.c:2449: error: ‘not_in_use' undeclared (first use in this function)
exp_command.c: In function ‘fork_init':
exp_command.c:2459: error: ‘struct forked_proc' has no member named ‘link_status'
exp_command.c:2459: error: ‘wait_not_done' undeclared (first use in this function)
exp_command.c: In function ‘fork_add':
exp_command.c:2469: error: ‘struct forked_proc' has no member named ‘next'
exp_command.c:2470: error: ‘struct forked_proc' has no member named ‘link_status'
exp_command.c:2470: error: ‘not_in_use' undeclared (first use in this function)
exp_command.c:2476: error: ‘struct forked_proc' has no member named ‘next'
exp_command.c: In function ‘Exp_WaitCmd':
exp_command.c:2550: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2558: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2589: error: ‘struct forked_proc' has no member named ‘next'
exp_command.c:2590: error: ‘struct forked_proc' has no member named ‘link_status'
exp_command.c:2590: error: ‘not_in_use' undeclared (first use in this function)
exp_command.c:2592: error: ‘struct forked_proc' has no member named ‘wait_status'
exp_command.c:2624: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2624: error: ‘struct forked_proc' has no member named ‘wait_status'
exp_command.c:2638: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2638: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2639: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2639: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2641: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2641: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2642: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2642: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2643: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2643: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2645: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2645: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2646: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2646: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2651: error: ‘struct forked_proc' has no member named ‘link_status'
exp_command.c: In function ‘Exp_DisconnectCmd':
exp_command.c:2748: error: ‘ExpState' has no member named ‘valid'
exp_command.c:2763: error: ‘ExpState' has no member named ‘valid'
exp_command.c: In function ‘Exp_InterpreterObjCmd':
exp_command.c:2882: warning: passing argument 3 of ‘Tcl_GetIndexFromObj' from incompatible pointer type
make: *** [exp_command.o] Error 1
[root@RHEL expect-5.32]# make
gcc -c  -I. -I. -I/usr/local/src/tcl8.5.2/generic   -DEXP_VERSION=\"5.32.1\" -DSCRIPTDIR=\"/usr/local/lib/expect5.32\" -DEXECSCRIPTDIR=\"/usr/local/lib/expect5.32\" -DTCL_DEBUGGER  -DDFLT_STTY="\"sane\""  exp_command.c
In file included from /usr/local/src/tcl8.5.2/generic/tclInt.h:3836,
                 from exp_command.c:62:
/usr/local/src/tcl8.5.2/generic/tclPort.h:27:28: error: tclUnixPort.h: No such file or directory
In file included from /usr/local/src/tcl8.5.2/generic/tclInt.h:3838,
                 from exp_command.c:62:
/usr/local/src/tcl8.5.2/generic/tclIntPlatDecls.h:98: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘*' token
/usr/local/src/tcl8.5.2/generic/tclIntPlatDecls.h:113: warning: ‘struct in_addr' declared inside parameter list
/usr/local/src/tcl8.5.2/generic/tclIntPlatDecls.h:113: warning: its scope is only this definition or declaration, which is probably not what you want
/usr/local/src/tcl8.5.2/generic/tclIntPlatDecls.h:388: error: expected specifier-qualifier-list before ‘Tcl_DirEntry'
In file included from exp_command.c:72:
exp_command.h:111: error: expected specifier-qualifier-list before ‘WAIT_STATUS_TYPE'
exp_command.c: In function ‘expStateFromChannelName':
exp_command.c:230: warning: assignment discards qualifiers from pointer target type
exp_command.c: In function ‘exp_wait_zero':
exp_command.c:244: error: expected declaration specifiers before ‘WAIT_STATUS_TYPE'
exp_command.c:248: error: ‘WAIT_STATUS_TYPE' undeclared (first use in this function)
exp_command.c:248: error: (Each undeclared identifier is reported only once
exp_command.c:248: error: for each function it appears in.)
exp_command.c: In function ‘exp_state_prep_for_invalidation':
exp_command.c:263: error: ‘ExpState' has no member named ‘fg_armed'
exp_command.c: In function ‘expBusy':
exp_command.c:314: error: ‘ExpState' has no member named ‘fdBusy'
exp_command.c: In function ‘exp_close':
exp_command.c:335: error: ‘ExpState' has no member named ‘leaveopen'
exp_command.c: In function ‘exp_init_spawn_ids':
exp_command.c:452: error: ‘ExpState' has no member named ‘keepForever'
exp_command.c:455: error: ‘ExpState' has no member named ‘keepForever'
exp_command.c:459: error: ‘ExpState' has no member named ‘keepForever'
exp_command.c: In function ‘Exp_SpawnCmd':
exp_command.c:836: error: ‘ExpState' has no member named ‘leaveopen'
exp_command.c:843: error: ‘ExpState' has no member named ‘wait'
exp_command.c:925: warning: passing argument 1 of ‘expErrorLogU' discards qualifiers from pointer target type
exp_command.c:1218: error: ‘ExpState' has no member named ‘wait'
exp_command.c: In function ‘exp_i_parse_states':
exp_command.c:1679: warning: passing argument 4 of ‘Tcl_SplitList' from incompatible pointer type
exp_command.c:1690: warning: passing argument 1 of ‘expDiagLogU' discards qualifiers from pointer target type
exp_command.c: In function ‘exp_i_update':
exp_command.c:1703: warning: assignment discards qualifiers from pointer target type
exp_command.c: In function ‘Exp_SendObjCmd':
exp_command.c:1824: warning: passing argument 3 of ‘Tcl_GetIndexFromObj' from incompatible pointer type
exp_command.c: At top level:
exp_command.c:2438: error: expected specifier-qualifier-list before ‘WAIT_STATUS_TYPE'
exp_command.c: In function ‘fork_clear_all':
exp_command.c:2448: error: ‘struct forked_proc' has no member named ‘next'
exp_command.c:2449: error: ‘struct forked_proc' has no member named ‘link_status'
exp_command.c:2449: error: ‘not_in_use' undeclared (first use in this function)
exp_command.c: In function ‘fork_init':
exp_command.c:2459: error: ‘struct forked_proc' has no member named ‘link_status'
exp_command.c:2459: error: ‘wait_not_done' undeclared (first use in this function)
exp_command.c: In function ‘fork_add':
exp_command.c:2469: error: ‘struct forked_proc' has no member named ‘next'
exp_command.c:2470: error: ‘struct forked_proc' has no member named ‘link_status'
exp_command.c:2470: error: ‘not_in_use' undeclared (first use in this function)
exp_command.c:2476: error: ‘struct forked_proc' has no member named ‘next'
exp_command.c: In function ‘Exp_WaitCmd':
exp_command.c:2550: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2558: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2589: error: ‘struct forked_proc' has no member named ‘next'
exp_command.c:2590: error: ‘struct forked_proc' has no member named ‘link_status'
exp_command.c:2590: error: ‘not_in_use' undeclared (first use in this function)
exp_command.c:2592: error: ‘struct forked_proc' has no member named ‘wait_status'
exp_command.c:2624: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2624: error: ‘struct forked_proc' has no member named ‘wait_status'
exp_command.c:2638: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2638: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2639: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2639: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2641: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2641: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2642: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2642: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2643: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2643: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2645: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2645: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2646: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2646: error: ‘struct ExpState' has no member named ‘wait'
exp_command.c:2651: error: ‘struct forked_proc' has no member named ‘link_status'
exp_command.c: In function ‘Exp_DisconnectCmd':
exp_command.c:2748: error: ‘ExpState' has no member named ‘valid'
exp_command.c:2763: error: ‘ExpState' has no member named ‘valid'
exp_command.c: In function ‘Exp_InterpreterObjCmd':
exp_command.c:2882: warning: passing argument 3 of ‘Tcl_GetIndexFromObj' from incompatible pointer type
make: *** [exp_command.o] Error 1
[root@RHEL expect-5.32]#



Please tell me of there is any other way of installing it.


Thanks,
Vikas
# 2  
Old 05-06-2008
Hi,
I got the same problem and then I figured out how to fix that.
I am using Ubuntu 8.04 (the newest version) and I solved that problem by reconfiguring Expect with the option --with-tcl=directory where directory contains tcl configuration (tclConfig.sh).
Hope this help
# 3  
Old 05-06-2008
Hammer & Screwdriver

[QUOTE=vikas027;302188047]Hi all,


I am trying to install expect utility on RHEL 5. It is showing that we also need to install tcl also in order to run it.

I wonder why you are installing old version, while expect is by default available in EL-5

rpm -qf /usr/bin/expect
expect-5.43.0-5.1

Regards,
Bash
# 4  
Old 05-06-2008
If you need the latest tcl/expect, etc..Check out ActiveState.
ActiveState - Dynamic Tools for Dynamic Languages
The installer, documentation, packages, etc..everything in one bundle.
# 5  
Old 06-18-2009
I got the below error! can you help me?

/qawac/home/tbnaadh/tcl/expect-5.43 $ make

/opt/SUNWspro/WS6U2/bin/acc -c -I. -I. -I/qawac/home/tbnaadh/tcl/tcl8.5.7/generic -DEXP_VERSION=\"5.43.0\" -DSCRIPTDIR=\"/expor
t/home/tbnaadh/tcl/usr/local/lib/expect5.43\" -DEXECSCRIPTDIR=\"/export/home/tbnaadh/tcl/usr/local/lib/expect5.43\" -DTCL_DEBUGGER
-DUSE_NON_CONST -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" exp_inter.c
"/qawac/home/tbnaadh/tcl/tcl8.5.7/generic/tclPort.h", line 27: cannot find include file: "tclUnixPort.h"
"./exp_command.h", line 117: syntax error before or at: WAIT_STATUS_TYPE
"./exp_command.h", line 117: cannot recover from previous errors
*** Error code 10
make: Fatal error: Command failed for target `exp_inter.o'

*************************************************
I can see the file tclUnixPort.h in Unix directory of my tcl.
# 6  
Old 07-06-2009
Any resolution?

Vikas,

Were you able to resolve your issue... I am also trying to install Expect and getting same error

Command Failed for target `exp_command.o`

I am new to Unix and used following command for make

./configure --with-tcl=/usr/local/tcl8.5.3/unix/
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Issue in installing expect and Tcl

Hi I need to install expect in redhat. through net I came to know that I must install tcl too in order to make expect work. I have downloaded both packages but not able to install # ls -lrt total 3720 18:33 tcl8.4.20-src.tar.gz 18:33 expect5.45.3.tar.gz 18:40 expect5.45.3... (7 Replies)
Discussion started by: scriptor
7 Replies

2. Shell Programming and Scripting

Problems with expect and sftp in bash

I'm having trouble with some automated sftp pulls. I'm using expect inside bash scripts and spawning SFTP. Some times the expect seems bog down. I have tried to put sleeps in my code to give everything time to work before I move on to next step but I till continue to get issues. For example when... (2 Replies)
Discussion started by: gosteen
2 Replies

3. Shell Programming and Scripting

Problems with expect

Hi, I am writing a script to enter into a list of servers and take the backup of the cronjobs on that servers... ============================== -bash-3.00$ expect spawn.exp ssh rcdn6-vm59-33 spawn ssh servers1 /CODE]==================== -bash-3.00$ cat spawn.exp #!/usr/bin/expect eval... (1 Reply)
Discussion started by: satishkumar432
1 Replies

4. Shell Programming and Scripting

Expect script Execution Problems .. Help!!!

Hi Guys, I am writing the expect script which take input from the txt file and check whether that file is present over the Sftp or not.If yes then delete other wise check the next one.. I am able to do comparison online for single file... Please also note still i didn't try to implement... (1 Reply)
Discussion started by: hackerdilli
1 Replies

5. Red Hat

How to install expect after installing tcl on Redhat Linux

Hi, I have install tcl and then expect but I am getting below ouput while trying which expect which expect /usr/bin/which: no expect in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin) I have copied both in... (6 Replies)
Discussion started by: manish_1678
6 Replies

6. Shell Programming and Scripting

Problems with expect and set variables

I'm writing a script that'll send a time-stamp to my backup server. I create a file with the name of the current date, send it to my server with scp and rm the file from the local computer. Individually these commands work fine and with a set name the expect scripts also work fine. The problem... (0 Replies)
Discussion started by: Ktesh564
0 Replies

7. Programming

Installing EXPECT on unix

Friends, I thought of installing EXPECT but unable to execute 'make', its throwing errors. Am not a 'root' user, will I not be able to install EXPECT in my home directory? (8 Replies)
Discussion started by: anaga
8 Replies

8. Shell Programming and Scripting

Expect script with file input problems

Hello, I am trying to write an expect script that will ssh into a large number of Cisco routers and add some commands via the cli. The script I wrote works great for one host however I have over 350 routers that this needs to be added to. The problem is I cannot get the script to read the file of... (1 Reply)
Discussion started by: meberline
1 Replies

9. Shell Programming and Scripting

Need a simple file based utilty for shell scripts

Hello, I'm wondering if you may know of a simple file based UNIX utility that can be used to store and retrieve values on a flat file, let's say i have a file called "kru", i'd like to be able to specify a request like: while(....) if ; then kru.fld2 = $rec_cnt kru.fld3 =... (4 Replies)
Discussion started by: bobk544
4 Replies

10. Shell Programming and Scripting

Installing expect

Hi, I have solaris 8 installed in my intel machine.(pentium 4).I'am planning to learn expect.Can somebody help me in giving relevant sites for that.I beleive we have to install TCL also for expect.Can somebody throw light on installations of both TCL & expect? thanx in advance, raj. (1 Reply)
Discussion started by: sounder123
1 Replies
Login or Register to Ask a Question