switch back to GDBM_File which is included in recent
[webpac] / INSTALL
diff --git a/INSTALL b/INSTALL
index 0217d75..bd6e769 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -1,4 +1,4 @@
-beta-beta-beta INSTALL INSTRUCTIONS
+INSTALL INSTRUCTIONS
 
 Feel free to contact me via e-mail to dpavlin@rot13.org if those instructions
 don't work for you.
@@ -50,48 +50,76 @@ don't work for you.
                                to get this one from
                                http://savannah.nongnu.org/projects/unac/
        Config::IniFiles
-       DBD::Pg                 or some other DBD driver, you can also
-                               use the one which came with distribution
-                               (e.g. libdbd-pg-perl on Debian)
+       DBD::Pg                 or some other DBD driver like DBD::SQLite
        CGI::Application
-       HTML::Pager
        HTML::Template
        HTML::FillInForm
-       SWISH
-       SWISH::Fork             and of course, swish-e executable
-                               (e.g. swish-e package on Debian)
+       SWISH::API
        XML::Simple
+       Text::Iconv
+       GDBM_File
+       HTML::Entities          (part of HTML::Parser)
 
    CPAN shell will also download some more modules to satisfy dependencies.
 
+
    If you plan to use M$ Excel files for import (type=excel), you will need:
 
        Spreadsheet::ParseExcel
 
    If you plan to use import from MARC files you will also need
 
-       MARC
+       MARC::Record
+
+
+2.1 Installation on Debian GNU/Linux
+
+   You will need following packages to get started:
+
+       perl
+       swish-e
+
+   and all additional packages which are dependencies.
+
+   You also don't have to install all CPAN modules manually. Just use
+   following Debian packages:
+
+       libtext-unaccent-perl
+       libconfig-inifiles-perl
+       libdbd-pg-perl          or some other DBD driver
+       libdbd-sqlite-perl      like DBD::SQLite
+       libhtml-template-perl
+       libxml-simple-perl
+       libtext-iconv-perl
+       libhtml-parser-perl
+
+   and install following packages by hand from CPAN
+   because they are not part of Debian distribution:
+
+       CGI::Application
+       HTML::FillInForm
+       SWISH::API
+
+   and optionally some of those modules:
 
-3. You will need OpenIsis if you are using ISIS as an import format.
-   Currently, WebPAC uses OpenIsis 0.9.0 which *HAVE TO BE PATCHED*
-   with special patch so that perl module OpenIsis.pm have close call
-   (because there is hard-limit of 32 ISIS files in OpenIsis.pm, and that
-   is too low for our use).
+       Spreadsheet::ParseExcel
+       MARC::Record
 
-   Get OpenIsis from:
-       http://openisis.org/Doc/GetIt
+3. You will need also IsisDB module if you are using ISIS as an import format.
+   Currenlty, this module is available only from development site
 
-   Get patch for close from:
-       http://www.rot13.org/~dpavlin/projects/openisis-0.9.0-perl_close.diff
+       http://svn.rot13.org/
 
-   Unpack OpenIsis archive and apply patch -p0 to source tree. Type make, and
-   than:
+   but, it should be available also through CPAN (meaning that it's stable and
+   tested). So, just try to install IsisDB using cpan first.
 
-       cd perl
-       perl Makefile.PL
-       make
-       sudo make install
+   WebPAC doesn't use OpenIsis anymore.
 
-4. edit global.conf and all2xml.conf to suit your needs. Comments inside
+4. Edit global.conf and all2xml.conf to suit your needs. Comments inside
    those files should help get you started.
 
+5. All perl code will use locale to do sorting. That also include indexes
+   which, while being RDBMS-based, also use perl sorting (because each
+   entry has ordinal number created by perl). So, be sure that LC_COLLATE
+   environment variable is configured for your locale (which also has to
+   be enabled, check dpkg-reconfigure locales if you are using Debian).