Debian Codegraph @

doc/INSTALL

raw
1 This document describes how to configure and build the open source XFS
2 commands and utilites ("xfsprogs") from source, and how to install and
3 run them.
4
5 See the README file in the top level directory for details about how
6 to contribute to the XFS project.
7
8
9 Linux Instructions
10 ==================
11
12 0. If you have the binary rpm, simply install it and skip to step 2 (below).
13 The rpm command to do this is:
14 # rpm -Uvh xfsprogs-*.rpm
15 [and optionally, for the development libraries and headers]
16 # rpm -Uvh xfsprogs-devel-*.rpm
17
18 The Debian command to do this is:
19 # apt-get install xfsprogs
20 [and optionally, for the development libraries and headers]
21 # apt-get install xfslibs-dev
22
23 1. Configure, build and install the package
24
25 The xfsprogs package uses autoconf/configure and expects a GNU build
26 environment (your platform must at least have both autoconf and gmake).
27 You will also need to have installed either the e2fsprogs-devel package
28 (on an RPM based system) or the uuid-dev package (on a Debian system)
29 as some of the commands make use of the UUID library provided by these.
30
31 If your distro does not provide a libinih package, you can download and build
32 it from source from the upstream repository found at:
33
34 https://github.com/benhoyt/inih
35
36 To build the package and install it manually, use the following steps:
37
38 # make
39 # su root
40 # make install
41 [and optionally, for the development libraries and headers]
42 # make install-dev
43
44 Note that there are so many "install" variants out there that we
45 wrote our own script (see "install-sh" in the top level directory).
46
47 If you wish to turn off debugging asserts in the command build and
48 turn on the optimizer then set the shell environment variables:
49
50 OPTIMIZER=-O1
51 DEBUG=-DNDEBUG
52
53 before running make or Makepkgs.