Installation of Linux Tcl and expect

Source: Internet
Author: User

First, the installation of TCL
1. Download: Tcl version 8.4.19
Http://sourceforge.net/projects/tcl/files/Tcl/8.4.19/tcl8.4.19-src.tar.gz/download

2. Unzip the source package
Tar xfvz tcl8.4.19-src.tar.gz

3. Installation Configuration
#cd Tcl8.4.19/unix
#./configure--PREFIX=/USR/LOCAL/TCL--enable-shared
#make
#make Install

4. Sub-directory Unix tclUnixPort.h copied to generic
#cp tcl8.4.19/unix/tclunixport.h tcl8.4.19/generic/

5. Create a soft link
#ln-S/usr/local/tcl/bin/tcl8.4/usr/bin/tclsh

Second, after the installation of expect
1. Download expect version 5.43:
Http://download.chinaunix.net/download/0003000/2845.shtml

2. Unzip the source package
TAR-XVF expect5.43.tar.gz

3. Installation Configuration
#cd expect5.43
#./configure--prefix=/usr/local/expect--with-tcl=/usr/local/tcl/lib--with-tclinclude=. /tcl8.4.19/generic
#make
#make Install
#ln-S/usr/local/tcl/bin/expect/usr/local/expect/bin/expect

5. Create a link to the/bin
#ln-S/usr/local/expect/bin/expect/usr/bin/expect
Note: If/usr/bin/expect already exists, back up the original expect file, delete it, and then create the expect soft link

Third, complete, test
#expect
Expect1.1>

Installation of Linux Tcl and expect

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.