Issue in installing expect and Tcl

Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 04-06-2018
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  
Old 04-06-2018
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  
Old 04-06-2018
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  
Old 04-06-2018
OK, what would you conclude from this?
# 5  
Old 04-06-2018
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

More UNIX and Linux Forum Topics You Might Find Helpful
Special Character issue in Expect Utility (Tcl) Mahesh Desai Shell Programming and Scripting 1 09-25-2014 07:13 PM
Expect/tcl (not perl) logging troubles sumguy Shell Programming and Scripting 0 05-16-2013 06:29 AM
TCL expect out string with multiple lines h0ujun Shell Programming and Scripting 1 08-16-2012 10:33 PM
Convert my shell script into expect/tcl linuxgeek Shell Programming and Scripting 2 09-21-2010 09:09 AM
How to install expect after installing tcl on Redhat Linux manish_1678 Red Hat 6 09-08-2010 05:48 AM
expect TCL script linboco Shell Programming and Scripting 0 12-09-2009 03:10 AM
how to save the output of command in tcl/expect allenxiao7 UNIX for Dummies Questions & Answers 1 09-29-2009 01:16 AM
Expect/Tcl help allenxiao7 UNIX for Dummies Questions & Answers 2 09-22-2009 05:10 PM
TCL/Expect not working as expected RiSk Shell Programming and Scripting 4 07-21-2009 12:19 PM
Help with TCL/Expect in Solaris 5.3 pinchharmonic Shell Programming and Scripting 0 05-14-2008 03:55 PM
tcl/expect calsum Shell Programming and Scripting 7 03-26-2008 02:23 AM
Tcl expect HELP dave_m Shell Programming and Scripting 0 02-27-2008 11:08 AM
Expect/Tcl help? earnstaf UNIX for Dummies Questions & Answers 2 07-26-2007 11:01 AM
Expect with tcl/tk sanjustudy Shell Programming and Scripting 0 10-10-2005 06:48 AM
TCL/Expect project questions thumper Shell Programming and Scripting 1 02-23-2005 04:33 PM