2008-10-21 22:40:12 +01:00
|
|
|
Detailed below are concrete examples for
|
|
|
|
|
getting the prerequisites for particular systems.
|
|
|
|
|
|
2009-04-06 07:43:49 +01:00
|
|
|
- GNU/Linux - fedora
|
2008-10-21 22:40:12 +01:00
|
|
|
|
2009-06-03 01:02:01 +01:00
|
|
|
This shows the steps for getting the required tools to build coreutils
|
2008-10-21 22:40:12 +01:00
|
|
|
on a Fedora 8 system. We try to use official packages where possible.
|
|
|
|
|
The 3 methods described for making these required packages available, should
|
2009-04-06 07:43:49 +01:00
|
|
|
help clarify build requirements on any GNU/Linux system at least.
|
2008-10-21 22:40:12 +01:00
|
|
|
|
|
|
|
|
1. Make sure offical distro git package is installed
|
|
|
|
|
# yum install git
|
|
|
|
|
|
|
|
|
|
2. The distro autoconf is too old, but there is a newer one available
|
|
|
|
|
so we rebuild that and make it available to the full system:
|
|
|
|
|
# yum install emacs #autoconf build requires emacs (20MB)
|
|
|
|
|
# rpmbuild --rebuild http://download.fedora.redhat.com/pub/fedora/linux/development/source/SRPMS/autoconf-2.63-1.fc10.src.rpm
|
|
|
|
|
# rpm -Uvh /usr/src/redhat/RPMS/noarch/autoconf-2.63-1.fc8.noarch.rpm
|
2009-06-03 01:02:01 +01:00
|
|
|
Note Autoconf 2.62 or newer is needed to build automake-1.11 in step 3.
|
2009-06-02 21:44:11 +02:00
|
|
|
Apply the same method to build and install "xz".
|
2008-10-21 22:40:12 +01:00
|
|
|
|
2009-04-01 09:35:28 -05:00
|
|
|
3. The latest stable automake (1.10.1) was not new enough, so we download
|
2009-06-03 01:02:01 +01:00
|
|
|
and build automake-1.11 or newer from its repository and make it available
|
2008-10-21 22:40:12 +01:00
|
|
|
just to coreutils:
|
|
|
|
|
# yum install help2man #required to build automake fully
|
|
|
|
|
$ git clone git://git.sv.gnu.org/automake.git
|
2009-04-01 09:35:28 -05:00
|
|
|
$ cd automake
|
2009-06-03 01:02:01 +01:00
|
|
|
$ git checkout -b branch-1.11 --track origin/branch-1.11
|
2009-04-02 13:44:09 +02:00
|
|
|
$ ./bootstrap
|
2009-04-01 09:35:28 -05:00
|
|
|
$ ./configure --prefix=$HOME/coreutils/deps
|
2008-10-21 22:40:12 +01:00
|
|
|
$ make install
|
|
|
|
|
|
|
|
|
|
Now we can build coreutils as described in README-hacking
|
2009-06-03 01:02:01 +01:00
|
|
|
as long as $PATH starts with $HOME/coreutils/deps/bin, which
|
|
|
|
|
one can set for the current shell like:
|
|
|
|
|
$ export PATH=$HOME/coreutils/deps/bin:$PATH
|