relevance / rcov

The new home of RCov on GitHub
https://github.com/relevance/rcov
Other
408 stars 64 forks source link

Failure to build rcov with ruby 2.0.0 (Rails 4/RVM) #99

Closed jdee closed 11 years ago

jdee commented 11 years ago

I get this error when running bundle install with rcov and ruby 2.0.0 (Rails 4/RVM). Installing rcov (0.9.11)

  Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

  /Users/jdee/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb 
  creating Makefile

  make "DESTDIR="
  compiling 1.8/callsite.c
  1.8/callsite.c:2:10: fatal error: 'env.h' file not found
  #include <env.h>
         ^
  1 error generated.
  make: *** [callsite.o] Error 1

I can install properly with ruby 1.9.3, but Rails 4 recommends 2.0, and I'm having some other problems with 1.9.3. For now, I'll eliminate rcov from my bundle.

tarumalik commented 11 years ago

I too get this error.. any solution available to fix this?

Pls share

jdee commented 11 years ago

I'm not certain if this repo is actively updated. The last code update was a year ago. I switched to simplecov, which has worked well.

abedra commented 11 years ago

RCov does not work with Ruby 1.9+. Please use simplecov.

tarumalik commented 11 years ago

okay, thanks..

kennym commented 10 years ago

thanks for pointing out to use simplecov.