Debian Codegraph @

INSTALL

raw
1 This is the GNU Hurd, <http://www.gnu.org/software/hurd/>. Welcome.
2
3 The following text has not been updated in a long time. Beware.
4
5 This file contains instructions for compiling and installing the Hurd
6 from your existing Hurd system.
7
8 If you are running any other kind of system whatsoever, these
9 instructions will *NOT* be sufficient. The file INSTALL-cross
10 contains some past instructions for doing so, but it's too much
11 trouble to maintain them and make them easier. Your best bet is to
12 start with a running Hurd system already.
13
14 The Hurd and the GNU C Library each need each other in order to
15 compile. If you are installing both, please follow the directions
16 "Building the Hurd and libc together". If the C library version you
17 want to use is already installed, and you know both it and this
18 version of the Hurd will interoperate together, then see the
19 instructions "Bulding the Hurd by itself" below.
20
21 The Hurd version 0.2 has been verified to work with versions 2.0.3 and
22 2.0.4 of the GNU C library. (But note that version 2.0.3 has some
23 easily-fixed bugs in compilation for the i386-gnu target.)
24
25 Bug reports for the GNU Hurd should be sent to the mailing list
26 `[email protected]'. Please do not send requests for
27 assistance in installing or using the software to that address.
28 Instead, send requests for assistance to the mailing list
29 `[email protected]'. You can join these lists by sending a
30 request to `[email protected]' or
31 `[email protected]' respectively.
32
33
34 Configuring the Hurd
35 ====================
36
37 The `configure' shell script attempts to guess correct values for
38 various system-dependent variables used during compilation. It uses
39 those values to create a `Makefile' in each directory of the package.
40 It may also create one or more `.h' files containing system-dependent
41 definitions. Finally, it creates a shell script `config.status' that
42 you can run in the future to recreate the current configuration, a
43 file `config.cache' that saves the results of its tests to speed up
44 reconfiguring, and a file `config.log' containing compiler output
45 (useful mainly for debugging `configure').
46
47 If you need to do unusual things to compile the package, please try to
48 figure out how `configure' could check whether to do them, and mail
49 diffs or instructions to the address given in the `README' so they can
50 be considered for the next release. If at some point `config.cache'
51 contains results you don't want to keep, you may remove or edit it.
52
53 The file `configure.ac' is used to create `configure' by a program
54 called `autoconf'. You only need `configure.ac' if you want to change
55 it or regenerate `configure' using a newer version of `autoconf'.
56
57
58 Building the Hurd, GNUmach, and libc together
59 ===========================================
60
61 1. Configure GNUmach.
62
63 3. Do `make install' in <mach4-build>/mig. ONLY.
64
65 4. Do `make install' in <mach4-build>/include. ONLY.
66 This may have installed an include file called mach_init.h. If so,
67 delete it; you want to use the one that libc will install, and if
68 this file exists, libc might not install its version.
69
70 5. Configure the Hurd with `configure'.
71
72 6. In the Hurd directory, type `make install-headers no_deps=t'.
73
74 7. Configure libc.
75
76 8. `make install' libc.
77
78 9. `make' and `make install' Hurd.
79
80 10. Do `make -r kernel' in mach4/kernel.
81
82 11. Copy mach4/kernel to /boot/kernel.
83
84
85 Building the Hurd and libc together
86 ===================================
87
88 1. `cd' to the directory containing the Hurd's source code and type
89 `./configure' to configure the Hurd.
90
91 2. Type `make install-headers no_deps=t' to install the Hurd's header files.
92
93 3. Follow the instructions in the GNU C Library for configuring and
94 installing GNU libc.
95
96 4. Return to the directory containing the Hurd's source code and type
97 `make' to compile the Hurd.
98
99 5. Type `make install' to install the Hurd.
100
101
102 Building the Hurd by itself
103 ===========================
104
105 The simplest way to compile this package is:
106
107 1. `cd' to the directory containing the package's source code and type
108 `./configure' to configure the package for your system. If you're
109 using `csh' on an old version of System V, you might need to type
110 `sh ./configure' instead to prevent `csh' from trying to execute
111 `configure' itself.
112
113 Running `configure' takes awhile. While running, it prints some
114 messages telling which features it is checking for.
115
116 2. Type `make' to compile the package.
117
118 3. Type `make install' to install the programs and any data files and
119 documentation.
120
121 4. You can remove the program binaries and object files from the
122 source code directory by typing `make clean'. To also remove the
123 files that `configure' created (so you can compile the package for
124 a different kind of computer), type `make distclean'. There is
125 also a `make maintainer-clean' target, but that is intended mainly
126 for the package's developers. If you use it, you may have to get
127 all sorts of other programs in order to regenerate files that came
128 with the distribution.
129
130 Compiling For Multiple Architectures
131 ====================================
132
133 You can compile the package for more than one kind of computer at the
134 same time, by placing the object files for each architecture in their
135 own directory. `cd' to the directory where you want the object files
136 and executables to go and run the `configure' script. `configure'
137 automatically checks for the source code in the directory that
138 `configure' is in and in `..'.
139
140 Installation Names
141 ==================
142
143 By default, `make install' will install the package's files in `/bin',
144 `/man', etc. You can specify an installation prefix by giving
145 `configure' the option `--prefix=PATH'.
146
147 You can specify separate installation prefixes for
148 architecture-specific files and architecture-independent files. If
149 you give `configure' the option `--exec-prefix=PATH', the package will
150 use PATH as the prefix for installing programs and libraries.
151 Documentation and other data files will still use the regular prefix.
152
153 In addition, if you use an unusual directory layout you can give
154 options like `--bindir=PATH' to specify different values for
155 particular kinds of files. Run `configure --help' for a list of the
156 directories you can set and what kinds of files go in them.
157
158 If the package supports it, you can cause programs to be installed
159 with an extra prefix or suffix on their names by giving `configure'
160 the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
161
162 Please note, however, that the Hurd knows where it is located in the
163 filesystem. If you have installed it in an unusual location, the
164 system might not work properly, or at all. The chief utility of these
165 options for the Hurd is to allow you to "install" in some alternate
166 location, and then copy these to the actual root filesystem later.
167
168 Sharing Defaults
169 ================
170
171 If you want to set default values for `configure' scripts to share,
172 you can create a site shell script called `config.site' that gives
173 default values for variables like `CC', `cache_file', and `prefix'.
174 `configure' looks for `PREFIX/share/config.site' if it exists, then
175 `PREFIX/etc/config.site' if it exists. Or, you can set the
176 `CONFIG_SITE' environment variable to the location of the site script.
177 A warning: not all `configure' scripts look for a site script.
178
179 Operation Controls
180 ==================
181
182 `configure' recognizes the following options to control how it
183 operates.
184
185 `--cache-file=FILE'
186 Use and save the results of the tests in FILE instead of
187 `./config.cache'. Set FILE to `/dev/null' to disable caching, for
188 debugging `configure'.
189
190 `--help'
191 Print a summary of the options to `configure', and exit.
192
193 `--quiet'
194 `--silent'
195 `-q'
196 Do not print messages saying which checks are being made.
197
198 `--srcdir=DIR'
199 Look for the package's source code in directory DIR. Usually
200 `configure' can determine that directory automatically.
201
202 `--version'
203 Print the version of Autoconf used to generate the `configure'
204 script, and exit.
205
206 `configure' also accepts some other, not widely useful, options.