2016-11-20 17:01:40 +00:00
|
|
|
INSTRUCTIONS FOR COMPILING AND INSTALLING NANO FROM GIT
|
|
|
|
=======================================================
|
2002-01-23 13:20:20 +00:00
|
|
|
|
2016-11-20 17:01:40 +00:00
|
|
|
The latest changes and fixes for GNU nano are available via git, but
|
|
|
|
building this needs a bit more care than the official tarballs.
|
2002-01-23 13:20:20 +00:00
|
|
|
|
2006-06-25 04:37:05 +00:00
|
|
|
|
|
|
|
Prerequisites
|
|
|
|
-------------
|
|
|
|
|
2016-11-20 17:01:40 +00:00
|
|
|
To successfully compile GNU nano from git, you'll need the following
|
2004-10-18 14:13:28 +00:00
|
|
|
packages:
|
2002-01-23 13:20:20 +00:00
|
|
|
|
2017-03-25 02:44:06 +00:00
|
|
|
- autoconf (version >= 2.69)
|
|
|
|
- automake (version >= 1.14)
|
|
|
|
- autopoint (version >= 0.18.3)
|
|
|
|
- gettext (version >= 0.18.3)
|
2016-06-04 09:27:15 +00:00
|
|
|
- git (version >= 2.7.4)
|
|
|
|
- groff (version >= 1.12)
|
2016-06-04 09:20:29 +00:00
|
|
|
- pkg-config (version >= 0.22)
|
2016-06-04 09:27:15 +00:00
|
|
|
- texinfo (version >= 4.0)
|
2016-11-20 17:01:40 +00:00
|
|
|
- gcc (any version)
|
|
|
|
- make (any version)
|
|
|
|
|
|
|
|
If you want UTF-8 support, you will also need libncursesw5-dev installed
|
2016-11-27 22:55:46 +00:00
|
|
|
(version >= 5.7), or libslang2-dev (version >= 2.0) if you use --with-slang.
|
2016-06-04 09:27:15 +00:00
|
|
|
|
|
|
|
These should all be available in your distro's package manager or software
|
2016-11-20 17:01:40 +00:00
|
|
|
center, or otherwise on any GNU mirror.
|
2002-01-23 13:20:20 +00:00
|
|
|
|
2006-06-25 04:37:05 +00:00
|
|
|
|
|
|
|
Download the source
|
|
|
|
-------------------
|
|
|
|
|
2016-11-20 17:01:40 +00:00
|
|
|
To obtain the current nano development branch (called 'master'), use the
|
|
|
|
following command. It will create in your current working directory a
|
|
|
|
subdirectory called 'nano' containing a copy of all of the files:
|
2006-06-25 04:37:05 +00:00
|
|
|
|
2016-04-04 22:08:32 +00:00
|
|
|
$ git clone git://git.savannah.gnu.org/nano.git nano
|
2004-11-21 17:45:25 +00:00
|
|
|
|
2007-01-28 19:49:05 +00:00
|
|
|
|
2006-06-25 04:37:05 +00: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
|
|
|
|
|
2016-04-04 22:46:21 +00:00
|
|
|
Then, once it's done compiling, run:
|
2006-06-25 04:37:05 +00:00
|
|
|
|
|
|
|
$ make install
|
|
|
|
|
2006-07-28 17:06:27 +00:00
|
|
|
which should copy various files (i.e. the nano executable, the info and
|
2006-06-25 04:37:05 +00: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 17:45:25 +00:00
|
|
|
|
2006-06-25 04:37:05 +00:00
|
|
|
Problems?
|
|
|
|
---------
|
2002-01-23 13:20:20 +00:00
|
|
|
|
2016-08-25 17:34:10 +00:00
|
|
|
Please submit any bugs you find in the code in git via the bug tracker
|
|
|
|
on Savannah (https://savannah.gnu.org/bugs/?group=nano).
|
|
|
|
|
|
|
|
|
|
|
|
Contributing something
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
If you have a fix for a bug, or the code for a new or improved feature,
|
|
|
|
first create a branch off of master:
|
|
|
|
|
|
|
|
$ git checkout -b somename
|
|
|
|
|
2017-11-12 10:54:17 +00:00
|
|
|
Then change the code so it does what you want, and commit it together
|
|
|
|
with your Sign-off:
|
2016-08-25 17:34:10 +00:00
|
|
|
|
|
|
|
$ git commit -as
|
|
|
|
|
2017-11-12 10:54:17 +00:00
|
|
|
In the commit message (after the one-line summary) give a rationale
|
|
|
|
for the change. With your Signed-off-by you declare that the code is
|
|
|
|
yours, or that you are free to reuse it, and that you submit it under
|
|
|
|
the license that covers nano. Then create a patch (or patches):
|
2016-08-25 17:34:10 +00:00
|
|
|
|
|
|
|
$ git format-patch master
|
|
|
|
|
|
|
|
Send that patch (or patches) to <nano-devel@gnu.org>, as an attachment
|
|
|
|
or with git send-email.
|