OSDN Git Service

implement jpeg cache option.
[libre10/libre10.git] / install_Centos.sh
1 #!/bin/bash
2 echo "Libre10 installer for Centos/fedora."
3 echo "If you haven't enabled EPEL, you would better do it."
4 echo "You've already enabled EPEL?[Y/n]"
5 read YN
6 if  $YN = 'N'  ||  $YN = 'n' ; then
7         yum install cpan jre java-1.6.0 GraphicsMagick poppler-utils libyaml libyaml-devel libxml2-devel libxslt-devel libxml2 libxslt python-devel
8         yum install python-setuptools
9         easy_install pysolr
10         easy_install lxml
11         yum install PyYAML
12         cpan CGI CGI::Carp DBI DBD::SQLite Data::Dumper::Concise YAML::XS URI::Escape HTML::Template::Pro WebService::Solr File::Slurp XML::Simple
13         bash ./etc_process.sh
14 else
15         yum install cpan jre java-1.6.0 GraphicsMagick poppler-utils libyaml libyaml-devel libxml2-devel libxslt-devel libxml2 libxslt python-devel
16         yum install python-setuptools
17         easy_install pysolr
18         easy_install lxml
19         yum install PyYAML perl-DBD-SQLite perl-DBI perl-CGI per-XML-Simple perl-File-Slurp perl-Data-Dumper-Concise perl-YAML-LibYAML perl-HTML-Template-Pro perl-File-Slurp
20         cpan URI::Escape WebService::Solr
21         bash ./etc_process.sh
22 fi
23 echo "Libre10のインストールが終了しました。このあと、solrの稼働およびwwwフォルダ内のファイルをperlの実行が可能なフォルダへ移動してください。"
24 echo "設定ファイルは/etc/libre10.confにあります。"
25 echo "pdfの追加をする場合は、indexフォルダ内のpdf2xml.py ~~.pdfというように実行してください。"