Building Tcl/Tk 8.2.3 for SGI
This page contains my notes on building Tcl/Tk and the packages we commonly
use for Tcl/Tk at the NIST Center for Neutron Research. I did this on
an SGI Octane running 6.5 using the standard SGI compiler. Also included
are some notes for where I built packages for use with TclPro.
2.1 Tcl/Tk
cd /usr/tcltk
gunzip < /mnt/inbox/tcl8.2.3.tar.gz | tar xvf -
cd tcl8.2.3/unix/
./configure --prefix=/usr/tcltk/tcl823
make
lots of warning messages!
make install
cd /usr/tcltk
gunzip < /mnt/inbox/tk8.2.3.tar.gz | tar xvf -
cd tk8.2.3/unix/
./configure --prefix=/usr/tcltk/tcl823
make
make install
2.2 BLT
cd /usr/tcltk
gunzip < /mnt/inbox/BLT2.4n.tar.gz | tar xvf -
cd blt2.4n/
patch -p5 < /mnt/inbox/BLT2.4n_patch
./configure --prefix=/usr/tcltk/tcl823 --enable-shared
make
make install
cp /mnt/inbox/BLT2.4_pkgIndex.tcl /usr/tcltk/tcl823/lib/blt2.4/pkgIndex.tcl
2.3 Tix
cd /usr/tcltk
gunzip < /mnt/inbox/Tix4.1.0.007.tar.gz | tar xvf -
ln -s tcl8.2.3 tcl8.2
ln -s tk8.2.3 tk8.2
./configure --prefix=/usr/tcltk/tcl823 --enable-shared
cd tk8.0/
./configure --prefix=/usr/tcltk/tcl823 --enable-shared
cd ..
make
make install
Building BLT for tclpro
cd /usr/tcltk
cd blt2.4n/
cp /usr/tcltk/tcl823/lib/*.sh .
edit tclConfig.sh and tkConfig.sh
change TCL_LIB_SPEC='-L/usr/tcltk/TclPro1.3/irix-mips/lib -ltcl8.2${TCL_DBGX}'
and TK_LIB_SPEC='-L/usr/tcltk/TclPro1.3/irix-mips/lib -ltk8.2'
rm src/bltwish src/libBLT.a src/shared/libBLT24.so
./configure --prefix=/usr/tcltk/TclPro1.3/ --exec_prefix=/usr/tcltk/TclPro1.3/ --enable-shared --with-cc=cc --with-tcl=.
make
make install
cp /mnt/inbox/BLT2.4_pkgIndex.tcl /usr/tcltk/TclPro1.3/lib/blt2.4/pkgIndex.tcl
ln -s /usr/tcltk/TclPro1.3/irix-mips/lib/libBLT24.so /usr/tcltk/TclPro1.3/lib/libBLT24.so
Building Tix for tclpro
cd /usr/tcltk
gnutar xvzf /mnt/inbox/Tix4.1.0.007.tar.gz
cp blt2.4n/tclConfig.sh blt2.4n/tkConfig.sh Tix4.1.0.007/unix/
cd Tix4.1.0.007/unix
cp /usr/tcltk/tcl823/lib/*.sh .
edit TCL_LIB_SPEC TK_LIB_SPEC, TCL_BUILD_LIB_SPEC, TK_BUILD_LIB_SPEC references to /usr/tcltk/TclPro1.3/irix-mips/lib
./configure --prefix=/usr/tcltk/TclPro1.3/ --enable-shared --with-cc=cc --with-tcl=/usr/tcltk/Tix4.1.0.007/ --with-tk=/usr/tcltk/Tix4.1.0.007/
cd tk8.0
rm tixwish libtix*
ln -s /usr/tcltk/TclPro1.3/irix-mips/lib/libtk8.2.* .
ln -s /usr/tcltk/TclPro1.3/irix-mips/lib/libtcl8.2.* .
./configure --prefix=/usr/tcltk/TclPro1.3/ --enable-shared --with-cc=cc --with-tcl=/usr/tcltk/Tix4.1.0.007/ --with-tk=/usr/tcltk/Tix4.1.0.007/
make
cd ..
make install
Neither the author nor the U.S. Government makes any warranty, expressed
or implied, or assumes any liability or responsibility for the use of this
information or the software described here. Brand names cited here are
used for identification purposes and do not consitute an endorsement by
NIST.
Comments, corrections or questions: crystal@NIST.gov