xelkano / redmine_xapian

This plugin allows searches across attachments with xapian search engine
GNU General Public License v2.0
54 stars 26 forks source link

Error: Plugin redmine_xapian was not found. #84

Closed tmc9031 closed 6 years ago

tmc9031 commented 7 years ago

Version: v1.6.7 follow 1.2. Plugin installation

bundle exec rake redmine:plugins:migrate RAILS_ENV="production" NAME=redmine_xapian
Plugin redmine_xapian was not found.

Then new version can NOT install ???

picman commented 7 years ago
  1. Do you run the migration from within the Redmine folder, e.g. `/opt/redmine'?
  2. Is the plugin installed in the plugin sub-folder, e.g. `/opt/redmine/plugins/redmine_xapian'?
hermannpencole commented 6 years ago

Hello, i have the same issue, with the last version (1.6.7) ;

# pwd
/usr/src/redmine
# ls /usr/src/redmine/plugins/redmine_xapian/
CHANGELOG  COPYRIGHT.txt  GPL.txt  Gemfile  README.md  app  assets  config  db  extra  init.rb  lib  test
# RAILS_ENV=production bundle exec rake redmine:plugins:migrate NAME=redmine_xapian
Plugin redmine_xapian was not found.
# RAILS_ENV=production bundle exec rake redmine:plugins:migrate
Migrating redhopper (Redhopper plugin)...
Migrating redmine_agile (Redmine Agile plugin (Light version))...
tiurlumbangaol commented 6 years ago

hi, i have the same problem with the last version (1.6.7) as well.

tiurlumbangaol commented 6 years ago

hi, only after i add this line : gem 'xapian-full-alaveteli' on Gemfile, then the redmine_xapian plugin detected. but is it the correct gem name? kindly inform.

picman commented 6 years ago

No it's not. It shouldn't be there.

It seems that the problem is caused at the beginning of the init.tb file:

begin
  require 'xapian'
  $xapian_bindings_available = true
rescue LoadError
  Rails.logger.warn %{No Xapian search engine interface for Ruby installed => Full-text search won't be available.
                      Install a ruby-xapian package or an alternative Xapian binding (https://xapian.org).}
  $xapian_bindings_available = false
else
....

Have you installed ruby-xapian and xapian-omega packages as described in the README file first?

If I'm right, an error message should be in production.log. "No Xapian serach engine..."

hermannpencole commented 6 years ago

👍 For me, I did not do it

acosonic commented 6 years ago

Same thing here...

Why don't you update readme and tell us what to type exactly?

gem install xy ?

acosonic commented 6 years ago

I'm also proceeding with gem install xapian-full-alaveteli, don't know what else to do.

picman commented 6 years ago

But that's wrong! xapian-full-alaveteli is obsolete and there is no up to date gem replacement. Prior the plugin installation it's necessary to install Xapian packages as described in README. The installation varies depending on OS and you should follow the instruction on https://xapian.org.

To use the full-text search engine you must install ruby-xapian and xapian-omega packages. In case of using of Bitnami stack or Ruby installed via RVM it might be necessary to install Xapian bindings from sources. See https://xapian.org for details. To index some files with omindex you may have to install some other packages like xpdf, antiword, ...

acosonic commented 6 years ago

Ok, I agree, but there is no clean instruction how to install it...

I am using rvm and my Redmine instances use different rubies across system...

Because I run multi-redmine installations on 1 host.

There is nothing here: https://xapian.org/docs/bindings/ruby/

How to install it...

Should I say gem install xapian and gem install omega?

picman commented 6 years ago

https://xapian.org/download

picman commented 6 years ago

In my case (Ubuntu/Debian):

aptitude install ruby-xapian
aptitude install xapian-omega
acosonic commented 6 years ago

Hm, but I followed

sudo apt-get install xapian-omega libxapian-dev xpdf poppler-utils \ antiword unzip catdoc libwpd-tools libwps-tools gzip unrtf catdvi \ djview djview3 uuid uuid-dev xz-utils libemail-outlook-message-perl

Then it lacks ruby-xapian

acosonic commented 6 years ago

On the Readme...

picman commented 6 years ago

I'll add it.

tiurlumbangaol commented 6 years ago

Hi @picman

yes, please add it. because i spent 2-3 days try installing xapian, both on centos and ubuntu, both are stuck.... because not success installing required library.

if you give step by step, in very specific command, and inform on which linux distro, that would be very very helpful for us.

xapian would be very very useful for us. but we are stuck installing it.

picman commented 6 years ago

Done.

acosonic commented 4 years ago

gem 'xapian-full-alaveteli'

This is still problem with Redmine 4.1 and ruby 2.6.3

However, underlying system is Ubuntu 14.04 ...

picman commented 4 years ago

Ubuntu 14.04 LTS reaches end of life on April 30, 2019. The gem xapian-full-alaveteli is not used in the plugin for quite a long time and has been replaced with ruby-xapian package. xapian-omega and ruby-xapian must be compatible in versions.