Installing metric-fu is a really manual process. Copy the following and paste it in your shell:
sudo gem install flay
sudo gem install flog
sudo gem install rcov
sudo gem install railroad
sudo gem install reek
sudo gem install roodi
sudo gem install jscruggs-metric_fu -s http://gems.github.com/
6 comments ↓
That’s weird ’cause I put all those dependencies in the gemspec:
s.add_dependency(”flay”, ["> 0.0.0"])
s.add_dependency(”flog”, [">= 1.2.0"])
s.add_dependency(”rcov”, ["> 0.8.1"])
s.add_dependency(”railroad”, [">= 0.5.0"])
s.add_dependency(”reek”, ["> 0.0.0"])
s.add_dependency(”roodi”, ["> 0.0.0"])
Are they not working for you?
Hey Jake! Thanks for dropping by. No, they never work, this is the second time for me to install this, and it was the same every time.
actually you can write:
sudo gem install flay flog rcov railroad reek roodi
sudo gem install jscruggs-metric_fu -s http://gems.github.com/
Very helpful Aeldaly and Artyom. I can confirm that metri_fu 0.9.0 is not installing all the dependencies.
Also I am behind a firewall so had to use a HTTP_PROXY variable.
I am just getting started to use metric_fu.
localmac:~ user$ sudo gem install jscruggs-metric_fu
Building native extensions. This could take a while…
Successfully installed rubyforge-1.0.3
Successfully installed rake-0.8.7
Successfully installed hoe-2.3.2
Successfully installed sexp_processor-3.0.2
Successfully installed ruby_parser-2.0.3
Successfully installed flay-1.3.0
Successfully installed flog-2.1.2
Successfully installed relevance-rcov-0.8.3.4
Successfully installed mojombo-chronic-0.3.0
Successfully installed topfunky-gruff-0.3.5
Successfully installed jscruggs-metric_fu-1.1.1
11 gems installed
The issue is using ‘gem install GEM -s http://gems.github.com‘ he specifies all dependencies that are not on github. If you have github added to your sources and use ‘gem install GITHUB_USER-GEM’ it will work and install all dependencies as needed. Unfortunately this is a problem / bug in RubyGems so gem packagers can’t fix the problem, only ask that you install github as a source for RubyGems.
Leave a Comment