- Go to http://sourceforge.net/project/showfiles.php?group_id=10894

- Download msys_mingw8.zip (or newer version)
- Download tcl8416-src.zip
- Download tk8416-src.zip
- Unzip msys_mingw8.zip to whereever you want to keep it (I put mine on the root of the C drive.) It will create a top level directory called msys and a directory tree underneath containing all necessary files for msys/mingw operation. Now start msys by double clicking on msys.bat (in C:\msys) or msys95 for Win95. The following commands are typed into the msys shell.
- Create a src directory somewhere convenient. I used "mkdir /src" (C:\msys\src if looking at it from outside msys.)
- Unzip tcl8416-src.zip into the src directory
- Unzip tk8416-src.zip into the src directory
- mkdir /build
- mkdir /build/tcl
- cd /build/tcl
- /src/tcl8.4.16/win/configure --prefix=/opt/tcl
- make
- make install
- mkdir /build/tk
- cd /build/tk
- /src/tk8.4.16/win/configure --prefix=/opt/tcl --with-tcl=/build/tcl
- make
- make install
#!/usr/bin/env tclsh
See also
Note: ensure that your msys.bat file contains a set PATH= at the top or you will get coredumps.RS 2007-10-11: This advice leads, on my W95 box, to msys dying very soon after startup. Trying to find another way...DKF: I never needed to do that, but then I use XP. (It's much more important to make sure that you install things in a directory without spaces in the name; a lot of the build process is very fragile if you don't follow that...)See Windows 95 for RS's adventures in building 8.5b1 on that unsupported platform...LV Anyone tried this on Vista? Also, have you tried updating to newer versions of the compiler, etc. ? Just curious how robust of an environment mingw is. :Working fine under Windows 7 beta, so vista likely has no problems. Ian S.edit that path typo in third step. I made the tclsh bin under XP inside VMWARE6.03 ACE from tcl856-src. salut
SV (2009-08-10) I would like to add that succesful build of tcl 8.6b1.1 (from cvs) is possible with current mingw (gcc 4.4.0). After some tinkering with content of msys_mingw8.zip and reading some pages on MinGW site it was quite easy.Here follows what I did. Note: my platform is xp sp2 on Linux kvm.1. Abandon use of MinGW-5.1.4.exe automatic installer, it's broken.2. Download from http://sourceforge.net/projects/mingw/files/

mingwrt-3.15.2-mingw32-dev.tar.gz
mingwrt-3.15.2-mingw32-dll.tar.gz
mpfr-2.4.1-mingw32-dll.tar.gz
gmp-4.2.4-mingw32-dll.tar.gz
libiconv-1.13-mingw32-dll-2.tar.gz
pthreads-w32-2.8.0-mingw32-dll.tar.gz
gcc-core-4.4.0-mingw32-dll.tar.gz
gcc-core-4.4.0-mingw32-bin.tar.gz
binutils-2.19.1-mingw32-bin.tar.gz
w32api-3.13-mingw32-dev.tar.gz (this one was corrupted on a few sourceforge mirrors)Unpack all with paths in C:\MinGW. Directory tree should look like this on first level:C:\MinGW
|-- bin
|-- doc
|-- include
|-- info
|-- lib
|-- libexec
|-- man
|-- mingw32
`-- shareThere is conflict on libiberty.a between gcc-core-4.4.0-mingw32-dll.tar.gz and binutils-2.19.1-mingw32-bin.tar.gz, keep that from gcc-core.3. Add 'C:\MinGW\bin' to system PATH variable.4. Download MSYS-1.0.11.exe, run it and answer questions. (However after all I have to manually correct fstab in msys's /etc directory to (note the double backslashes):C:\\MinGW /mingw5. Follow 'only' instruction about unpacking tcl and tk from Mo Dejong on top of this page.6. Then in msys's shell you could run something like this script below or proceed compiling manually.
#!/bin/sh
mkdir -p /src
mkdir -p /opt/tcl
mkdir -p /build/tcl
mkdir -p /build/tk
[ -e /src/tcl ] && {
cd /build/tcl
/src/tcl/win/configure --prefix=/opt/tcl --enable-threads && make && make install && {
[ -e /src/tk ] && {
cd /build/tk
/src/tk/win/configure --prefix=/opt/tcl --enable-threads --with-tcl=/build/tcl \
&& make && make install
}
}
}Note that you can install them to an absolute path like
$ win/configure --prefix=/c/pathnameAnd that you can install Tk/Tcl to their "default" location by using
tcl: $ win/configure --prefix=/mingw tk: $ win/configure --prefix=/mingw --with-tcl=/mingw/libRZ 20110220Things seem to have improved. I installed msys/mingw with the default installer http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/mingw-get-inst/mingw-get-inst-20110211/mingw-get-inst-20110211.exe
and selected also g++, msys, and tools.To test it I got kbs.tcl from http://sourceforge.net/projects/kbskit/
and compiled Tcl, Tk and kbskit with:./kbs.tcl -r install kbskit8.5
