README.CVS 2.37 KB
Newer Older
Jordi Mallach's avatar
Jordi Mallach committed
1
INSTRUCTIONS TO COMPILE AND INSTALL NANO CVS VERSIONS
2
=====================================================
Jordi Mallach's avatar
Jordi Mallach committed
3

4
5
GNU nano is available from CVS, but building this needs a bit more care
than the official stable and unstable tarballs.
Jordi Mallach's avatar
Jordi Mallach committed
6

7
8
9
10

Prerequisites
-------------

11
12
To successfully compile GNU nano from CVS, you'll need the following
packages:
Jordi Mallach's avatar
Jordi Mallach committed
13

14
15
- autoconf (version >= 2.54)
- automake (version >= 1.7)
16
17
18
- gettext  (version >= 0.11.5)
- groff    (version >= 1.12)
- texinfo  (version >= 4.0)
Jordi Mallach's avatar
Jordi Mallach committed
19
- cvs
20
- ssh (with support for the SSH version 2 protocol)
21
22
- glib 2.x (if your system doesn't have vsnprintf(), which the configure
  script will check for)
23
- make, gcc and the normal development libraries (curses or slang, etc.)
Jordi Mallach's avatar
Jordi Mallach committed
24

25
26
27
These should be available on your GNU mirror.  Note that you'll need a
version of curses or slang with wide character support if you want nano
to use UTF-8.
Jordi Mallach's avatar
Jordi Mallach committed
28

29
30
31
32

Download the source
-------------------

33
First, you need to set up cvs to download the CVS tree using ssh.  If
34
you're using a Bourne shell (e.g. bash or sh), do
35
36
37

    $ export CVS_RSH=ssh

38
39
If you're using a C shell (e.g. tcsh or csh), do

40
41
42
43
44
45
    $ setenv CVS_RSH ssh

After that's set up, cd to your src directory and use the following
command to download the CVS tree:

    $ cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/nano checkout nano
46

47
If you want to download the stable CVS branch, add "-r nano_1_2_branch":
Jordi Mallach's avatar
Jordi Mallach committed
48

49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
    $ cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/nano checkout -r nano_1_2_branch nano


Generate the configure script
-----------------------------

Once you have the sources in the "nano" directory,

    $ cd nano
    $ ./autogen.sh

This will set up a configure script and a Makefile.in file.


Configure your build
--------------------

To configure your build, run the configure script from the nano source
directory:

    $ ./configure [--add-options-here]


Build and install
-----------------

From the nano source directory, build the code with:

    $ make

Then, once it's done compiling, run

    $ make install

83
which should copy various files (i.e. the nano executable, the info and
84
85
86
87
88
89
man pages, and syntax highlighting pattern files) to their appropriate
directories.

If you're installing into the default install directory (/usr/local),
you'll need to run that "make install" command with root privileges.

90

91
92
Problems?
---------
Jordi Mallach's avatar
Jordi Mallach committed
93

Jordi Mallach's avatar
Jordi Mallach committed
94
Please submit any bugs in the CVS branch to nano-devel@gnu.org.