Anton Anton - 1 year ago 320
Ruby Question

Error: yard not installed

I have a problem with redmine plugin migration. While migrating:

exec rake redmine:plugins:migrate RAILS_ENV=production

I get errors:

/var/lib/gems/2.3.0/gems/htmlentities-4.3.1/lib/htmlentities/mappings/expanded.rb:465: warning: key "inodot" is duplicated and overwritten on line 466
yard not installed (gem install yard)
Migrating ...

Most interesting, that

sudo gem install yard


Successfully installed yard-0.9.5
Done installing documentation for yard after 0 seconds
1 gem installed

but after that

$ bundle show yard
Could not find gem 'yard'.
Did you mean yard?

So how should I install yard?

I have installed Redmine V3.3.1 on Ubuntu 16.04 with apache2 and passenger, Ruby V2.3

Answer Source

sudo gem install yard installs the gem into 1) global and 2) root-user gem scope. It has nothing to do with your local user-wide redmine application.

Did you run bundle install there in redmine dir? If no, run it, it will fix everything.

If yes, this should be a redmine issue, open it's Gemfile with an editor of your choice and put there gem 'yard'.

If none of the above helped, that might be also an issue with your local bundle config, preventing installing of some environments by default. Examine and (it should be safe) delete file .bundle/config inside redline root directory.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download