2014-03-10

TCL/TK v8.6 installation

Requirement:
ActiveTcl 8.5.7.0 ==> http://www.activestate.com/activetcl/downloads/
OS Linux & MS-Win

With MS-Windows7
Step-1 Environment Variable modification (設定環境變數)

  • Right-click [My Computer] --> [Advanced System Settings] --> [Environment variable]
  • Focus on System variable field
  • Modify "Path" within column Variable, and insert ";C:\Tcl\bin" into the end of line.
  • Such as "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\SecureCRT;C:\Program Files\Java\jdk1.7.0_45\bin;C:\Tcl\bin"
Execution:
C:\> tclsh [*.tcl source code] --> for Text mode
C:\> wish [*.tcl source code] --> for GUI

With Linux CentOS
Component: -8.6.0.0b1 / ActivePerl-5.10.0.1005

Ruby recompile
#./configure --prefix=<install-dir>
#./configure --with-tcl-dir=/opt/ActiveTcl-8.6
#./configure --with-tk-dir=/opt/ActiveTcl-8.6
#./configure --with-tcllib=tclstub8.5
#./configure --with-tklib=tkstub8.5
#./configure --enable-tcltk_stubs
#./configure --enable-tcl-thread
#./configure --enable-pthread
# make && make install

ActivePerl Installation
01- download ActivePerl from www.activestate.com.
02- untar
03- ./install.sh
04- create symbolic links
       ln -s /opt/ActivePerl-5.10/bin/perl /bin/perl
       ln -s /opt/ActivePerl-5.10/bin/ppm /bin/ppm

05- reboot linux
06- # perl -MTkx -e 'print Tkx::info("patchlevel");'
07- system return "8.5.6"
08- finished

Reference
Dai 的網頁==>
http://got7.org/blog/?cat=5&paged=3http://blog.got7.org/2009/06/tcltk.html
http://www.tkdocs.com/tutorial/index.html

沒有留言:

張貼留言