📄 readme
字号:
This is the directory where you configure, compile, test, and installUNIX versions of Tcl. This directory also contains source files for Tclthat are specific to UNIX. Some of the files in this directory areused on the PC or Mac platform too, but they all depend on UNIX(POSIX/ANSI C) interfaces and some of them only make sense under UNIX.The rest of this file contains instructions on how to do this. Therelease should compile and run either "out of the box" or with trivialchanges on any UNIX-like system that approximates POSIX, BSD, or SystemV. We know that it runs on workstations from Sun, H-P, DEC, IBM, andSGI, as well as PCs running Linux, BSDI, and SCO UNIX. To compile fora PC running Windows, see the README file in the directory ../win. Tocompile for a Macintosh, see the README file in the directory ../mac.SCCS: @(#) README 1.15 96/12/19 14:02:23How To Compile And Install Tcl:-------------------------------(a) Check for patches as described in ../README.(b) If you have already compiled Tcl once in this directory and are now preparing to compile again in the same directory but for a different platform, or if you have applied patches, type "make distclean" to discard all the configuration information computed previously.(c) Type "./configure". This runs a configuration script created by GNU autoconf, which configures Tcl for your system and creates a Makefile. The configure script allows you to customize the Tcl configuration for your site; for details on how you can do this, type "./configure -help" or refer to the autoconf documentation (not included here). Note: be sure to use only absolute path names (those starting with "/") in the --prefix and --exec_prefix options.(d) Type "make". This will create a library archive called "libtcl.a" or "libtcl.so" and an interpreter application called "tclsh" that allows you to type Tcl commands interactively or execute script files.(e) If the make fails then you'll have to personalize the Makefile for your site or possibly modify the distribution in other ways. First check the file "porting.notes" to see if there are hints for compiling on your system. Then look at the porting Web page described later in this file. If you need to modify Makefile, there are comments at the beginning of it that describe the things you might want to change and how to change them.(f) Type "make install" to install Tcl binaries and script files in standard places. You'll need write permission on the installation directories to do this. The installation directories are determined by the "configure" script and may be specified with the --prefix and --exec_prefix options to "configure". See the Makefile for information on what directories were chosen; you can override these choices by modifying the "prefix" and "exec_prefix" variables in the Makefile.(g) At this point you can play with Tcl by invoking the "tclsh" program and typing Tcl commands. However, if you haven't installed Tcl then you'll first need to set your TCL_LIBRARY variable to hold the full path name of the "library" subdirectory. Note that the installed versions of tclsh, libtcl.a, and libtcl.so have a version number in their names, such as "tclsh8.0" or "libtcl8.0.so"; to use the installed versions, either specify the version number or create a symbolic link (e.g. from "tclsh" to "tclsh8.0").If you have trouble compiling Tcl, read through the file" porting.notes".It contains information that people have provided about changes they hadto make to compile Tcl in various environments. Or, check out thefollowing Web URL: http://www.sunlabs.com/cgi-bin/tcl/info.8.0This is an on-line database of porting information. We make no guaranteesthat this information is accurate, complete, or up-to-date, but you mayfind it useful. If you get Tcl running on a new configuration, we wouldbe happy to receive new information to add to "porting.notes". You canalso make a new entry into the on-line Web database. We're also interestedin hearing how to change the configuration setup so that Tcl compiles outof the box on more platforms.Test suite----------There is a relatively complete test suite for all of the Tcl core inthe subdirectory "tests". To use it just type "make test" in thisdirectory. You should then see a printout of the test files processed.If any errors occur, you'll see a much more substantial printout foreach error. See the README file in the "tests" directory for moreinformation on the test suite. Note: don't run the tests as superuser:this will cause several of them to fail.The Tcl test suite is very sensitive to proper implementation ofANSI C library procedures such as sprintf and sscanf. If the testsuite generates errors, most likely they are due to non-conformanceof your system's ANSI C library; such problems are unlikely toaffect any real applications so it's probably safe to ignore them.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -