git » nmdb » commit 00cd03e

Move the installation instructions to a new INSTALL file.

author Alberto Bertogli
2007-09-02 02:22:12 UTC
committer Alberto Bertogli
2007-09-02 02:22:12 UTC
parent 80f92cb9c6060231c5e1f35437c3660b9c2f804f

Move the installation instructions to a new INSTALL file.

Signed-off-by: Alberto Bertogli <albertito@gmail.com>

INSTALL +68 -0
README +0 -25

diff --git a/INSTALL b/INSTALL
new file mode 100644
index 0000000..687baa8
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,68 @@
+
+Quick guide for the patience-impaired
+-------------------------------------
+
+At the top level directory, run:
+
+ $ make BACKEND=qdbm ENABLE_TIPC=0 ENABLE_SCTP=0 install
+
+to build and install the server without TIPC and SCTP support, and to use the
+qdbm backend.
+
+
+How to compile and install
+--------------------------
+
+The only mandatory requisite to build nmdb is libevent
+(http://www.monkey.org/~provos/libevent/).
+
+There are several build-time options, in two groups: supported network
+protocols, and backend databases.
+
+The network protocols can all be enabled at the same time:
+ * TCP and UDP, the well-known network protocols.
+ * TIPC (http://tipc.sf.net/), a cluster-oriented network protocol. You will
+	need a Linux kernel >= 2.6.16 with TIPC support (most distributions
+	enable it by default).
+ * SCTP, a network protocol similar to UDP and TCP, offering reliable message
+ 	passing over IP, among other very useful things. You will need the
+	lksctp-tools package.
+
+The backends, on the other hand, are mutually exclusive and only one can be
+selected:
+ * qdbm (http://qdbm.sf.net/).
+ * bdb (http://www.oracle.com/database/berkeley-db/).
+ * null backend, if you don't need a real one.
+
+By default, all network protocols are enabled, and the qdbm backend is
+selected.
+
+You can change the defaults by passing parameters to make, like this:
+
+ $ make BACKEND=[qbdm|bdb|null] ENABLE_$PROTO=[1|0]
+
+Where $PROTO can be TCP, UDP, TIPC or SCTP.
+
+For instance, to build with bdb backend and without TIPC and UDP support, use:
+
+ $ make BACKEND=bdb ENABLE_TIPC=0
+
+
+Tests
+-----
+
+To run some tests, start the server and then go to the "tests/c/" directory.
+Run "make.sh build" and then run any of the generated tests.
+
+
+Bindings
+--------
+
+To compile the Python bindings, you need to have the library already
+installed. Use "make python_install" at the top level directory to build and
+install the modules. The module will be named "nmdb".
+
+The other bindings do not have a properly defined install procedure, and
+you'll need knowledge of the language to install them.
+
+
diff --git a/README b/README
index c68fab8..5f16263 100644
--- a/README
+++ b/README
@@ -29,31 +29,6 @@ For additional documentation and resources, go to the project's website at
 http://auriga.wearlab.de/~alb/nmdb.
 
 
-How to compile, test and install
---------------------------------
-
-General requisites:
- * libevent (http://www.monkey.org/~provos/libevent/).
- * qdbm (http://qdbm.sf.net/).
-
-Requisites to enable TIPC:
- * Running Linux kernel >= 2.6.16 with TIPC enabled.
- * Kernel headers also >= 2.6.16. Alternatively, you can run a TIPC patched
-     kernel, and have the tipc.h header somewhere in the include path.
-
-To compile the server and the library, you can just use "make" on the top
-level directory. To install them, use "make install". By default, all
-protocols are enabled, including TIPC. To disable any of them, run something
-like "make ENABLE_TIPC=0 ENABLE_SCTP=0".
-
-To run some tests, start the server and then go to the "tests/c/" directory.
-Run "make.sh build" and then run any of the generated tests.
-
-To compile the Python bindings, you need to have the library already
-installed. Use "make python_install" at the top level directory to build and
-install the modules. The module will be named "nmdb".
-
-
 Where to report bugs
 --------------------