Difference between revisions of "Koha/Install"

From Jon's Wiki
(New page: == 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. == Z39.50 Su...)
 
Line 8: Line 8:
 
I thought it had, but there's lots of noise about MySQL. Bleargh.
 
I thought it had, but there's lots of noise about MySQL. Bleargh.
  
== Z39.50 Support ==
+
== Zebra Z39.50 Support ==
  
 
Add the [http://www.indexdata.dk/zebra/ Zebra] apt repository:
 
Add the [http://www.indexdata.dk/zebra/ Zebra] apt repository:
Line 15: Line 15:
 
And the magic key incantation:
 
And the magic key incantation:
 
  <nowiki>wget -q http://ftp.indexdata.dk/debian/indexdata.asc -O- | sudo apt-key add - </nowiki>
 
  <nowiki>wget -q http://ftp.indexdata.dk/debian/indexdata.asc -O- | sudo apt-key add - </nowiki>
Install:
+
 
 +
== Install Dependencies ==
 +
 
 +
Install Zebra stuff:
 
  sudo apt-get install yaz idzebra-2.0
 
  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 \
 +
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 ===
 
=== Locale UTF8 ===
  
 
Make sure the OS, Apache, and MySQL are all set to locale UTF8.
 
Make sure the OS, Apache, and MySQL are all set to locale UTF8.
;Apache 2: ''/etc/apache2/conf.d/charset'' needs
+
 
 +
'''Apache 2:''' Edit ''/etc/apache2/conf.d/charset'':
 
  AddDefaultCharset UTF-8
 
  AddDefaultCharset UTF-8
;MySQL: ''/etc/mysql/my.cnf needs
+
 
 +
'''MySQL:''' Edit ''/etc/mysql/my.cnf'':
 
  init-connect = 'SET NAMES utf8'
 
  init-connect = 'SET NAMES utf8'
 
  character-set-server=utf8
 
  character-set-server=utf8
 
  collation-server=utf8_general_ci
 
  collation-server=utf8_general_ci
 
  character_set_client=utf8
 
  character_set_client=utf8
and possibly
+
  skip-character-set-client-handshake # if things don't work
  skip-character-set-client-handshake
 
  
 
== BUGS ==
 
== BUGS ==
  
 
;LAME: MARC::File::XML does not work with Perl 5.10, therefore the whole shebang requires downgrading Perl to 5.8
 
;LAME: MARC::File::XML does not work with Perl 5.10, therefore the whole shebang requires downgrading Perl to 5.8

Revision as of 03:10, 1 October 2008

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 \
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