annotate INSTALL @ 642:c8e5949a8961

Use th-libs functions.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 07 Jan 2015 16:56:54 +0200
parents cdb348e051b5
children 2d4089c92939
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38
Matti Hamalainen <ccr@tnsp.org>
parents: 18
diff changeset
1 Installation
Matti Hamalainen <ccr@tnsp.org>
parents: 18
diff changeset
2 ------------
589
cdb348e051b5 Update installation instructions.
Matti Hamalainen <ccr@tnsp.org>
parents: 350
diff changeset
3 NNChat requires a curses library, preferably NCurses. It is also possible
350
768a8efb1bed Update documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 260
diff changeset
4 to compile NNChat for Windows via MinGW and use PDCurses instead, but this
768a8efb1bed Update documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 260
diff changeset
5 includes certain complexities in build process (see Makefile.w32)
38
Matti Hamalainen <ccr@tnsp.org>
parents: 18
diff changeset
6
589
cdb348e051b5 Update installation instructions.
Matti Hamalainen <ccr@tnsp.org>
parents: 350
diff changeset
7 0) Check that you have the prerequisites:
cdb348e051b5 Update installation instructions.
Matti Hamalainen <ccr@tnsp.org>
parents: 350
diff changeset
8
cdb348e051b5 Update installation instructions.
Matti Hamalainen <ccr@tnsp.org>
parents: 350
diff changeset
9 - GNU make
cdb348e051b5 Update installation instructions.
Matti Hamalainen <ccr@tnsp.org>
parents: 350
diff changeset
10 - GCC 4.3 or later, or LLVM clang 3.x
cdb348e051b5 Update installation instructions.
Matti Hamalainen <ccr@tnsp.org>
parents: 350
diff changeset
11 - binutils
cdb348e051b5 Update installation instructions.
Matti Hamalainen <ccr@tnsp.org>
parents: 350
diff changeset
12 - NCurses 5.x, OR PDCurses 3.4 or later
cdb348e051b5 Update installation instructions.
Matti Hamalainen <ccr@tnsp.org>
parents: 350
diff changeset
13
cdb348e051b5 Update installation instructions.
Matti Hamalainen <ccr@tnsp.org>
parents: 350
diff changeset
14 On Debian or Ubuntu, you could try following to install the requirements:
cdb348e051b5 Update installation instructions.
Matti Hamalainen <ccr@tnsp.org>
parents: 350
diff changeset
15
cdb348e051b5 Update installation instructions.
Matti Hamalainen <ccr@tnsp.org>
parents: 350
diff changeset
16 sudo apt-get install build-essential libncurses5-dev
cdb348e051b5 Update installation instructions.
Matti Hamalainen <ccr@tnsp.org>
parents: 350
diff changeset
17
38
Matti Hamalainen <ccr@tnsp.org>
parents: 18
diff changeset
18 1) Edit Makefile (optional)
Matti Hamalainen <ccr@tnsp.org>
parents: 18
diff changeset
19
Matti Hamalainen <ccr@tnsp.org>
parents: 18
diff changeset
20 2) make / gmake
Matti Hamalainen <ccr@tnsp.org>
parents: 18
diff changeset
21
589
cdb348e051b5 Update installation instructions.
Matti Hamalainen <ccr@tnsp.org>
parents: 350
diff changeset
22 3) Test by running ./nnchat --help
350
768a8efb1bed Update documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 260
diff changeset
23
768a8efb1bed Update documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 260
diff changeset
24 There is no real installation step, you can manually copy the resulting
768a8efb1bed Update documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 260
diff changeset
25 binary to /usr/local if you wish:
768a8efb1bed Update documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 260
diff changeset
26
589
cdb348e051b5 Update installation instructions.
Matti Hamalainen <ccr@tnsp.org>
parents: 350
diff changeset
27 sudo install -m 755 nnchat /usr/local/bin
350
768a8efb1bed Update documentation.
Matti Hamalainen <ccr@tnsp.org>
parents: 260
diff changeset
28