PDA

View Full Version : redmine+Harvestr - redmine ignoring user's gems



progman
04-22-2010, 12:37 AM
Hello Guys,


Have an issue and for now can't find resolution for it.

I've installed Harvetr plugin on me redmine instance
Since it require harvesr gems I've installed it as well.

But when I am running rake getting error that module still can't be found


*** LOCAL GEMS ***

actionmailer (2.3.5, 2.1.2)
actionpack (2.3.5, 2.1.2)
activerecord (2.3.5, 2.1.2)
activeresource (2.3.5, 2.1.2)
activesupport (2.3.5, 2.1.2)
crack (0.1.7)
harvestr (0.0.1)
hoe (2.6.0)
httparty (0.4.3)
json_pure (1.2.4)
mash (0.0.3)
rack (1.0.1)
rails (2.3.5, 2.1.2)
rake (0.8.7, 0.8.3)
rubyforge (2.0.4)

[~/redmine-trunk]# rake db:migrate_plugins RAILS_ENV=production
(in /home6/user/redmine-trunk)
rake aborted!
no such file to load -- harvestr



When I am running rake under strace I can see that it is not looking into user's gems libs. Only trying to find harvestr in system's paths.

The gem itself is configured with right paths. With include dir into user's gems.


Really appreciate any help.

whtvr64
05-14-2011, 07:48 AM
I am having the same issue have you found an answer yet? Any help would be appreciated!

kragacles
04-05-2012, 07:59 AM
I registered just to reply to this thread and hopefully help someone else out.

I was able to fix this problem by editing redmine's gem file: /path/to/your/redmine/Gemfile and then adding the following line very near the top, under the gem "rails" portion:
gem "harvestr", "0.0.1"

Then I called "bundle install" from the redmine/ directory to make sure everything was ok. Now the next call to "rake db:migrate_plugins RAILS_ENV=production" worked out just fine.

I guess that is how you make redmine aware of the harvestr gem.