X-Git-Url: http://git.openafs.org/?p=openafs-wiki.git;a=blobdiff_plain;f=AFSLore%2FHowToBuildOpenAFSFromSource.mdwn;h=d4a8ebfc7e2406c294c0906026d1b3ad52ffa266;hp=5414fb51e50d32bf59695e55e258ca9b9ab5965d;hb=d0e4969b45d178e76f0ee6aa19cd13afadae6a8d;hpb=68e7d2e2362f2be5c7629be81b10f4f531e70dc5 diff --git a/AFSLore/HowToBuildOpenAFSFromSource.mdwn b/AFSLore/HowToBuildOpenAFSFromSource.mdwn index 5414fb5..d4a8ebf 100644 --- a/AFSLore/HowToBuildOpenAFSFromSource.mdwn +++ b/AFSLore/HowToBuildOpenAFSFromSource.mdwn @@ -1,24 +1,87 @@ This is a guide on how to build [[OpenAFS]] from source code. Note that [[OpenAFS]] pre-built binaries are available on the [[OpenAFS]] site and are available as prebuilt packages for many platforms. These instructions may be useful for you if you need to build [[OpenAFS]] from source. -### Platform Requirements +### Requirements -(this is where we list requirements like krb) +Tools -### Development Tools Requirements +- cvs client +- autoconf +- automake +- perl 5.6 +- gcc (versions?) +- GNU make +- lex/yacc (flex/bison) -(list the required tools needed to build openafs) +Libraries -### Getting the Source Code +- libc +- kerberos, optional, but recommended +- ncurses +- kernel headers -(show how to get the code from the openafs cvs repo. list most important branches) +The Kerberos development libraries are required if you are going to build with Kerberos 5 support. The [[OpenAFS]] legacy kaserver is deprecated. + +If you are building on Debian, you can get the required software with the following apt-get commands. + + apt-get install cvs autoconf automake make gcc flex bison + apt-get install libc6-dev libkrb5-dev libncurses5-dev linux-headers-$(uname -r) + +### Getting the Source Code from CVS + +You can get development snapshots from the [[OpenAFS]] CVS repository . The CVS tree may not always have code which can currently be built. While every effort is made to keep the head of the tree buildable, you may at any time find yourself between commits and hence have a tree which does not build, or worse, causes more serious problems. + +First you need to run cvs login. This step is normally only done once. A ~/.cvspass file will be created for additional checkouts. + + cvs -d :pserver:anonymous@cvs.openafs.org:/cvs login + password is anonymous + +To check out the 1.4 branch: + + cvs -d :pserver:anonymous@cvs.openafs.org:/cvs co -r openafs-stable-1_4_x openafs + +To check out the 1.5 development branch: + + cvs -d :pserver:anonymous@cvs.openafs.org:/cvs co -r openafs-devel-1_5_x openafs + +See the CVSWeb interface at to see a full list of available branches and tags + +CVS snapshots do not include files generated by autoconf; You can run regen.sh at the top level to create these files. You will need to have autoconf and automake installed on your system. ### Building the Binaries -(show how to run regen, configure, give guidance on config parameters +#### Transarc Paths + +By convention, [[OpenAFS]] server binaries and related files are located in /usr/afs, and client binaries and related files are located in /usr/vice. These are known as Transarc paths, so called because that is is the convention used by Transarc, the company that first commercized AFS. + +To build [[OpenAFS]] with Kerberos 5 support and the traditional, Transarc paths: + + cd openafs + ./regen.sh + ./configure --enable-transarc-paths --with-krb5-conf=(full path to krb5-config script) + make + make dest + +If all goes well, then the binaries are located in a platform sub-directory, the name of which is platform specific, for example 'i386\_linux26/dest'. + +The 'make install' command does not work with Transarc paths. You will have to manually copy the binaries into place after running make dest. For more information, see the Quick Start Guide for Unix on the [[OpenAFS]] documentation page. + + # cp -r i386_linux26/dest/root.client/usr/vice/etc/modload /usr/vice/etc + # cp i386_linux26/dest/root.client/usr/vice/etc/afsd /usr/vice/etc + # cp -r i386_linux26/dest/bin /usr/afsws + # cp -r i386_linux26/dest/etc /usr/afsws + # cp -r i386_linux26/dest/include /usr/afsws + # cp -r i386_linux26/dest/lib /usr/afsws + # cp -r i386_linux26/dest/root.server/usr/afs/* /usr/afs + +#### Custom Paths -### Installing the Binaries +To build [[OpenAFS]] with Kerberos 5 support, and with a custom install path, -(show how to install the binaries. explain the paths...) + cd openafs + ./regen.sh + ./configure --prefix=/usr/local/openafs --with-krb5-conf=(full path to krb5-config script) + make + sudo make install ### Initial testing