1
To compile 'tcltklib', you must have Tcl/Tk libraries on your environment.
1
To compile 'tcltklib', you must have Tcl/Tk libraries on your environment.
2
2
Although 'extconf.rb' script searches Tcl/Tk libraries and header files
3
3
(as default, searches tclConfig.sh/tkConfig.sh and use the defintions on
4
4
those; ActiveTcl has high priority on searching unless --without-ActiveTcl),
5
sometimes fails to find them. And then, 'tcltklib' cannot be compiled. If
6
Tcl/Tk libraries or header files are installed but are not found, you can
7
give the information by arguments of the 'configure' script. Please give
8
some or all of the following options.
5
sometimes fails to find them. And then, 'tcltklib' cannot be compiled. If
6
Tcl/Tk libraries or header files are installed but are not found, you can
7
give the information by arguments of the 'configure' script. Please give
8
some or all of the following options.
10
10
--with-tk-old-extconf use old "extconf.rb" (default: false).
11
11
If current extconf.rb doesn't work properly
12
(or your install process is based on old
12
(or your install process is based on old
13
13
documant about Ruby/Tk install), please try
16
16
--with-ActiveTcl / --without-ActiveTcl
17
17
--with-ActiveTcl=<dir> search ActiveTcl libraries (default: true).
18
When true, try to find installed ActiveTcl.
18
When true, try to find installed ActiveTcl.
19
19
When <dir> is given, use it as the ActiveTcl's
20
20
top directory (use <dir>/lib, and so on).
21
21
Old "extconf.rb" doesn't support this option.
23
23
--with-tk-shlib-search-path=<paths>
24
teach the paths for loading shared-libraries
24
teach the paths for loading shared-libraries
26
<paths> is a path list with the same format
26
<paths> is a path list with the same format
27
27
as PATH environment variable.
28
28
This option may be experimental.
29
29
Old "extconf.rb" doesn't support this option.
31
--with-tcltkversion=<version>
31
--with-tcltkversion=<version>
32
--with-tcltkversion=<tclversion>,<tkversion>
32
33
force version of Tcl/Tk libaray
33
(e.g. libtcl8.4g.so ==> --with-tcltkversion=8.4g)
35
--without-tcl-config / --without-tk-config
36
--with-tclConfig-dir=<dir>
37
--with-tkConfig-dir=<dir> the directory contains 'tclConfig.sh' and
39
Current "extconf.rb" uses the information
34
(e.g. libtcl8.4g.so & libtk8.4g.so ==> --with-tcltkversion=8.4g
35
libtcl8.4.so & libtk8.4g.so ==> --with-tcltkversion=8.4,8.4g)
37
--enable-tcl-h-ver-check/--disable-tcl-h-ver-check
38
--enable-tk-h-ver-check/--disable-tk-h-ver-check
39
enable or disable for checking MAJOR_VERSION and
40
MINOR_VERSION on tcl.h/tk.h whether match with
41
Tcl/Tk libraries' version or not.
43
--with-tcl-build-dir=<dir>
44
--with-tk-build-dir=<dir> If you want to compile with libraries on Tcl/Tk
45
build dir (still NOT installed), you must use
47
(e.g. --with-tcl-build-dir=./build/tcl8.5.9/unix)
48
When use these options, --with-tclConfig-dir and
49
--with-tkConfig-dir options are ignored (however,
50
--with-tclConfig-file and --with-tkConfig-file
51
options are still available).
53
--with-tclConfig-file=<file>/--without-tclConfig-file
54
--with-tkConfig-file=<file>/--without-tkConfig-file
55
file path of tclConfig.sh/tkConfig.sh, or don't
57
If you want use non-standard filenames of config
58
files (e.g. tclConfig-static.sh), you must use
61
--with-tclConfig-dir=<dir>
62
--with-tkConfig-dir=<dir> the directory contains 'tclConfig.sh' and
64
Current "extconf.rb" uses the information
40
65
on tclConfig.sh/tkConfig.rb, if possible.
41
66
Old "extconf.rb" doesn't support this option.
106
131
*** ATTENTION ***
107
When your Tcl/Tk libraries are compiled with "pthread support",
108
Ruby/Tk may cause "Hang-up" or "Segmentation Fault" frequently.
109
If you have such a trouble, please try to use the '--enable-pthread'
110
option of the 'configure' command and re-compile Ruby sources.
111
It may help you to avoid this trouble. The following configure
132
When your Tcl/Tk libraries are compiled with "pthread support",
133
Ruby/Tk may cause "Hang-up" or "Segmentation Fault" frequently.
134
If you have such a trouble, please try to use the '--enable-pthread'
135
option of the 'configure' command and re-compile Ruby sources.
136
It may help you to avoid this trouble. The following configure
112
137
options may be useful.
114
139
--enable-tcl-thread/--disable-tcl-thread
115
140
--with-tclConfig-file=<path of 'tclConfig.sh'>
116
141
--with-tkConfig-file=<path of 'tkConfig.sh'>
118
It is not need that 'tclConfig.sh' is a normal Tcl/Tk's tclConfig.sh.
143
It is not need that 'tclConfig.sh' is a normal Tcl/Tk's tclConfig.sh.
119
144
But the file is expected to include the line "TCL_THREADS=0" or "...=1".
120
When no "TCL_THREADS=?" line, if Tcl version is 7.x or 8.0 which is
121
given by "TCL_MAJOR_VERSION=?" line and "TCL_MINOR_VERSION=?" line,
145
When no "TCL_THREADS=?" line, if Tcl version is 7.x or 8.0 which is
146
given by "TCL_MAJOR_VERSION=?" line and "TCL_MINOR_VERSION=?" line,
122
147
then --disable-tcl-thread is expected. Else, ignore the 'tclConfig.sh'.
123
If --enable-tcl-thread or --disable-tcl-thread option is given, then
124
--with-tclConfig-file option is ignored.
148
If --enable-tcl-thread or --disable-tcl-thread option is given, then
149
--with-tclConfig-file option is ignored.
126
151
==========================================================
127
152
Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)