X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=doc%2Fxml%2FQuickStartUnix%2Fauqbg008.xml;h=173bc21da4fad50344aeb8b2b4d238ecb4fbf209;hp=bd9f7efc6edd69e5a33dfd89276c5f6e9b078a2f;hb=74585aa5003cfb42103ac8d6059137eebd2005e0;hpb=71a1d8a0256323754f8bc994c1a67eca1dc5b84f diff --git a/doc/xml/QuickStartUnix/auqbg008.xml b/doc/xml/QuickStartUnix/auqbg008.xml index bd9f7ef..173bc21 100644 --- a/doc/xml/QuickStartUnix/auqbg008.xml +++ b/doc/xml/QuickStartUnix/auqbg008.xml @@ -1,21 +1,21 @@ - Appendix A. Building AFS from Source Code + Appendix A. Building OpenAFS from Source Code - This chapter describes how to build AFS from source code. + This chapter describes how to build OpenAFS from source code. storing - AFS source in volume + OpenAFS source in volume creating volume - for AFS source + for OpenAFS source volume - for AFS source + for OpenAFS source source (AFS) @@ -23,13 +23,15 @@ files - AFS source + OpenAFS source Loading the Source Files - Working on an AFS client machine, perform these steps to load the AFS source tree from the AFS Source Distribution. + Working on an AFS client machine, login to AFS as a + administrative user, then perform these steps to load the OpenAFS + source tree from the OpenAFS Source Distribution. commands @@ -66,7 +68,7 @@ - Create and mount a volume for housing the AFS source tree. These instructions name the volume Create and mount a volume for housing the OpenAFS source tree. These instructions name the volume src.afs and mount it at the /afs/cellname/afs/src directory. @@ -88,22 +90,34 @@ - On the local /cdrom directory, mount the CD-ROM that contains the AFS source files. - For instructions on mounting CD-ROMs (either locally or remotely via NFS), consult the operating system documentation. + Download the latest stable OpenAFS source distribution + (openafs-src.X.Y.Z.tar.gz) + from openafs.org + to the local /tmp directory. - copying + downloading - source files from CD-ROM - - CD-ROM + source files from openafs.org + + + - copying source files from - + + In the local /tmp directory, unpack the source archive. + # cd /tmp + # gzip -dc openafs-src-X.Y.Z.tar.gz | tar xvf - + + + unpacking + + source files from the archive + + - Copy the source files from the CD-ROM into the newly created volume. - # cd /cdrom/src + Copy the source files from the unpacked archive into the newly created volume. + # cd /tmp/openafs-X.Y.Z # cp -rp * /afs/.cellname/afs/src @@ -127,10 +141,9 @@ - Compiling AFS Binaries Using the washtool Program + Compiling OpenAFS Binaries Using Configure and Make - The AFS distribution includes the washtool program for managing a hierarchy of software - development projects. The program builds project trees for program editing, compilation, and installation. + The OpenAFS distribution uses the autoconf program and Makefiles for compiling the OpenAFS software. Create a subdirectory under the /afs/.cellname/afs directory for each system type for which you will build AFS binaries. Creating and mounting a @@ -205,40 +218,23 @@ commands - washtool - - washtool command + - + + - For each system type you plan to build, copy the binary for the washtool program to - the directory specified in the AFS Makefile, which is /afs/cellname/afs/sysname/dest/bin. If you prefer to - store the program in a different directory, you can use the WASHTOOL variable on the make - command line as described in Step 6. - - If there is a volume that houses the AFS binaries for each system type (as recommended), the conventional location - for the washtool binary is the /afs/cellname/sysname/usr/afsws/bin directory. Use - the following instruction to copy it. - - - # cd /afs/cellname/sysname/usr/afsws/bin - # cp washtool /afs/.cellname/afs/sysname/dest/bin - - - Otherwise, mount the (binary) AFS CD-ROM for this system type on the local /cdrom - directory, and copy the washtool binary directly from it. - + For each system type you plan to build, run the following commands on a machine of that system type: - # cd /cdrom/sysname/bin - # cp washtool /afs/.cellname/afs/sysname/dest/bin + # cd /afs/cellname/sysname + # ../src/configure + # make + # make dest @@ -248,46 +244,26 @@ - make command + configure command - variables - - WASHTOOL + make command - variables - - SYS_NAME for washtool command - + commands - - SYS_NAME variable for washtool command + configure - - WASHTOOL variable - Working in the /afs/.cellname/afs directory on a machine of the system type for which you are building AFS, issue the make install - command. Set the SYS_NAME variable to the appropriate system type name. - - If the washtool binary is not in the conventional directory (/afs/cellname/afs/sysname/dest/bin), set the - WASHTOOL variable to the alternate full pathname of the binary. - - - # cd /afs/.cellname/afs - # make SYS_NAME=sysname [WASHTOOL=alternate_washtool_directory] install - + command.