doc: update suffix regex in version sort
[platform/upstream/coreutils.git] / README-prereq
1 Detailed below are concrete examples for
2 getting the prerequisites for particular systems.
3
4 - linux - fedora
5
6   This shows the steps for getting the required tools to build coreutils 7.0
7   on a Fedora 8 system. We try to use official packages where possible.
8   The 3 methods described for making these required packages available, should
9   help clarify build requirements on any linux system at least.
10
11   1. Make sure offical distro git package is installed
12     # yum install git
13
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.61a-341 or newer is needed to build automake-1.10a in step 3.
20   Apply the same method to install the lzma package.
21   [FIXME: mention xz when it's packaged]
22
23   3. The latest released automake (1.10.1) was not new enough, so we download
24   and build automake-1.10a from its repository and make it available
25   just to coreutils:
26     # yum install help2man #required to build automake fully
27     $ git clone git://git.sv.gnu.org/automake.git
28     $ cd automake && ./configure --prefix=$HOME/coreutils/deps
29     $ make install
30
31   Now we can build coreutils as described in README-hacking
32   as long as $PATH starts with $HOME/coreutils/deps