| This document describes how to configure and build the open source XFS |
| commands and utilites ("xfsprogs") from source, and how to install and |
| run them. |
| |
| See the README file in the top level directory for details about how |
| to contribute to the XFS project. |
| |
| |
| Linux Instructions |
| ================== |
| |
| 0. If you have the binary rpm, simply install it and skip to step 2 (below). |
| The rpm command to do this is: |
| # rpm -Uvh xfsprogs-*.rpm |
| [and optionally, for the development libraries and headers] |
| # rpm -Uvh xfsprogs-devel-*.rpm |
| |
| The Debian command to do this is: |
| # apt-get install xfsprogs |
| [and optionally, for the development libraries and headers] |
| # apt-get install xfslibs-dev |
| |
| 1. Configure, build and install the package |
| |
| The xfsprogs package uses autoconf/configure and expects a GNU build |
| environment (your platform must at least have both autoconf and gmake). |
| You will also need to have installed either the e2fsprogs-devel package |
| (on an RPM based system) or the uuid-dev package (on a Debian system) |
| as some of the commands make use of the UUID library provided by these. |
| |
| If your distro does not provide a libinih package, you can download and build |
| it from source from the upstream repository found at: |
| |
| https://github.com/benhoyt/inih |
| |
| To build the package and install it manually, use the following steps: |
| |
| # make |
| # su root |
| # make install |
| [and optionally, for the development libraries and headers] |
| # make install-dev |
| |
| Note that there are so many "install" variants out there that we |
| wrote our own script (see "install-sh" in the top level directory). |
| |
| If you wish to turn off debugging asserts in the command build and |
| turn on the optimizer then set the shell environment variables: |
| |
| OPTIMIZER=-O1 |
| DEBUG=-DNDEBUG |
| |
| before running make or Makepkgs. |