# Installation problem in rcov

**URL:** <https://www.ruby-forum.com/t/installation-problem-in-rcov/92794>\
**Category:** Rails\
**Created:** [April 24, 2007, 9:30am UTC](https://www.ruby-forum.com/t/installation-problem-in-rcov/92794 "2007-04-24T09:30:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![code\_coverage\_for\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b487fb/32.png) [@code\_coverage\_for\_R](https://www.ruby-forum.com/u/code_coverage_for_R)\
**Post date:** [April 24, 2007, 9:30am UTC](https://www.ruby-forum.com/t/installation-problem-in-rcov/92794/1 "2007-04-24T09:30:00Z")

</div>

Hi,

I am trying to install the code coverage for Ruby(rcov)… but it is  
giving the following error message in commmand prompt.

Used Ruby Version  
Ruby - 1.8.5  
Rails - 1.2.2

C:\ruby\rcov-0.8.0.2\>ruby setup.rb  
—\> bin  
\<— bin  
—\> lib  
—\> lib/rcov  
\<— lib/rcov  
\<— lib  
—\> ext  
—\> ext/rcovrt  
c:/ruby/bin/ruby.exe C:/ruby/rcov-0.8.0.2/ext/rcovrt/extconf.rb  
creating Makefile  
\<— ext/rcovrt  
\<— ext  
—\> bin  
\<— bin  
—\> lib  
—\> lib/rcov  
\<— lib/rcov  
\<— lib  
—\> ext  
—\> ext/rcovrt  
nmake  
setup.rb:655:in `command': system("nmake") failed (RuntimeError) from setup.rb:664:in`make’  
from setup.rb:1258:in `setup_dir_ext' from setup.rb:1532:in` **send** ’  
from setup.rb:1532:in `traverse' from setup.rb:1549:in`dive\_into’  
from setup.rb:1530:in `traverse' from setup.rb:1534:in`traverse’  
from setup.rb:1533:in `each' ... 7 levels... from setup.rb:996:in`exec\_setup’  
from setup.rb:813:in `invoke' from setup.rb:773:in`invoke’  
from setup.rb:1578

Please do help me with any info on the above issue…

Thanks in advance…

Regards  
Raghu M

---

<div class="post-metadata">

**Author:** ![code\_coverage\_for\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b487fb/32.png) [@code\_coverage\_for\_R](https://www.ruby-forum.com/u/code_coverage_for_R)\
**Post date:** [April 25, 2007, 2:43am UTC](https://www.ruby-forum.com/t/installation-problem-in-rcov/92794/2 "2007-04-25T02:43:22Z")

</div>

code coverage for Ruby(rcov) wrote:

> Hi,
> 
> I am trying to install the code coverage for Ruby(rcov)… but it is  
> giving the following error message in commmand prompt.
> 
> Used Ruby Version  
> Ruby - 1.8.5  
> Rails - 1.2.2

use the gem

gem install rcov

in the options select a win32 version

> —\> ext  
> —\> ext/rcovrt  
> nmake  
> setup.rb:655:in `command’: system(“nmake”) failed (RuntimeError)

The error you are seeing is because you seem to not have nmake in your  
path (or you do not have build tools installed), so calling nmake after  
creating the Makefile fails.

Stefan
