1 Copyright 2000, International Business Machines Corporation and others.
4 This software has been released under the terms of the IBM Public
5 License. For details, see the LICENSE file in the top-level source
6 directory or online at http://www.openafs.org/dl/license10.html
8 Building OpenAFS on UNIX and LINUX
9 ----------------------------------
11 A. Creating the proper directory structure.
13 Uncompress the source into a directory of your choice. A directory
14 in afs space is also valid. In the directory that you uncompressed the
15 source in, you will only have an src/ directory.
17 1. Pick a system to build for, and note its default AFS sys_name.
18 A directory will be automatically created for binaries to be written
19 into with this name when you build.
22 alpha_dux50 (only tested on 5.0A)
24 i386_linux24 (only tested with 2.4.0 kernel)
26 sgi_65 (file server not tested)
31 alpha_linux_22 (DES does not work, will require one more change to
33 hp_ux110 (No client support, but db servers and utilities work)
34 hp_ux102 (No client support, but db servers and utilities work)
36 2. Using configure in the top level directory, configure for your
37 AFS system type, providing the necessary flags:
38 % ./configure --with-afs-sysname=sun4x_58
40 For Linux systems you need also provide the patch in which your
41 kernel headers for your configured kernel can be found. This should
42 be the path of the directory containing a child directory named
43 "include". So if your version file was
44 /usr/src/linux/include/linux/version.h you would invoke:
45 % ./configure --with-afs-sysname=i386_linux24 --with-linux-kernel-headers=/usr/src/linux
47 Currently you can build for only one Linux kernel at a time,
48 and the version is extracted from the kernel headers in the root
51 Be prepared to provide the switches --enable-obsolete and
52 --enable-insecure if you require the use of any bundled but obsolete
53 or insecure software included with OpenAFS. See README.obsolete and
54 README.insecure for more details.
58 1. Now, you can build OpenAFS.
62 When the build completes, you will have a complete binary tree
63 in the dest directory under the directory named for the sys_name you
64 built for, e.g. sun4x_57/dest or i386_linux22/dest
66 2. As appropriate you can clean up or, if you're using Linux, build for
67 another kernel version:
71 b. To build for another Linux kernel version:
72 the system type defined in step A1.
73 % ./configure --with-afs-sysname=i386_linux22 --with-linux-kernel-headers=/usr/src/linux-2.2.19-i686
76 Your dest tree will now include an additional kernel module for your
77 additional kernel headers. Be aware that if the kernel version string
78 which UTS_RELEASE is defined to in include/linux/version.h matches
79 the last kernel you built for, the previous kernel module will be
83 If you have a problem building this source, you may want to visit
84 http://www.openafs.org/ to see if any problems have been reported
85 or to find out how to get more help.
87 Mailing lists have been set up to help; More details can be found
88 on the openafs.org site.