|
Packit |
4e1bf9 |
Requirements
|
|
Packit |
4e1bf9 |
------------
|
|
Packit |
4e1bf9 |
You will need a C compiler and a C library compatible with GNU libc.
|
|
Packit |
4e1bf9 |
I use gcc 5.3.0 and 4.1.2, but the code should compile with any
|
|
Packit |
4e1bf9 |
standards compliant compiler.
|
|
Packit |
4e1bf9 |
Gcc is available at http://gcc.gnu.org.
|
|
Packit |
4e1bf9 |
|
|
Packit |
4e1bf9 |
|
|
Packit |
4e1bf9 |
Procedure
|
|
Packit |
4e1bf9 |
---------
|
|
Packit |
4e1bf9 |
1. Unpack the archive if you have not done so already:
|
|
Packit |
4e1bf9 |
|
|
Packit |
4e1bf9 |
tar -xf ed[version].tar.lz
|
|
Packit |
4e1bf9 |
or
|
|
Packit |
4e1bf9 |
lzip -cd ed[version].tar.lz | tar -xf -
|
|
Packit |
4e1bf9 |
|
|
Packit |
4e1bf9 |
This creates the directory ./ed[version] containing the source from
|
|
Packit |
4e1bf9 |
the main archive.
|
|
Packit |
4e1bf9 |
|
|
Packit |
4e1bf9 |
2. Change to ed directory and run configure.
|
|
Packit |
4e1bf9 |
(Try 'configure --help' for usage instructions).
|
|
Packit |
4e1bf9 |
|
|
Packit |
4e1bf9 |
cd ed[version]
|
|
Packit |
4e1bf9 |
./configure
|
|
Packit |
4e1bf9 |
|
|
Packit |
4e1bf9 |
3. Run make.
|
|
Packit |
4e1bf9 |
|
|
Packit |
4e1bf9 |
make
|
|
Packit |
4e1bf9 |
|
|
Packit |
4e1bf9 |
4. Optionally, type 'make check' to run the tests that come with ed.
|
|
Packit |
4e1bf9 |
|
|
Packit |
4e1bf9 |
5. Type 'make install' to install the program and any data files and
|
|
Packit |
4e1bf9 |
documentation.
|
|
Packit |
4e1bf9 |
|
|
Packit |
4e1bf9 |
Or type 'make install-compress', which additionally compresses the
|
|
Packit |
4e1bf9 |
info manual and the man page after installation. (Installing
|
|
Packit |
4e1bf9 |
compressed docs may become the default in the future).
|
|
Packit |
4e1bf9 |
|
|
Packit |
4e1bf9 |
You can install only the program, the info manual or the man page by
|
|
Packit |
4e1bf9 |
typing 'make install-bin', 'make install-info' or 'make install-man'
|
|
Packit |
4e1bf9 |
respectively.
|
|
Packit |
4e1bf9 |
|
|
Packit |
4e1bf9 |
|
|
Packit |
4e1bf9 |
Another way
|
|
Packit |
4e1bf9 |
-----------
|
|
Packit |
4e1bf9 |
You can also compile ed into a separate directory.
|
|
Packit |
4e1bf9 |
To do this, you must use a version of 'make' that supports the 'VPATH'
|
|
Packit |
4e1bf9 |
variable, such as GNU 'make'. 'cd' to the directory where you want the
|
|
Packit |
4e1bf9 |
object files and executables to go and run the 'configure' script.
|
|
Packit |
4e1bf9 |
'configure' automatically checks for the source code in '.', in '..' and
|
|
Packit |
4e1bf9 |
in the directory that 'configure' is in.
|
|
Packit |
4e1bf9 |
|
|
Packit |
4e1bf9 |
'configure' recognizes the option '--srcdir=DIR' to control where to
|
|
Packit |
4e1bf9 |
look for the sources. Usually 'configure' can determine that directory
|
|
Packit |
4e1bf9 |
automatically.
|
|
Packit |
4e1bf9 |
|
|
Packit |
4e1bf9 |
After running 'configure', you can run 'make' and 'make install' as
|
|
Packit |
4e1bf9 |
explained above.
|
|
Packit |
4e1bf9 |
|
|
Packit |
4e1bf9 |
|
|
Packit |
4e1bf9 |
Copyright (C) 2006-2017 Antonio Diaz Diaz.
|
|
Packit |
4e1bf9 |
|
|
Packit |
4e1bf9 |
This file is free documentation: you have unlimited permission to copy,
|
|
Packit |
4e1bf9 |
distribute and modify it.
|