costwish is a complex system, so things can go wrong occasionally :-). Assuming you have got as far as getting the GUI up, here are some possible problems:
application-specific initialization failed: can't find foo/init.tcl; perhaps you need to install Tcl or set your TCL_LIBRARY environment variable?You haven't set the TCL_LIBRARY variable, or it's not pointing to the right place. Note that tcl executables contain a hardcoded pointer to the tcl library (e.g. /usr/local/lib/tcl7.4) which you can/must override by setting TCL_LIBRARY to the appropriate place (e.g. $MYHOME/costwish/lib/tcl7.4)
application-specific initialization failed: can't find foo/init.tcl; perhaps you need to install Tk or set your TK_LIBRARY environment variable?You haven't set the TK_LIBRARY variable, or it's not pointing to the right place. Note that tcl executables contain a hardcoded pointer to the tk library (e.g. /usr/local/lib/tk4.0) which you can/must override by setting TK_LIBRARY to the appropriate place (e.g. $MYHOME/costwish/lib/tk4.0)
application-specific initialization failed: can't find foo/tix/Init.tcl; perhaps you need to install widget or set your TIX_LIBRARY environment variable?You haven't set the TIX_LIBRARY variable, or it's not pointing to the right place. It should be set to something like $MYHOME/costwish/lib/tix) by running $MYHOME/costwish/setup.csh. If this fails, you'll have to set TIX_LIBRARY appropriately.
Error: couldn't read file "foo/costinit.tcl": No such file or directoryYou haven't set the COSTLIB variable, or it's not pointing to the right place. Run setup.csh to point to somewhere like $MYHOME/costwish/lib/cost. If this fails, you'll have to set COSTLIB appropriately.
. There are 230+ sgmls errors and the commonest are listed in sgmlerr.html. Some are clear indications that there is something wrong with the setup.
sgmls: SGML error at foo.sgm, line 1 in declaration parameter 2: "PUBLIC" or "SYSTEM" required; declaration terminatedAn SGML document must resolve the document type either through a PUBLIC or SYSTEM identifier. Either this has been omitted or misspelt.
sgmls: Error at foo.sgm, line 1 in declaration parameter n: Could not find external document type "BAR"The DOCTYPE statement declares that the document is of type FOO and attempts to resolve this through a PUBLIC or SYSTEM identifier but fails. If 'PUBLIC' this is either because the FPI cannot be found in any catalog or because the file it points to does not exist. If 'SYSTEM' it is because the local file (e.g. foo.dtd) does not exist, or its directory cannot be found. (The use of SGML_PATH by sgmls is quite complex and easy to get wrong!). Try editing the document to give the full pathname of the DTD. This is a poor permanent solution, but if it works, try including it via the catalog or amending SGML_PATH.
Peter Murray-Rust
April 1996