Koha/Install

From Jon's Wiki
Revision as of 03:22, 1 October 2008 by Johnno (talk | contribs)

Source Code

Grab the Koha source:

git clone git://git.koha.org/pub/scm/koha.git

PostgreSQL

I thought it had, but there's lots of noise about MySQL. Bleargh.

Zebra Z39.50 Support

Add the Zebra apt repository:

deb     http://ftp.indexdata.dk/debian indexdata/lenny released 
deb-src http://ftp.indexdata.dk/debian indexdata/lenny released 

And the magic key incantation:

wget -q http://ftp.indexdata.dk/debian/indexdata.asc -O- | sudo apt-key add - 

Install Dependencies

Install Zebra stuff:

sudo apt-get install yaz idzebra-2.0

Perl dependencies:

sudo apt-get install libhtml-template-pro-perl liblingua-stem-perl libxml-sax-perl \
libclass-accessor-perl libmarc-record-perl libmarc-charset-perl libmarc-xml-perl \
libxml-libxml-perl libmarc-crosswalk-dublincore-perl libcgi-session-perl \
libclass-factory-util-perl libdate-ical-perl libdate-calc-perl libdate-manip-perl \
libgd-barcode-perl liblist-moreutils-perl libmail-sendmail-perl libnet-ldap-perl \
libnet-z3950-zoom-perl libpdf-api2-perl libpdf-reuse-perl libpdf-reuse-barcode-perl \
libpoe-perl libschedule-at-perl libtext-csv-perl libtext-csv-xs-perl \
libtext-iconv-perl libxml-dumper-perl libxml-libxslt-perl libxml-rss-perl \
libxml-simple-perl libyaml-syck-perl libdata-ical-perl libbiblio-endnotestyle-perl

Locale UTF8

Make sure the OS, Apache, and MySQL are all set to locale UTF8.

Apache 2: Edit /etc/apache2/conf.d/charset:

AddDefaultCharset UTF-8

MySQL: Edit /etc/mysql/my.cnf:

init-connect = 'SET NAMES utf8'
character-set-server=utf8
collation-server=utf8_general_ci
character_set_client=utf8
skip-character-set-client-handshake # if things don't work

BUGS

LAME
MARC::File::XML does not work with Perl 5.10, therefore the whole shebang requires downgrading Perl to 5.8