2002-01-23 16:20:20 +03:00
|
|
|
INSTRUCTIONS TO COMPILE AND INSTALL NANO CVS VERSIONS
|
2006-06-25 08:37:05 +04:00
|
|
|
=====================================================
|
2002-01-23 16:20:20 +03:00
|
|
|
|
2004-10-18 18:13:28 +04:00
|
|
|
GNU nano is available from CVS, but building this needs a bit more care
|
|
|
|
than the official stable and unstable tarballs.
|
2002-01-23 16:20:20 +03:00
|
|
|
|
2006-06-25 08:37:05 +04:00
|
|
|
|
|
|
|
Prerequisites
|
|
|
|
-------------
|
|
|
|
|
2004-10-18 18:13:28 +04:00
|
|
|
To successfully compile GNU nano from CVS, you'll need the following
|
|
|
|
packages:
|
2002-01-23 16:20:20 +03:00
|
|
|
|
2004-05-13 21:19:54 +04:00
|
|
|
- autoconf (version >= 2.54)
|
|
|
|
- automake (version >= 1.7)
|
2006-06-25 08:37:05 +04:00
|
|
|
- gettext (version >= 0.11.5)
|
|
|
|
- groff (version >= 1.12)
|
|
|
|
- texinfo (version >= 4.0)
|
2002-01-23 16:20:20 +03:00
|
|
|
- cvs
|
2004-11-21 21:44:23 +03:00
|
|
|
- ssh (with support for the SSH version 2 protocol)
|
2006-06-25 08:37:05 +04:00
|
|
|
- glib 2.x (if your system doesn't have vsnprintf(), which the configure
|
|
|
|
script will check for)
|
2005-03-20 00:33:13 +03:00
|
|
|
- make, gcc and the normal development libraries (curses or slang, etc.)
|
2002-01-23 16:20:20 +03:00
|
|
|
|
2005-03-20 00:33:13 +03:00
|
|
|
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.
|
2002-01-23 16:20:20 +03:00
|
|
|
|
2006-06-25 08:37:05 +04:00
|
|
|
|
|
|
|
Download the source
|
|
|
|
-------------------
|
|
|
|
|
2004-11-21 21:44:23 +03:00
|
|
|
First, you need to set up cvs to download the CVS tree using ssh. If
|
2004-11-21 21:51:30 +03:00
|
|
|
you're using a Bourne shell (e.g. bash or sh), do
|
2006-06-25 08:37:05 +04:00
|
|
|
|
|
|
|
$ export CVS_RSH=ssh
|
|
|
|
|
2004-11-21 21:44:23 +03:00
|
|
|
If you're using a C shell (e.g. tcsh or csh), do
|
|
|
|
|
2006-06-25 08:37:05 +04:00
|
|
|
$ 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
|
2004-11-21 20:45:25 +03:00
|
|
|
|
2006-06-25 08:37:05 +04:00
|
|
|
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
|
|
|
|
|
2006-07-28 21:06:27 +04:00
|
|
|
which should copy various files (i.e. the nano executable, the info and
|
2006-06-25 08:37:05 +04:00
|
|
|
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.
|
|
|
|
|
2004-11-21 20:45:25 +03:00
|
|
|
|
2006-06-25 08:37:05 +04:00
|
|
|
Problems?
|
|
|
|
---------
|
2002-01-23 16:20:20 +03:00
|
|
|
|
2002-02-23 21:23:43 +03:00
|
|
|
Please submit any bugs in the CVS branch to nano-devel@gnu.org.
|