Install Active TCL Support for RHEL6U6
关于Tcl的Linux安装介质可以从几个地方获取:
ActiveState:http://www.activestate.com/
TCL Source Code:http://www.tcl.tk/software/tcltk/download.html
本文介绍的方式是通过ActiveState的介质安装。
一、获取介质:
Active TCL的官方主页:http://www.activestate.com/activetcl
下载页:http://www.activestate.com/activetcl/downloads
这里,我下载的版本是:8.6.4.1。
URL is:http://downloads.activestate.com/ActiveTcl/releases/8.6.4.1/ActiveTcl8.6.4.1.299124-linux-x86_64-threaded.tar.gz
三、解压:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
[root@rhel-server software]# pwd /software [root@rhel-server software]# du -sh * 22M ActiveTcl8.6.4.1.299124-linux-x86_64-threaded.tar.gz 30M redis-3.0.2 1.4M redis-3.0.2.tar.gz [root@rhel-server software]# [root@rhel-server software]# tar -xzf ActiveTcl8.6.4.1.299124-linux-x86_64-threaded.tar.gz [root@rhel-server software]# [root@rhel-server software]# ls -ltr total 23768 drwxrwxr-x 6 root root 4096 Jun 4 02:35 redis-3.0.2 drwxrwxr-x 6 10001 users 4096 Jun 5 20:20 ActiveTcl8.6.4.1.299124-linux-x86_64-threaded -rw-r--r-- 1 root root 1360182 Jul 14 19:06 redis-3.0.2.tar.gz -rw-r--r-- 1 root root 22963116 Jul 15 00:16 ActiveTcl8.6.4.1.299124-linux-x86_64-threaded.tar.gz [root@rhel-server software]# [root@rhel-server software]# cd ActiveTcl8.6.4.1.299124-linux-x86_64-threaded [root@rhel-server ActiveTcl8.6.4.1.299124-linux-x86_64-threaded]# ls install_data.tcl install.sh install_welcome.txt MANIFEST_at8.6.txt README-8.6-thread.txt install_images install.tcl lib payload uninstall install_lib.tcl install.tk license-at8.6-thread.terms pdemos [root@rhel-server ActiveTcl8.6.4.1.299124-linux-x86_64-threaded]# |
四、安装:
在解压后的安装介质目录中执行“install.sh”脚本即可:
1 2 |
[root@rhel-server ActiveTcl8.6.4.1.299124-linux-x86_64-threaded]# ./install.sh (... ...等等。) |
跟着脚本的命令行提示一步步的继续即可完成安装。
五、安装后:
如果安装过程中没有做出任何修改,都是采用默认的安装策略,那么安装好了之后,Active TCL会位于目录“/opt”中:
1 2 3 4 5 6 7 8 9 10 |
[root@rhel-server ~]# cd /opt/ [root@rhel-server opt]# ls ActiveTcl-8.6 rh [root@rhel-server opt]# cd ActiveTcl-8.6/ [root@rhel-server ActiveTcl-8.6]# ls bin demos doc include lib license-at8.6-thread.terms licenses man MANIFEST_at8.6.txt README-8.6-thread.txt [root@rhel-server ActiveTcl-8.6]# ls bin/ base-tcl8.6-thread-linux-x86_64 base-tk8.6-thread-linux-x86_64 tclsh8.6 teacup wish base-tcl8.6-thread-linux-x86_64.so tclsh tclvfse tkcon wish8.6 [root@rhel-server ActiveTcl-8.6]# |
可以将TCL设到环境变量“PATH”中,以便于调用:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
[root@rhel-server ActiveTcl-8.6]# cat ~/.bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin:/opt/ActiveTcl-8.6/bin export PATH [root@rhel-server ActiveTcl-8.6]# [root@rhel-server ActiveTcl-8.6]# env | grep --color PATH PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/opt/ActiveTcl-8.6/bin [root@rhel-server ActiveTcl-8.6]# |
六、使用Active TCL:
1 2 3 4 5 6 7 |
[root@rhel-server ~]# tclsh % put "Hello world." Hello world. % exit [root@rhel-server ~]# |
——————————————————————————————
Done。
1 thought on “Install Active TCL Support for RHEL6U6”