Debian Codegraph @

INSTALL

raw
1 Requirements
2 ------------
3 You will need a C++98 compiler with support for 'long long'.
4 (gcc 3.3.6 or newer is recommended).
5 I use gcc 6.1.0 and 3.3.6, but the code should compile with any standards
6 compliant compiler.
7 Gcc is available at http://gcc.gnu.org
8 Lzip is available at http://www.nongnu.org/lzip/lzip.html
9
10
11 Procedure
12 ---------
13 1. Unpack the archive if you have not done so already:
14
15 tar -xf ddrescue[version].tar.lz
16 or
17 lzip -cd ddrescue[version].tar.lz | tar -xf -
18
19 This creates the directory ./ddrescue[version] containing the source code
20 extracted from the archive.
21
22 2. Change to ddrescue directory and run configure.
23 (Try 'configure --help' for usage instructions).
24
25 cd ddrescue[version]
26 ./configure
27
28 3. Run make.
29
30 make
31
32 4. Optionally, type 'make check' to run the tests that come with ddrescue.
33
34 5. Type 'make install' to install the programs and any data files and
35 documentation. You need root privileges to install into a prefix owned
36 by root.
37
38 Or type 'make install-compress', which additionally compresses the
39 info manual and the man pages after installation.
40 (Installing compressed docs may become the default in the future).
41
42 You can install only the programs, the info manual, or the man pages by
43 typing 'make install-bin', 'make install-info', or 'make install-man'
44 respectively.
45
46
47 Another way
48 -----------
49 You can also compile ddrescue into a separate directory.
50 To do this, you must use a version of 'make' that supports the variable
51 'VPATH', such as GNU 'make'. 'cd' to the directory where you want the
52 object files and executables to go and run the 'configure' script.
53 'configure' automatically checks for the source code in '.', in '..', and
54 in the directory that 'configure' is in.
55
56 'configure' recognizes the option '--srcdir=DIR' to control where to look
57 for the source code. Usually 'configure' can determine that directory
58 automatically.
59
60 After running 'configure', you can run 'make' and 'make install' as
61 explained above.
62
63
64 Copyright (C) 2004-2026 Antonio Diaz Diaz.
65
66 This file is free documentation: you have unlimited permission to copy,
67 distribute, and modify it.