Problem building scotty 2.1.0

Bruce Barnett (barnett@grymoire.crd.ge.com)
Mon, 24 Jun 1996 13:52:28 -0400

It is not clear where we are suppose to send bug reports.
I hope this goes to the right spot.

We recently obtained scotty 2.1.0. We had a lot of dificulties
installing it. We finally got it working, but I'd like to make a
request for improved documentation and installation procedures,
especially to those who are new to TCL/TK.

This is what happened:

We were using a Solaris 2.5 system, using GCC.

We build installed tcl7.5 using
configure --prefix=/proj/tcltk --enable-gcc

We build/installed tk4.1, using
CC=gcc;export CC
CPP="gcc -E";export CPP
PATH=/usr/ccs/bin:$PATH;export PATH
configure --prefix=/proj/tcltk --enable-gcc

We then tried to build scotty, using
CC=gcc;export CC
CPP="gcc -E";export CPP
PATH=/usr/ccs/bin:$PATH;export PATH
configure --prefix=/proj/tcltk --enable-gcc --with-tcl-config=/proj/tcltk/lib --with-tk-config=/proj/tcltk/lib

When we did a make install, we got:
Installing scotty2.1.0 and tnm2.1.0.so
Installing ./../tnm/library/README
Installing ./../tnm/library/dialog.tcl
Installing ./../tnm/library/output.tcl
Installing ./../tnm/library/snmp.tcl
Installing ./../tnm/library/ifload.tcl
Installing ./../tnm/library/obsolete.tcl
Installing ./../tnm/library/init.tcl
initialization failed: can't find package scotty 2.1.0
This usually means that you have to define the TCLLIBPATH environment
variable to point to the tnm library directory or you have to include
the path to the tnm library directory in Tcl's auto_path variable.
*** Error code 1
make: Fatal error: Command failed for target `tnm-install-library'

This message comes from scotty.c. The installation script
is executing tnm-install-library in the make file, which does:

@echo 'cd $(TNM_INSTALL_DIR)/library; auto_mkindex . *.tcl' | \
./scotty

Apparently scotty needs scotty to install scotty. Therefore we have to
install scotty before we can install scotty. This is very
frustrating. We are trying to figure out how to work around this.

The error comes from the Tcl_PkgRequire call, which checks to see
if the scotty package has been added. That's what we are
trying to do.

We tried to modify the init.tcl file, adding the right
directory to the auto_path variable, but when we did, tcl
complained that it no longer had a valid init.tcl file. We looked for
the auto_mkindex program, and could not find a file with this name.
It was not clear that auto_mkindex was a command that was
built into tclsh. I kept trying to use find(1) to locate this script.

We tried setting the TCLLIBPATH variable, but that didn't work.
tcl and tk work fine, as far as we can tell. But scotty quit immediately.

Some packages have a special mode that run with a less-than-complete
environment, so they can bookstrap themselves. Scotty apparently
doesn't do this. We spend a long time trying to get this to work.
Is it really necessary to use scotty to install scotty?