1 2Mpexpr INSTALL 3 4 51. You will need to have Tcl already installed. See the README 6 for where to get them. You should have compiled, (or at least 7 configured) Tcl with '--enable-shared'. 8 9 102. Run "./configure". 11 12 You should specify the same --prefix and --exec-prefix as you did when 13 you configured Tcl. The defaults are /usr/local. 14 15 ./configure --prefix=/usr/local --exec-prefix=/usr/local 16 17 18 Configure will use the --prefix= --exec-prefix= to 19 find the Tcl library and config files (lib/tclX.Y and lib/tclConfig.sh). 20 21 ./configure has three options, 22 --disable-shared 23 --with-tclx 24 --with-tk 25 26 27 When building the Mpexpr extension, the default is to build a shared 28 library that can be loaded using 'package require Mpexpr'. 29 Tcl MUST ALSO have been configured with '--enable-shared'. The configure 30 script and Makefile uses information from the tclConfig.sh file that 31 deals with compiling and linking shared libraries. 32 33 You can build a static library and executable by specifing 34 '--disable-shared' as a configure option. If you noramlly use 35 Extended Tcl, you can build an executable with Tcl, TclX, and Mpexpr 36 by using the configure option '--with-tclx'. 37 You can also build wish and wishx interpreters using the configure 38 option '--with-tk'. 39 40 413. Run "make" 42 43 This will compile and build Mpexpr, either as a shared library or 44 static library and executables. 45 46 Again, your Tcl installation MUST HAVE BEEN BUILT with '--enable-shared' 47 if you have configured to build the shared library. 48 49 504. Run "make test" 51 52 This will run through test scripts for mpexpr and mpformat. 53 54 555. Run "make install". 56 57 This step will install Mpexpr shared library and pkgIndex.tcl or 58 static libraries and executables. 59 If you built the shared library, you can use Mpexpr in your Tcl 60 programs by using the 'package require Mpexpr' command. 61 62 63Tom Poindexter 64tpoindex@gmail.com 65 66