installing DMSF plug-in on Windows (Redmine 2.0.3, danmunn / redmine_dmsf 1.4.4p1)
Added by Dies Koper over 12 years ago
I'm trying to install the redmine_dmsf plug-in on Redmine 2.0.3 on Windows and failing with the following errors:
Frst, when executing the rake migrate command from the readme:
Could not find gem 'xapian-full (>= 0) x86-mingw32' in the gems available on this machine.
Then, from bundle install:
Installing xapian-full (1.2.3) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
Then, after bundle --without=xapian (also tried C:\Redmine\redmine-2.0.3\plugins\redmine_dmsf>bundle --without test development xapian), the rake command still fails with the same error.
Finally, tried to just start Redmine (using thin) but still complaining about xapian:
c:/Ruby/ruby187/lib/ruby/gems/1.8/gems/bundler-1.1.4/lib/bundler/resolver.rb:287:in `resolve': Could not find gem 'xapian-full (>= 0) x86-mingw32' in the gems available on this machine. (Bundler::GemNotFound)
How can I install it without xapian?
Thanks!
Dies Koper
Replies (5)
RE: installing DMSF plug-in on Windows (Redmine 2.0.3, danmunn / redmine_dmsf 1.4.4p1) - Added by Jason Shen over 12 years ago
Try:
bundle --without=xapian
from within the plugin directory.
RE: installing DMSF plug-in on Windows (Redmine 2.0.3, danmunn / redmine_dmsf 1.4.4p2, PostgreSQL) - Added by Dies Koper over 12 years ago
Hi Justin,
Thanks! Looks like I was running it in the wrong directory.
Here's my result. It did install a few new gems (mysql, etc.) but this one failed:
Installing rmagick (2.13.1) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension . C:/Ruby/Ruby187/bin/ruby.exe extconf.rb checking for Ruby version >= 1.8.5... yes Invalid drive specification. Unable to get ImageMagick version *** extconf.rb failed ***
Then I tried 'bundle --without=xapian rmagick test development' and that returned no error. Does the plug-in work fine without rmagick?
Then the rake task. First it failed because of some weird first byte in init.rb but fortunately Dan just fixed that yesterday. Now it fails with the following error:
PG::Error: ERROR: column "dmsf_file_locks.id" must appear in the GROUP BY claus e or be used in an aggregate function LINE 1: SELECT "dmsf_file_locks".* FROM "dmsf_file_locks" WHERE ("... ^ : SELECT "dmsf_file_locks".* FROM "dmsf_file_locks" WHERE ("dmsf_file_locks"." id" >= 0) GROUP BY dmsf_file_id ORDER BY "dmsf_file_locks"."id" ASC LIMIT 1000
I suppose this DML doesn't work on PostgreSQL. Google tell me redmine_dmsf at least at some point supported PostgreSQL so I suppose it's a bug. Can I report this somewhere?
Is there any particular file I can look at to change the SQL to something PostgreSQL does support?
Thanks! I feel like I made a lot of progress :)
Dies
RE: installing DMSF plug-in on Windows (Redmine 2.0.3, danmunn / redmine_dmsf 1.4.4p1) - Added by Daniel Munn over 12 years ago
Dies,
Although aware that you've submitted this as a bug now (and it's been fixed) bugs for the 2.0 branch of dmsf should ideally be reported at https://github.com/danmunn/redmine_dmsf - best place as it allows me to quickly identify missed bugs without having to hunt around various sites looking for reports of problems.
Best Regards,
Dan Munn
RE: installing DMSF plug-in on Windows (Redmine 2.0.3, danmunn / redmine_dmsf 1.4.4p2) - Added by Dies Koper over 12 years ago
And to conclude this, installation completed successfully with Dan's PostgreSQL patch and I'm now ready to try out the plug-in.
Thanks Justin, thanks Dan!