Jordi Mallach | 9045319 | 2002-01-23 13:20:20 +0000 | [diff] [blame] | 1 | INSTRUCTIONS TO COMPILE AND INSTALL NANO CVS VERSIONS |
| 2 | ----------------------------------------------------- |
| 3 | |
David Lawrence Ramsey | db85ac7 | 2004-10-18 14:13:28 +0000 | [diff] [blame] | 4 | GNU nano is available from CVS, but building this needs a bit more care |
| 5 | than the official stable and unstable tarballs. |
Jordi Mallach | 9045319 | 2002-01-23 13:20:20 +0000 | [diff] [blame] | 6 | |
David Lawrence Ramsey | db85ac7 | 2004-10-18 14:13:28 +0000 | [diff] [blame] | 7 | To successfully compile GNU nano from CVS, you'll need the following |
| 8 | packages: |
Jordi Mallach | 9045319 | 2002-01-23 13:20:20 +0000 | [diff] [blame] | 9 | |
David Lawrence Ramsey | 9830d75 | 2004-05-13 17:19:54 +0000 | [diff] [blame] | 10 | - autoconf (version >= 2.54) |
| 11 | - automake (version >= 1.7) |
Jordi Mallach | b947552 | 2003-01-15 18:16:54 +0000 | [diff] [blame] | 12 | - gettext (version >= 0.11.5) |
David Lawrence Ramsey | 188f169 | 2004-11-20 16:16:47 +0000 | [diff] [blame] | 13 | - groff |
Jordi Mallach | 9045319 | 2002-01-23 13:20:20 +0000 | [diff] [blame] | 14 | - texinfo |
| 15 | - cvs |
David Lawrence Ramsey | 831c640 | 2004-11-21 18:44:23 +0000 | [diff] [blame] | 16 | - ssh (with support for the SSH version 2 protocol) |
David Lawrence Ramsey | db85ac7 | 2004-10-18 14:13:28 +0000 | [diff] [blame] | 17 | - glib 2.x (if your system doesn't have snprintf() and/or vsnprintf()) |
David Lawrence Ramsey | 1fc55a2 | 2005-03-19 21:33:13 +0000 | [diff] [blame] | 18 | - make, gcc and the normal development libraries (curses or slang, etc.) |
Jordi Mallach | 9045319 | 2002-01-23 13:20:20 +0000 | [diff] [blame] | 19 | |
David Lawrence Ramsey | 1fc55a2 | 2005-03-19 21:33:13 +0000 | [diff] [blame] | 20 | These should be available on your GNU mirror. Note that you'll need a |
| 21 | version of curses or slang with wide character support if you want nano |
| 22 | to use UTF-8. |
Jordi Mallach | 9045319 | 2002-01-23 13:20:20 +0000 | [diff] [blame] | 23 | |
David Lawrence Ramsey | 831c640 | 2004-11-21 18:44:23 +0000 | [diff] [blame] | 24 | First, you need to set up cvs to download the CVS tree using ssh. If |
David Lawrence Ramsey | e56d936 | 2004-11-21 18:51:30 +0000 | [diff] [blame] | 25 | you're using a Bourne shell (e.g. bash or sh), do |
David Lawrence Ramsey | 831c640 | 2004-11-21 18:44:23 +0000 | [diff] [blame] | 26 | $ export CVS_RSH=ssh |
| 27 | If you're using a C shell (e.g. tcsh or csh), do |
| 28 | $ setenv CVS_RSH ssh |
| 29 | |
| 30 | After it's set up, use the following command to download the CVS tree: |
David Lawrence Ramsey | b75763e | 2004-11-21 17:45:25 +0000 | [diff] [blame] | 31 | $ cvs -z3 -d:ext:anoncvs@savannah.gnu.org:/cvsroot/nano checkout nano |
David Lawrence Ramsey | b75763e | 2004-11-21 17:45:25 +0000 | [diff] [blame] | 32 | |
Jordi Mallach | 72bff8e | 2005-04-20 13:24:39 +0000 | [diff] [blame] | 33 | If you want to download the stable CVS branch, add "-r nano_1_2_branch": |
| 34 | $ cvs -z3 -d:ext:anoncvs@savannah.gnu.org:/cvsroot/nano checkout -r nano_1_2_branch nano |
Jordi Mallach | 9045319 | 2002-01-23 13:20:20 +0000 | [diff] [blame] | 35 | |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 36 | Once you have the sources in the "nano" directory, cd into it, and |
David Lawrence Ramsey | db85ac7 | 2004-10-18 14:13:28 +0000 | [diff] [blame] | 37 | execute the "autogen.sh" script in the top directory. This will set up |
| 38 | a configure script and Makefile.in, and you will be ready to compile |
| 39 | with |
Jordi Mallach | 9045319 | 2002-01-23 13:20:20 +0000 | [diff] [blame] | 40 | $ ./configure [--add-options-here] && make |
David Lawrence Ramsey | b75763e | 2004-11-21 17:45:25 +0000 | [diff] [blame] | 41 | |
Jordi Mallach | 9045319 | 2002-01-23 13:20:20 +0000 | [diff] [blame] | 42 | Once it's done compiling, |
| 43 | $ make install |
Jordi Mallach | 1fc9da6 | 2002-10-06 23:32:21 +0000 | [diff] [blame] | 44 | (as root) should put the required files in their respective directories. |
Jordi Mallach | 9045319 | 2002-01-23 13:20:20 +0000 | [diff] [blame] | 45 | |
Jordi Mallach | 3c5653d | 2002-02-23 18:23:43 +0000 | [diff] [blame] | 46 | Please submit any bugs in the CVS branch to nano-devel@gnu.org. |