Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Issue in installing expect and Tcl

Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
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
Code:
 
 #  ls -lrt 
total 3720
 18:33 tcl8.4.20-src.tar.gz
18:33 expect5.45.3.tar.gz
18:40 expect5.45.3
[root@localhost src]# yum install tcl
Loaded plugins: langpacks, product-id
There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 You can enable repos with yum-config-manager --enable <repo>
[root@localhost src]# yum repolist all 
Loaded plugins: langpacks, product-id
repo id                                                       repo name                                                             status
RHEL_7_Disc                                                   RHEL_7_x86_64_Disc                                                    disabled
repolist: 0
#

Code:
 
 # rpm -ql tcl
package tcl is not installed
# rpm -ql expect
package expect is not installed
#

kindly guide me what to do
# 2  
You don't seem to have an installation source, most probably repositories, defined. What be the contents of
Code:
/etc/yum/yum.conf
/etc/yum/repos.d

?
# 3  
Hi Rudic,

below is the o/p
Code:
 
 #/etc/yum/yum.conf
bash: /etc/yum/yum.conf: No such file or directory
# /etc/yum/repos.d
bash: /etc/yum/repos.d: No such file or directory
#

---------- Post updated at 05:00 PM ---------- Previous update was at 04:57 PM ----------

Hi

I tried below steps too but still not working
Code:
 
 ./configure --prefix=/usr           \
            --with-tcl=/usr/lib     \
            --enable-shared         \
            --mandir=/usr/share/man \
            --with-tclinclude=/usr/include &&
make

below is the o/p I am getting. here I am not sure from where I should get tclConfig.sh
file
Code:
 
 checking for correct TEA configuration... ok (TEA 3.9)
configure: configuring expect 5.45.3
checking for Tcl configuration... configure: error: /usr/lib directory doesn't contain tclConfig.sh
#

# 4  
OK, what would you conclude from this?
# 5  
that tclConfig.sh file should be present under /usr/lib
but the file is not present in tcl package. now from where I shud get this

---------- Post updated at 05:27 PM ---------- Previous update was at 05:15 PM ----------

also from net I execute below cmd

Code:
./configure --with-tclconfig=/usr/local/ActiveTcl-8.6.8/lib/ --with-tkconfig=/usr/local/ActiveTcl-8.6.8/lib/

this is the error I am getting

Code:
 
 checking for Tcl configuration... configure: error: /usr/local/ActiveTcl-8.6.8/lib/ directory doesn't contain tclConfig.sh

Code:
 
 # ls -1
expect5.45.3
expect5.45.3.tar.gz
expect5.45.4
expect5.45.4.tar.gz
tcl8.4.20
tcl8.4.20-src.tar.gz
tcl8.6.8
tcl8.6.8-src.tar.gz

Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Special Character issue in Expect Utility (Tcl)

Hi, I have written a unix expect utility "ssh-login.exp" which connects (ssh) to remote host and execute some shell script. I am calling this "ssh-login.exp" utility from another shell script. "ssh-login.exp" takes username, password, host and shell script path to execute on remote host. All... (1 Reply)
Discussion started by: Mahesh Desai
1 Replies

2. 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

3. Shell Programming and Scripting

expect TCL script

Hello, I write a TCL script for Expect/ Telnet. I want to send command to the telnet server. But I want to close after the command is sent. Anybody know which command can flush the expect so I can sure the command is sent to the telnet server??? EX: send "./command1\r" close... (0 Replies)
Discussion started by: linboco
0 Replies

4. UNIX for Dummies Questions & Answers

Expect/Tcl help

hi, I am new in Expect. I have a question about expect timeout. suppose I have a structure of expect { ".."{ send"............"} timeout{ ............... } } The silly question is if I reach timeout, how can I store the error message showing on the screen to... (2 Replies)
Discussion started by: allenxiao7
2 Replies

5. Shell Programming and Scripting

Help with TCL/Expect in Solaris 5.3

I'm having this problem with a very simple tcl expect script that is running on Solaris 5.3 with TCL version 8.4.7 and expect version 5.0. below is the simplified version of the code snippet, which I think has everything to illustrate the problem, the full version is at the very bottom in... (0 Replies)
Discussion started by: pinchharmonic
0 Replies

6. Shell Programming and Scripting

tcl/expect

Can someone identify what is the problem here?. no children while executing "exp_wait -nowait -i -1" (procedure "logOptions" line 45) invoked from within "logOptions" (procedure "doExecute" line 98) invoked from within "doExecute" (procedure "main" line 32) ... (7 Replies)
Discussion started by: calsum
7 Replies

7. Shell Programming and Scripting

Tcl expect HELP

In the following "for" loop I assume the the script will expect "anyway", "first" NOT in any paticular order and send "yes" when there found, breaking out of the loop when "$prompt" is found. The way it is working is like 3 individual expect lines, and they MUST be in cronological order. ANY help... (0 Replies)
Discussion started by: dave_m
0 Replies

8. UNIX for Dummies Questions & Answers

Expect/Tcl help?

Does anyone know of an expect/tcl forum that is as helpful as this one is for shell scripting? Or if anyone has any expect knowledge, can you please provide some guidance on how to write to a local error log based on output from a ssh session? I have something like this: foreach host... (2 Replies)
Discussion started by: earnstaf
2 Replies

9. Shell Programming and Scripting

Expect with tcl/tk

hai all, i have an tcl script in which i have been reading the DUT Command prompt of an cisco switch as DUT Command Prompt : cisco* and running the test case of stp now the problem is if i have given any blank space in between the cisco or at the startup then the Expect is not identifying the... (0 Replies)
Discussion started by: sanjustudy
0 Replies

10. Shell Programming and Scripting

TCL/Expect project questions

I am rewriting the first big script project I ever coded to clean up some issues, mainly my really clumsy bash code, and to migrate to TCL/Expect. I have a couple of questions that I could use some help with. 1.) The script needs to know where it is located. I realize that I could use "find /... (1 Reply)
Discussion started by: thumper
1 Replies

Featured Tech Videos