maint: revert last change: we're not ready for "local" in scripts, yet
[coreutils.git] / README-prereq
blobf0504109cf68c6138aa75ee414d511b58829da08
1 Detailed below are concrete examples for
2 getting the prerequisites for particular systems.
4 - GNU/Linux - fedora
6   This shows the steps for getting the tools required to build coreutils
7   on a Fedora 8 system. We try to use official packages where possible.
8   The three methods described for making these required packages available
9   should help clarify build requirements on GNU/Linux systems.
11   1. Make sure the official distro git package is installed:
12     # yum install git
14   2. The distro autoconf is too old, but there is a newer one available
15   so we rebuild that and make it available to the full system:
16     # yum install emacs #autoconf build requires emacs (20MB)
17     # rpmbuild --rebuild http://download.fedora.redhat.com/pub/fedora/linux/development/source/SRPMS/autoconf-2.63-1.fc10.src.rpm
18     # rpm -Uvh /usr/src/redhat/RPMS/noarch/autoconf-2.63-1.fc8.noarch.rpm
19   Note Autoconf 2.62 or newer is needed to build automake-1.11 in step 3.
20   Apply the same method to build and install "xz".
22   3. The latest stable automake (1.10.1) was not new enough, so we download
23   and build automake-1.11 or newer from its repository and make it available
24   just to coreutils:
25     # yum install help2man #required to build automake fully
26     $ git clone git://git.sv.gnu.org/automake.git
27     $ cd automake
28     $ git checkout -b branch-1.11 --track origin/branch-1.11
29     $ ./bootstrap
30     $ ./configure --prefix=$HOME/coreutils/deps
31     $ make install
33   Now we can build coreutils as described in README-hacking
34   as long as $PATH starts with $HOME/coreutils/deps/bin, which
35   one can set for the current shell like:
36     $ export PATH=$HOME/coreutils/deps/bin:$PATH