Metrical won't install on ruby 1.9, because of rcov dependency. #12

johnmarkos opened this Issue Jan 27, 2012 · 9 comments


None yet

6 participants


The current version of rcov, 1.0.0, will not install on Ruby 1.9. I had to explicitly install the previous version, 0.9.11, then I could install metrical without error.

$ gem install metrical
Building native extensions.  This could take a while...
ERROR:  Error installing metrical:
    ERROR: Failed to build gem native extension.

        $USER/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
**** Ruby 1.9 is not supported. Please switch to simplecov ****

Gem files will remain installed in $USER/.rvm/gems/ruby-1.9.2-p290@/gems/rcov-1.0.0 for inspection.
Results logged to $USER/.rvm/gems/ruby-1.9.2-p290@/gems/rcov-1.0.0/ext/rcovrt/gem_make.out


$ gem install rcov --version 0.9.11
Building native extensions.  This could take a while...
WARNING: rcov-0.9.11 has an invalid nil value for @cert_chain
Successfully installed rcov-0.9.11
1 gem installed
Installing ri documentation for rcov-0.9.11...
Installing RDoc documentation for rcov-0.9.11...

$ gem install metrical
WARNING: Saikuro-1.1.0 has an invalid nil value for @cert_chain
Building native extensions.  This could take a while...
Successfully installed chronic-0.3.0
Successfully installed Saikuro-1.1.0
Successfully installed syntax-1.0.0
Successfully installed hirb-0.5.0
Successfully installed git-1.2.5
Successfully installed jeweler-1.6.4
Successfully installed json-1.6.1
Successfully installed json_pure-1.6.5
8 gems installed
Installing ri documentation for chronic-0.3.0...
Installing ri documentation for Saikuro-1.1.0...
Installing ri documentation for syntax-1.0.0...
Installing ri documentation for hirb-0.5.0...
Installing ri documentation for git-1.2.5...
Installing ri documentation for jeweler-1.6.4...
Installing ri documentation for json-1.6.1...
Installing ri documentation for json_pure-1.6.5...
Installing RDoc documentation for chronic-0.3.0...
Installing RDoc documentation for Saikuro-1.1.0...
Installing RDoc documentation for syntax-1.0.0...
Installing RDoc documentation for hirb-0.5.0...
Installing RDoc documentation for git-1.2.5...
Installing RDoc documentation for jeweler-1.6.4...
Installing RDoc documentation for json-1.6.1...
Installing RDoc documentation for json_pure-1.6.5...

That worked for me.

In Rails 3.x, you can also add

gem 'rcov', '0.9.11'
gem 'metrical'

in your Gemfile to make it work


same error + workaround that @johnmarkos

having metrical and rcov in the Gemfile is not an option for me, because it adds a lot of gem dependencies


Had same problem. This worked fine for me without need to put stuff in the Gemfile. Now metrical isntalls okay. Cheers.


+1 works for me.



rcov isn't a dependency of metrical, but of metric_fu. I cannot solve this for you

@iain iain closed this Feb 12, 2012

What if someone fork metric_fu just to remove that dependency and make metrical depending from the fork?


Now that I think of it some more, I could just depend on rcov 0.9 in metrical. This version doesn't block on 1.9.3, although it doesn't work.

@iain iain reopened this Feb 12, 2012

Worked for me, thanks!


Metrical 0.1.0 is out.

@iain iain closed this Feb 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment