Scotty installation misery

Richard Achmatowicz (Richard.Achmatowicz@newcastle.ac.uk)
Fri, 21 Jun 1996 23:20:59 +0100 (BST)

Hi

I'm *trying* to install scotty on SunOS 4.1.3.

1) I've met the -fPIC problem and, instead of blasting a perfectly good
SunOS distribution, changed the scotty Makefile to read -fpic instead.

The SunOS documentation states, concerning the use of the -pic option,
that "in the (presumably rare) event the tables require a larger size,
the compiler can be coerced into generating code sequences that permit
larger linkage table entries with the -PIC option".

Is there are proven need to use -PIC with these shared libraries?

2) Of course, I also hit the well-known problem:

sledwick-373> make install
Making directory /export/home/n5800190/tcl/lib/tnm2.1.0
Installing scotty2.1.0 and tnm2.1.0.so
Making directory /export/home/n5800190/tcl/lib/tnm2.1.0/library
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.
make: *** [tnm-install-library] Error 1

In looking at the mailing list comments concerning this problem, I
haven't seen a clear fix described.

The error message tells me to point to the 'trm library directory', but as
the error occurs part way through an installation, which trm library
directory is being referred to? The one for the target installation?
The one where the libraries reside before installation? (I've tried both).

Can anyone (who knows Tcl better than I do, which is very easy to achieve)
tell me which *.tcl files or libraries the statement in init.tcl:

packages require scotty 2.1.0

is looking for?

Many thanks.

Richard

-- 
Richard Achmatowicz			Internet: Richard.Achmatowicz@ncl.ac.uk
Dept. of Computing Science		Telephone: +44 191-222 6157
University Of Newcastle			Fax: +44 191-222 8232

Claremont Tower Newcastle-Upon-Tyne NE1 7RU United Kingdom