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
[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
# 
 
 
 # rpm -ql tcl
package tcl is not installed
# rpm -ql expect
package expect is not installed
# 
 

kindly guide me what to do

You don't seem to have an installation source, most probably repositories, defined. What be the contents of

/etc/yum/yum.conf
/etc/yum/repos.d

?

Hi Rudic,

below is the o/p

 
 #/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

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

 
 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
#
 

OK, what would you conclude from this?

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

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

 
 checking for Tcl configuration... configure: error: /usr/local/ActiveTcl-8.6.8/lib/ directory doesn't contain tclConfig.sh
 
 
 # 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
 

You have a binary distribution and should not be installing from source.

HI Corona

I did not understand what you have said ....

That thing where you download .tar.gz's and run make. You should not be doing that. You should be getting the right rpm's for your distribution and installing them