home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!ames!agate!agate!adrianho
- From: adrianho@barkley.berkeley.edu (Adrian J Ho)
- Newsgroups: comp.lang.tcl
- Subject: Re: Installing TCL/TK so it can be used for development
- Date: 21 Jul 92 02:19:38
- Organization: University of California, Berkeley
- Lines: 53
- Message-ID: <ADRIANHO.92Jul21021938@barkley.berkeley.edu>
- References: <1992Jul21.000250.14233@twg.com>
- NNTP-Posting-Host: barkley.berkeley.edu
- In-reply-to: david@twg.com's message of 21 Jul 92 00:02:50 GMT
-
- In article <1992Jul21.000250.14233@twg.com> david@twg.com (David Herron) writes:
- >One of the problems with TCL/TK is there are no `make install' tags
- >in the Makefile's. Therefore there is little guidance as to what the
- >Official Stand on installing things are.
-
- I doubt there's any, which explains the anarchy...
-
- As another example, this cluster (side note: barkley.berkeley.edu is
- also the main file server for this cluster, so please try to limit
- your FTP sessions to 5PM - 8AM PST) supports machines with several
- different architectures, so I've arranged stuff as follows (with the
- aid of amd, a really spiffy automount daemon):
-
- binaries /usr/local/bin
- object libs /usr/local/lib
- scripts /usr/local/common/lib/{tcl,tk}
- includes /usr/local/include/{tcl,tk}
-
- (The subdirectories containing the system-dependent binaries and
- libraries are hidden by amd, thus presenting a uniform hierarchy for
- everything from a SPARC IPC to an IBM RS6000. I lump both Tcl and
- Extended Tcl stuff together, since I view TclX as simply an extension
- to the main Tcl distribution.)
-
- >It's not a big deal, really. Just edit the Makefile to include more -I flags
- >and TK already knows where its own $tk_library is, so it can find its own
- >library files. Rather, for me it isn't a big deal. But this *is* one more
- >hassle to getting these things installed. It *is* a place where there is
- >room for making incompatible decisions. etc.
-
- I'm not too keen on a fixed Tcl/Tk hierarchy, but if I were to
- implement it, I'd do it the way I outlined above, with one exception:
- I'd hang the Tk subdirectories off the Tcl ones, instead of having
- them separate. After all, they are really Tcl extensions. By the
- same token, all other extension packages would have their own
- subdirectories hanging off the Tcl ones.
-
- As for your user base not being well-versed in the methods and
- machinations of cc/make, it would probably be best if you installed
- whatever packages are needed yourself, using whatever arrangement you
- find most convenient. Then, detail that arrangement for your users.
-
- If your user base absolutely *has* to install it themselves, outline
- the proper procedure for installation, and when you write the
- Makefiles, bear in mind that each package needed could be in a
- separate directory, and code accordingly. Adding subdirectory
- specifiers to your #include's (eg. '#include "tcl/tcl.h") is a no-no.
- --
- -----------------------------------------------------------------------------
- Adrian Ho, He With The Embarrassingly *Dead* Passion ** Phone: (510) 642-5563
- System Manager, CFD Lab, ME Dept, UC Berkeley * adrianho@barkley.berkeley.edu
- Maintainer, Tcl/Tk Contrib Archive ---- barkley.berkeley.edu [128.32.142.237]
- Send all Tcl/Tk Archive-related stuff to tcl-archive@barkley.berkeley.edu
-