[tkined] How to install Tcl/Tk8.0 + Scotty/Tkined?

John Stumbles (J.D.Stumbles@reading.ac.uk)
Wed, 27 May 1998 00:25:21 +0100 (BST)

On Tue, 26 May 1998, Doug Hughes wrote:

[about installing Tcl/Tk 8.0 on Solaris 2.5]
> >I tried this (Doug Hughes kinda suggested it too) by using --enable-gcc as
> >well as --enable-shared, but I still get link errors:
>
> Add -lsocket -lnsl to your link flags and those will go away.

OK, thanks a lot, Doug and Allen and Benoit: I've now got Tcl & Tk
compiled and installed <phew!> and I can do Hello World with wish8.0!

I've also got Scotty/Tkined configured (with --enable-gcc and
--enable-shared) and compiled similarly, and installed (`make check`
reports no errors) but I'm not sure how correctly: when I did `make
install` (as root) I couldn't run tkined, I got 'permission denied'
errors because I'd installed as root and some files weren't user-readable:

-rw-rw---- 1 root other 83 May 26 23:15 /usr/local/lib/tnm2.1.9/pkgIndex.tcl
-rw-rw---- 1 root other 89 May 26 23:16 /usr/local/lib/tkined1.4.9/pkgIndex.tcl

(I tried `make uninstall` and then `make install` as an ordinary user but
I couldn't install stuff because I didn't have write permission for
various directories including /usr/local/bin, /usr/local/lib etc. INSTALL
and README are silent about whether I should be root or not to make
install - I guess it's assumed that if I have root access I should have
the sysadmin-type nous to know what files/directories to chmod for others
to access! In my case I'm not sure: I have root access as this is our
network management station and no-one else will spend the time installing
Tcl/Tk, Scotty etc on it for me so they let me loose on it! But I'm more a
network manager than a sysadmin. I imagine there are others in similar
positions...? It would be nice if Tcl/Tk and Scotty/Tkined installed as
easily as, say, Perl and UCD-SNMP which I've installed without hassle.)

Anyway I did change permissions and got tkined to come up, but then I get
an error message (on the xterm from which I launched tkined):

scinfo@sunm2> tkined1.4.9
invalid command name "LoadDefaults"
while executing
"LoadDefaults remote manager"
(file "/usr/local/lib/tkined1.4.9/apps/manager.tcl" line 17)

and I can't find a Tools menu which I seem to recall on a previous version
I had running on an old machine.

Sounds like something's not installed properly, or maybe "LoadDefaults" is
something out of Tcl7.5/Tk4.1 (still referred to in the README) that's not
in 8.0? I'm out of my depth! Can anybody help?

I've just investigated the Tnm examples: mibtree runs (displays a window
on my X display, as did Tkined), but trying to add an agent I get (on the
xterm from which I started the example):

scinfo@sunm2> /usr/local/lib/tnm2.1.9/examples/mibtree
bgerror failed to handle background error.
Original error: invalid command name "Dialog_Request"
Error in bgerror: invalid command name "Dialog_Confirm"

Again I don't know what this means -- have I still got some part of the
installation set up wrongly?

A non-Tk example such as snmpwalk works fine.

tia,

--
John Stumbles                                      j.d.stumbles@reading.ac.uk
Computer Services, University of Reading       http://www.rdg.ac.uk/~suqstmbl 
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
       If a job's worth doing, it'll still be worth doing tomorrow.

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.