Difference between revisions of "Koha/Install"
From Jon's Wiki
Line 23: | Line 23: | ||
Perl dependencies: | Perl dependencies: | ||
− | sudo apt-get install | + | sudo apt-get install libalgorithm-checkdigits-perl libbiblio-endnotestyle-perl \ |
− | + | libcgi-session-perl libclass-accessor-perl libclass-factory-util-perl \ | |
− | + | libdata-ical-perl libdate-calc-perl libdate-ical-perl libdate-manip-perl \ | |
− | + | libdatetime-format-mail-perl libdatetime-format-strptime-perl \ | |
− | + | libdatetime-format-w3cdtf-perl libdatetime-locale-perl libdatetime-perl \ | |
− | libnet-z3950-zoom-perl libpdf-api2-perl libpdf-reuse-perl libpdf-reuse | + | libdatetime-timezone-perl libdbd-mysql-perl libdbi-perl libgd-barcode-perl \ |
− | + | libhtml-template-pro-perl libimage-magick-perl liblingua-ispell-perl \ | |
− | libtext- | + | liblingua-stem-perl liblist-moreutils-perl liblocale-gettext-perl \ |
− | libxml- | + | liblocale-po-perl libmail-sendmail-perl libmarc-charset-perl \ |
+ | libmarc-crosswalk-dublincore-perl libmarc-record-perl libmarc-xml-perl \ | ||
+ | libmime-lite-perl libnet-ldap-perl libnet-z3950-zoom-perl libpdf-api2-perl \ | ||
+ | libpdf-reuse-barcode-perl libpdf-reuse-perl libpoe-perl libschedule-at-perl \ | ||
+ | libtext-charwidth-perl libtext-csv-perl libtext-csv-xs-perl libtext-iconv-perl \ | ||
+ | libtext-wrapi18n-perl libtimedate-perl libtime-duration-perl \ | ||
+ | libtime-format-perl libunix-syslog-perl libxml-dom-perl libxml-dumper-perl \ | ||
+ | libxml-libxml-perl libxml-libxslt-perl libxml-namespacesupport-perl \ | ||
+ | libxml-parser-perl libxml-perl libxml-regexp-perl libxml-rss-perl \ | ||
+ | libxml-sax-perl libxml-simple-perl libxml-xslt-perl libyaml-syck-perl | ||
+ | |||
+ | And from CPAN: | ||
+ | |||
+ | Algorithm::CheckDigits::M43_001 GD::Barcode::UPCE MARC::File::XML | ||
=== Locale UTF8 === | === Locale UTF8 === | ||
Line 42: | Line 55: | ||
'''MySQL:''' Edit ''/etc/mysql/my.cnf'': | '''MySQL:''' Edit ''/etc/mysql/my.cnf'': | ||
init-connect = 'SET NAMES utf8' | init-connect = 'SET NAMES utf8' | ||
+ | default-character-set=utf8 | ||
character-set-server=utf8 | character-set-server=utf8 | ||
+ | character_set_client=utf8 | ||
collation-server=utf8_general_ci | collation-server=utf8_general_ci | ||
− | + | skip-character-set-client-handshake # because none of the above settings actually work | |
− | skip-character-set-client-handshake # | + | |
+ | == Set Up Database == | ||
+ | |||
+ | In MySQL as root: | ||
+ | CREATE DATABASE koha DEFAULT CHARACTER SET utf8; | ||
+ | GRANT ALL PRIVILEGES ON koha.* TO 'kohaadmin'@'localhost' IDENTIFIED BY 'whatever'; | ||
+ | GRANT SELECT, INSERT, UPDATE, DELETE ON koha.* TO 'koha'@'localhost' IDENTIFIED BY 'whatever'; | ||
+ | FLUSH PRIVILEGES; | ||
+ | |||
+ | == Install Koha == | ||
+ | |||
+ | In the git checkout: | ||
+ | |||
+ | sudo dpkg --set-selections < install_misc/debian.packages | ||
+ | sudo dselect install | ||
+ | |||
== 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 07:38, 2 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 libalgorithm-checkdigits-perl libbiblio-endnotestyle-perl \ libcgi-session-perl libclass-accessor-perl libclass-factory-util-perl \ libdata-ical-perl libdate-calc-perl libdate-ical-perl libdate-manip-perl \ libdatetime-format-mail-perl libdatetime-format-strptime-perl \ libdatetime-format-w3cdtf-perl libdatetime-locale-perl libdatetime-perl \ libdatetime-timezone-perl libdbd-mysql-perl libdbi-perl libgd-barcode-perl \ libhtml-template-pro-perl libimage-magick-perl liblingua-ispell-perl \ liblingua-stem-perl liblist-moreutils-perl liblocale-gettext-perl \ liblocale-po-perl libmail-sendmail-perl libmarc-charset-perl \ libmarc-crosswalk-dublincore-perl libmarc-record-perl libmarc-xml-perl \ libmime-lite-perl libnet-ldap-perl libnet-z3950-zoom-perl libpdf-api2-perl \ libpdf-reuse-barcode-perl libpdf-reuse-perl libpoe-perl libschedule-at-perl \ libtext-charwidth-perl libtext-csv-perl libtext-csv-xs-perl libtext-iconv-perl \ libtext-wrapi18n-perl libtimedate-perl libtime-duration-perl \ libtime-format-perl libunix-syslog-perl libxml-dom-perl libxml-dumper-perl \ libxml-libxml-perl libxml-libxslt-perl libxml-namespacesupport-perl \ libxml-parser-perl libxml-perl libxml-regexp-perl libxml-rss-perl \ libxml-sax-perl libxml-simple-perl libxml-xslt-perl libyaml-syck-perl
And from CPAN:
Algorithm::CheckDigits::M43_001 GD::Barcode::UPCE MARC::File::XML
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' default-character-set=utf8 character-set-server=utf8 character_set_client=utf8 collation-server=utf8_general_ci skip-character-set-client-handshake # because none of the above settings actually work
Set Up Database
In MySQL as root:
CREATE DATABASE koha DEFAULT CHARACTER SET utf8; GRANT ALL PRIVILEGES ON koha.* TO 'kohaadmin'@'localhost' IDENTIFIED BY 'whatever'; GRANT SELECT, INSERT, UPDATE, DELETE ON koha.* TO 'koha'@'localhost' IDENTIFIED BY 'whatever'; FLUSH PRIVILEGES;
Install Koha
In the git checkout:
sudo dpkg --set-selections < install_misc/debian.packages sudo dselect install
BUGS
- LAME
- MARC::File::XML does not work with Perl 5.10, therefore the whole shebang requires downgrading Perl to 5.8