Debian Codegraph @

doc/INSTALL

raw
1 $Id: INSTALL,v 1.4 2002/04/26 13:33:33 jgoerzen Exp $
2
3 Installation Instructions for Unix Gopher.
4 ------------------------------------------
5
6 PLEASE NOTE: If you have any problems, please read the PLATFORMS file! In
7 fact, you should read it for hints BEFORE reading this file.
8
9 Almost all configuration is now done using the 'configure' shell
10 script at the top level of the distribution. To get a list of options
11 that configure supports, type the following command
12
13 configure --help
14
15 Parameters that used to be hand edited into Makefile.config can now be
16 set with command line switches. For full text indexing consult the
17 section at the end of this document.
18
19
20
21 Basic Installation
22 ==================
23
24 The `configure' shell script attempts to guess correct values for
25 various system-dependent variables used during compilation. It uses
26 those values to create a `Makefile' in each directory of the package.
27 It may also create one or more `.h' files containing system-dependent
28 definitions. Finally, it creates a shell script `config.status' that
29 you can run in the future to recreate the current configuration, a file
30 `config.cache' that saves the results of its tests to speed up
31 reconfiguring, and a file `config.log' containing compiler output
32 (useful mainly for debugging `configure').
33
34 If you need to do unusual things to compile the package, please try
35 to figure out how `configure' could check whether to do them, and mail
36 diffs or instructions to the address given in the `README' so they can
37 be considered for the next release. If at some point `config.cache'
38 contains results you don't want to keep, you may remove or edit it.
39
40 The file `configure.in' is used to create `configure' by a program
41 called `autoconf'. You only need `configure.in' if you want to change
42 it or regenerate `configure' using a newer version of `autoconf'.
43
44 The simplest way to compile this package is:
45
46 1. `cd' to the directory containing the package's source code and type
47 `./configure' to configure the package for your system. If you're
48 using `csh' on an old version of System V, you might need to type
49 `sh ./configure' instead to prevent `csh' from trying to execute
50 `configure' itself.
51
52 Running `configure' takes awhile. While running, it prints some
53 messages telling which features it is checking for.
54
55 2. Type `make' to compile the package.
56
57 3. Optionally, type `make check' to run any self-tests that come with
58 the package.
59
60 4. Type `make install' to install the programs and any data files and
61 documentation.
62
63 5. You can remove the program binaries and object files from the
64 source code directory by typing `make clean'. To also remove the
65 files that `configure' created (so you can compile the package for
66 a different kind of computer), type `make distclean'. There is
67 also a `make maintainer-clean' target, but that is intended mainly
68 for the package's developers. If you use it, you may have to get
69 all sorts of other programs in order to regenerate files that came
70 with the distribution.
71
72 Compilers and Options
73 =====================
74
75 Some systems require unusual options for compilation or linking that
76 the `configure' script does not know about. You can give `configure'
77 initial values for variables by setting them in the environment. Using
78 a Bourne-compatible shell, you can do that on the command line like
79 this:
80 CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
81
82 Or on systems that have the `env' program, you can do it like this:
83 env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
84
85
86 Compiling For Multiple Architectures
87 ====================================
88
89 You can compile the package for more than one kind of computer at the
90 same time, by placing the object files for each architecture in their
91 own directory. To do this, you must use a version of `make' that
92 supports the `VPATH' variable, such as GNU `make'. `cd' to the
93 directory where you want the object files and executables to go and run
94 the `configure' script. `configure' automatically checks for the
95 source code in the directory that `configure' is in and in `..'.
96
97 If you have to use a `make' that does not supports the `VPATH'
98 variable, you have to compile the package for one architecture at a time
99 in the source code directory. After you have installed the package for
100 one architecture, use `make distclean' before reconfiguring for another
101 architecture.
102
103 Installation Names
104 ==================
105
106 By default, `make install' will install the package's files in
107 `/usr/local/bin', `/usr/local/man', etc. You can specify an
108 installation prefix other than `/usr/local' by giving `configure' the
109 option `--prefix=PATH'.
110
111 You can specify separate installation prefixes for
112 architecture-specific files and architecture-independent files. If you
113 give `configure' the option `--exec-prefix=PATH', the package will use
114 PATH as the prefix for installing programs and libraries.
115 Documentation and other data files will still use the regular prefix.
116
117 In addition, if you use an unusual directory layout you can give
118 options like `--bindir=PATH' to specify different values for particular
119 kinds of files. Run `configure --help' for a list of the directories
120 you can set and what kinds of files go in them.
121
122 If the package supports it, you can cause programs to be installed
123 with an extra prefix or suffix on their names by giving `configure' the
124 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
125
126
127 Optional Features
128 =================
129
130 Some packages pay attention to `--enable-FEATURE' options to
131 `configure', where FEATURE indicates an optional part of the package.
132 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
133 is something like `gnu-as' or `x' (for the X Window System). The
134 `README' should mention any `--enable-' and `--with-' options that the
135 package recognizes.
136
137 For packages that use the X Window System, `configure' can usually
138 find the X include and library files automatically, but if it doesn't,
139 you can use the `configure' options `--x-includes=DIR' and
140 `--x-libraries=DIR' to specify their locations.
141
142
143
144 ----------------------------------------------------------------------
145
146
147 Setting up a multi-lingual gopher client
148 ----------------------------------------
149
150 If you have any users who don't speak English fluently, you may want to
151 check out the gopher client's multiple language support. To do this you
152 need to turn on the -DGINTERNATIONAL option in the Makefile.config before
153 compiling, and then follow the directions in the gopher/locales/README to
154 install the language data files for the client.
155
156
157 Installing external programs for the gopher client
158 --------------------------------------------------
159
160 The gopher client depends on certain external programs for some
161 functionality. Most of these will be present on any good unix system.
162 However you may need to install the following:
163
164 For tn3270 connections you'll need tn3270 or a version of telnet
165 that understands tn3270 control streams.
166
167 For downloading in the client you'll need two distributions, kermit
168 and zmodem. The binaries are "kermit", "sz", "sb", and "sx".
169
170 To view metamail documents you'll need mm.tar.Z available from
171 thumper.bellcore.com.
172
173 To view graphics you'll X windows and xloadimage or xv or any other
174 generic graphics program.
175
176 To listen to sounds you can use the "play" command on SunOS or the
177 play command in the misc directory for the NeXT
178
179
180 Full Text Indexing Setup for NeXTs (NeXTos 2.0, 2.1, 2.2)
181 ---------------------------------------------------------
182
183 First get the libtext and btree libraries. (Available as a separate
184 tar file called NeXTtext.tar.Z). The files libbtree.a and libtext.a
185 are in this tar file, along with two directories "btree" and "text".
186 Copy the library (.a) files to /usr/local/lib and type
187
188 ranlib /usr/local/lib/libbtree.a
189 ranlib /usr/local/lib/libtext.a
190
191 Then copy the directories btree and text into /usr/include
192
193
194 Full Text Indexing Setup for WAIS
195 ---------------------------------
196
197 First get the wais distribution. If you don't have wais, ftp to
198 "gopher.boombox.micro.umn.edu" and get
199 /pub/gopher/Unix/freeWAIS-sf-2.0.tar.gz
200
201 Untar this and edit the makefiles appropriate for your system.
202
203 After you untar the distribution, go into the top level WAIS directory
204 and make the distribution. Refer to the instructions in the WAIS
205 distribution.
206
207 Now go to the top level of the gopher distribution and do the following:
208
209 % cd {GopherSrc}
210 % ln -s {WaisTop} wais
211
212 If you've compiled an older version of gopherd, make sure to type
213 "make clean" first.
214