diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-15 23:23:39 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-15 23:23:39 +0000 |
commit | 6175ca03be6d0d51359f9017123708987d0f5eb7 (patch) | |
tree | ecfcf6e79a21b1d25c3f6f42dd68ea0a14add89c /ruby_1_8_5/ext/tk/README.ActiveTcl | |
parent | 80a56b248b2e9cfc95622aed98750df05a19f667 (diff) |
add tag v1_8_5_91v1_8_5_91
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_8_5_91@13046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby_1_8_5/ext/tk/README.ActiveTcl')
-rw-r--r-- | ruby_1_8_5/ext/tk/README.ActiveTcl | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/ruby_1_8_5/ext/tk/README.ActiveTcl b/ruby_1_8_5/ext/tk/README.ActiveTcl new file mode 100644 index 0000000000..3afb3f4cf6 --- /dev/null +++ b/ruby_1_8_5/ext/tk/README.ActiveTcl @@ -0,0 +1,49 @@ +ActiveTcl is ActiveState's quality-assured distribution of Tcl. + +# see <http://www.activestate.com/Products/ActiveTcl/> +# <http://www.tcl.tk/> + +If you want to use ActiveTcl binary package as the Tcl/Tk libraries, +please use the following configure options. + + --with-tcl-dir=<ActiveTcl_root> + --with-tk-dir=<ActiveTcl_root> + +And use the followings if you need. + + --with-tcllib=<libname> + --with-tklib=<libname> + --enable-tcltk-stubs + +For example, when you install ActiveTcl-8.4.x to '/usr/local/ActiveTcl', + + configure --with-tcl-dir=/usr/local/ActiveTcl/ \ + --with-tk-dir=/usr/local/ActiveTcl/ \ + --with-tcllib=tclstub8.4 \ + --with-tklib=tkstub8.4 \ + --enable-tcltk-stubs + +It depends on your environment that you have to add the directory of +ActiveTcl's libraries to your library path when execute Ruby/Tk. +One of the way is to add entries to TCLLIBPATH environment variable, +and one of the others add to LD_LIBRARY_PATH environment variable + +Probably, using TCLLIBPATH is better. The value is appended at the +head of Tcl's 'auto_path' variable. You can see the value of the +variable by using 'Tk::AUTO_PATH.value' or 'Tk::AUTO_PATH.list'. + +For example, on Linux, one of the ways is to use LD_LIBRARY_PATH +environment variable. +------------------------------------------------------------------------- + [bash]$ LD_LIBRARY_PATH=/usr/local/ActiveTcl/lib:$LD_LIBRARY_PATH \ + ruby your-Ruby/Tk-script + + [bash]$ LD_LIBRARY_PATH=/usr/local/ActiveTcl/lib:$LD_LIBRARY_PATH irb +------------------------------------------------------------------------- +Based on it, the Tcl interpreter changes auto_path variable's value. + +Then, you'll be able to use Tcl/Tk extension libraries included in the +ActiveTcl package (e.g. call TkPackage.require('BWidget'), and then, +use functions/widgets of BWidget extention). + + Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) |