-
Notifications
You must be signed in to change notification settings - Fork 26
Installation
Karel Picman edited this page Jun 12, 2015
·
1 revision
apt-get install unzip antiword ghostscript catdoc xpdf libwpd-tools libwps-tools gzip unrtf uuid-dev
git clone http://github.com/xelkano/redmine_xapian.git
cd [your Redmine folder]
bundle install
Test it first and then add as a cronjob, eg:
@daily www-data /usr/bin/xapian_indexer.rb
I thought I'd share that I have been successfully running Redmine+redmine_xapian for over a year on OpenBSD 5.4 (i386 and now amd64). Here are some of my notes, hopefully they will be useful for others.
installed OpenBSD packages (dependencies for redmine_xapian):
# output of pkg_info (my comments in parenthesis)
antiword-0.37.tgz (to index MS word files)
cairo-1.12.14p0
catdoc-0.94.2p3.tgz (to index various office docs)
djvulibre-3.5.25.3p0
e2fsprogs-1.42.7.tgz (for libuuid)
fftw3-3.2.2p2
fftw3-common-3.2.2p0
gdk-pixbuf-2.28.2p1
ghostscript-9.06p2
ghostscript-fonts-8.11p2
ImageMagick-6.7.7.7p2.tgz
jasper-1.900.1p2
jbig2dec-0.11
jbigkit-2.0
lcms2-2.4p0
libltdl-2.4.2
lzo2-2.06p0
netpbm-10.35.88p0
openjpeg-1.5.0p6
poppler-0.22.5 (for PDF index)
poppler-utils-0.22.5
shared-mime-info-1.1
ruby19-rmagick-2.13.1p4
tiff-4.0.3p2
transfig-3.2.5ap0
unrtf-0.19.3p0.tgz (to index .rtf)
unzip-6.0p2.tgz (to index various files)
xapian-core-1.2.12p0
xapian-omega-1.2.12p0
xz-5.0.5
Perl dependencies: download http://search.cpan.org/CPAN/authors/id/M/MV/MVZ/Email-Outlook-Message-0.914.tar.gz (for .msg files)
tar -zxvf Email-Outlook-Message-0.914.tar.gz
cd Email-Outlook-Message-0.914
perl Build.PL
perl Build installdeps
perl Build install
install/build notes:
cd your_path_to_redmine/plugins
git clone http://github.com/xelkano/redmine_xapian.git
vi Gemfile # change line 'gem "xapian-ruby"' to 'gem "xapian-full-alaveteli"'
rake db:migrate_plugins RAILS_ENV=“production”
cd ..
export CPPFLAGS=-I/usr/local/include
export LDFLAGS=-L/usr/local/lib
bundle install --without development test
mkdir files/xapian_index
mkdir -p /usr/local/lib/xapian-omega/bin/
ln -s /usr/local/libexec/xapian-omega/cgi-bin/outlookmsg2html /usr/local/lib/xapian-omega/bin/outlookmsg2html # path fix
/etc/rc.conf.local:
# ruby gem 'xapian-full-alaveteli' has natively built dependencies that need to be in the runtime linker configuration
# otherwise when you reboot redmine_xapian will not work
shlib_dirs="/usr/local/lib/ruby/gems/1.9.1/gems/xapian-full-alaveteli-1.2.9.5/lib"