Address: http://blog.csdn.net/wind19/archive/2009/11/30/4905453.aspx
My testing environment is SuSE Linux 10.1.
Keep CT home page: http://expect.nist.gov/
Latest stable version 5.45.0: http://sourceforge.net/projects/expect/files/Expect/5.45/expect5.45.tar.gz/download
Secondary CT depends on Tcl/tk, so install Tcl/tk before installing secondary CT.
Download Page of Tcl/tk8.4.16:
Http://www.tcl.tk/software/tcltk/downloadnow84.html
Software Package:
Http://prdownloads.sourceforge.net/tcl/tcl8.4.16-src.tar.gz
Http://prdownloads.sourceforge.net/tcl/tk8.4.16-src.tar.gz
Check the system to see if TCL has been installed.
[Root @ RHEL ~] # Rpm-Qa | grep TCL
Installed:
Because reverse CT needs to be re-compiled and installed, it requires the Tcl development kit.
Rpm-IVH -- force tcl-devel-8.4.13-3.fc6.i386.rpm
This Red Hat system package can be found at this URL: http://www.filewatcher.com/m/tcl-devel-8.4.13-3.fc6.i386.rpm.1048937.0.0.html
Http://rpm.pbone.net/index.php3/stat/4/idpl/15700692/dir/centos_5/com/tcl-devel-8.4.13-4.el5.i386.rpm.html
Install the corresponding SDK version based on the Tcl version:
Http://suse.uni-leipzig.de/pub/suse-old-versions/SLES10/suse/x86_64/tcl-devel-8.4.12-16.2.x86_64.rpm
Https://ifolder.simmonsenergy.com/sles10.3/suse/x86_64/tcl-devel-8.4.12-16.2.x86_64.rpm
Then unpack the CT-5.43 package and start reading the install document. The system administrator told me to run./configure -- help directly to open parameters without reading it. It's really good, and it's just another time.
1. First, determine the installation location of the Tcl Development Kit
Rpm-qpl tcl-devel-8.4.13-3.fc6.i386.rpm | more
2. Run./configure according to the parameters.
./Configure -- With-tcl =/usr/lib -- With-tclinclude =/usr/include/TCL-private/generic
3. Execute
Make
4. Execute
Make install
After completing step 4, CT is successfully installed. -
No installation:
Step 1: Install TCL
[Root@supersun.biz download] # cd tcl8.4.16/Unix/
./Configure
Make
Make install
Do not delete the source code package after installation. The TCL header file is required when you install keep CT.
After installation, go to the TclSource codeTo copy tclunixport. h under the subdirectory UNIX to the subdirectory generic.
Step 2 install TK
[Root@supersun.biz download] # cd tk8.4.16/Unix/
./Configure
Make
Make install
Step 3: Install keep CT
If no parameter is provided, an error is returned when configure is executed:
Checking for TCL private headers... checking for tclint. H... no
Configure: Error: Can't Find TCL private Headers
Run the configure script again and specify the directory of the Tcl header file:
[Root@supersun.biz expect-5.43] #./configure -- With-tclinclude = ../tcl8.4.16/generic
The script runs normally and runs make for compilation.
Make
If make or configure is incorrect, add the configuration parameters as prompted.
If no error occurs during compilation, run the following command:
Make install
The configuration parameters mean:
· -- With-tcl =/usr/Tcl/lib :(/usr/local/lib in my environment) Make sure that the configuration script finds Tcl in the temporary tool directory, we do not want it to use the possible TCL.
· -- With-x = No: tells the configuration script not to look for TK (tcl gui component) or X Window System Library. Both of them may exist in the main system.
·-With-tclinclude: helps the script find the desired TCL header file.
This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/wind19/archive/2009/11/30/4905453.aspx