2025-02-20 14:07:18 +01:00
|
|
|
Requirements
|
|
|
|
------------
|
|
|
|
You will need a C++ compiler.
|
2025-02-20 15:04:13 +01:00
|
|
|
I use gcc 5.3.0 and 4.1.2, but the code should compile with any standards
|
|
|
|
compliant compiler.
|
2025-02-20 14:07:18 +01:00
|
|
|
Gcc is available at http://gcc.gnu.org.
|
|
|
|
|
|
|
|
|
|
|
|
Procedure
|
|
|
|
---------
|
|
|
|
1. Unpack the archive if you have not done so already:
|
|
|
|
|
2025-02-20 14:26:47 +01:00
|
|
|
tar -xf lzd[version].tar.lz
|
2025-02-20 14:07:18 +01:00
|
|
|
or
|
2025-02-20 14:26:47 +01:00
|
|
|
lzip -cd lzd[version].tar.lz | tar -xf -
|
2025-02-20 14:07:18 +01:00
|
|
|
|
2025-02-20 14:25:41 +01:00
|
|
|
This creates the directory ./lzd[version] containing the source from
|
2025-02-20 14:07:18 +01:00
|
|
|
the main archive.
|
|
|
|
|
2025-02-20 14:25:41 +01:00
|
|
|
2. Change to lzd directory and run configure.
|
2025-02-20 14:07:18 +01:00
|
|
|
(Try 'configure --help' for usage instructions).
|
|
|
|
|
2025-02-20 14:25:41 +01:00
|
|
|
cd lzd[version]
|
2025-02-20 14:07:18 +01:00
|
|
|
./configure
|
|
|
|
|
|
|
|
3. Run make.
|
|
|
|
|
|
|
|
make
|
|
|
|
|
2025-02-20 14:25:41 +01:00
|
|
|
4. Optionally, type 'make check' to run the tests that come with lzd.
|
2025-02-20 14:07:18 +01:00
|
|
|
|
|
|
|
5. Type 'make install' to install the program and any data files and
|
|
|
|
documentation.
|
|
|
|
|
|
|
|
|
|
|
|
Another way
|
|
|
|
-----------
|
2025-02-20 14:45:15 +01:00
|
|
|
You can also compile lzd into a separate directory.
|
|
|
|
To do this, you must use a version of 'make' that supports the 'VPATH'
|
|
|
|
variable, such as GNU 'make'. 'cd' to the directory where you want the
|
|
|
|
object files and executables to go and run the 'configure' script.
|
|
|
|
'configure' automatically checks for the source code in '.', in '..' and
|
|
|
|
in the directory that 'configure' is in.
|
2025-02-20 14:07:18 +01:00
|
|
|
|
|
|
|
'configure' recognizes the option '--srcdir=DIR' to control where to
|
|
|
|
look for the sources. Usually 'configure' can determine that directory
|
|
|
|
automatically.
|
|
|
|
|
|
|
|
After running 'configure', you can run 'make' and 'make install' as
|
|
|
|
explained above.
|
|
|
|
|
|
|
|
|
2025-02-20 15:04:13 +01:00
|
|
|
Copyright (C) 2013-2019 Antonio Diaz Diaz.
|
2025-02-20 14:07:18 +01:00
|
|
|
|
|
|
|
This file is free documentation: you have unlimited permission to copy,
|
|
|
|
distribute and modify it.
|