Error Installing Rcov
Contents |
Sign in Pricing Blog Support Search GitHub This repository gem rcov Watch 38 Star 419 Fork 69 relevance/rcov Code Issues
Rcov Rails
15 Pull requests 1 Projects 0 Pulse Graphs New issue fail to install 'env.h' file not found on ruby-head 2.0 #84 Closed zhangpy opened this Issue Oct 26, 2011 · 7 comments Projects None yet Labels None yet fatal error: env.h: no such file or directory Milestone No milestone Assignees No one assigned 6 participants zhangpy commented Oct 26, 2011 $ruby -v ruby 2.0.0dev (2011-10-26 trunk 33526) i686-linux $ gem install rcov Fetching: rcov-0.9.11.gem (100%) Building native extensions. This could take a while... ERROR: Error installing rcov: ERROR: Failed
Simplecov-rcov
to build gem native extension. .rvm/rubies/ruby-head/bin/ruby extconf.rb creating Makefile make compiling 1.8/rcovrt.c 1.8/rcovrt.c:2:17: fatal error: env.h: No such file or directory compilation terminated. make: *** [rcovrt.o] Error 1 drbrain commented Jan 11, 2012 I'm also experiencing this issue. Due to the "1.8" looks like there's an inadequate version check: Building native extensions. This could take a while... rake aborted! ERROR: Failed to build gem native extension. /usr/local/bin/ruby20 extconf.rb creating Makefile make compiling 1.8/callsite.c 1.8/callsite.c:2:10: fatal error: 'env.h' file not found #include
Sign in Pricing Blog Support Search GitHub This repository Watch 38 Star 419 rcov vs simplecov Fork 69 relevance/rcov Code Issues 15 Pull requests 1 Projects simplecov rails 0 Pulse Graphs New issue Can't install v1.0.0 on JRuby #92 Closed zaadjis opened this Issue Feb 16, 2012 · 1 comment Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 1 https://github.com/relevance/rcov/issues/84 participant zaadjis commented Feb 16, 2012 $ ruby --version jruby 1.6.6 (ruby-1.8.7-p357) (2012-01-30 5673572) (OpenJDK 64-Bit Server VM 1.6.0_23) [linux-amd64-java] $ gem install rcov -v '1.0.0' Building native extensions. This could take a while... ERROR: Error installing rcov: ERROR: Failed to build gem native extension. /home/zaadjis/.rvm/rubies/jruby-1.6.6/bin/jruby extconf.rb WARNING: JRuby https://github.com/relevance/rcov/issues/92 does not support native extensions or the `mkmf' library very well. Check http://kenai.com/projects/jruby/pages/Home for alternatives. creating Makefile make cc -I. -I/home/zaadjis/.rvm/rubies/jruby-1.6.6/lib/native/include -I/home/zaadjis/.rvm/rubies/jruby-1.6.6/lib/native/include/ruby -I1.8/ -fPIC -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -m64 -c 1.8/callsite.c 1.8/callsite.c:2:17: fatal error: env.h: No such file or directory compilation terminated. make: *** [callsite.o] Error 1 Gem files will remain installed in /home/zaadjis/.rvm/gems/jruby-1.6.6@test/gems/rcov-1.0.0 for inspection. Results logged to /home/zaadjis/.rvm/gems/jruby-1.6.6@test/gems/rcov-1.0.0/ext/rcovrt/gem_make.out zaadjis commented Feb 16, 2012 Duplicate of #90, sorry for the noise. zaadjis closed this Feb 16, 2012 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. Terms Privacy Security Status Help You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about http://stackoverflow.com/questions/3451346/cannot-install-rcov-from-gem Stack Overflow the company Business Learn more about hiring developers or posting ads with http://technicalpickles.com/posts/rcov-for-almost-any-occasion/ us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Cannot install RCov from Gem up vote 0 down vote favorite gem install rcov error installing Error: Building native extensions. This could take a while... ERROR: Error installing rcov: ERROR: Failed to build gem native extension. "C:/Program Files/Ruby191/bin/ruby.exe" extconf.rb creating Makefile make Makefile:154: warning: overriding commands for target `C:/Program' Makefile:148: warning: ignoring old commands for target `C:/Program' make: *** No rule to make target `"/C/Program', needed by `callsite.o'. Stop. Gem files will remain installed in C:/Program Files/Ruby191/lib/ruby/gems/1.9.1/gems/rcov-0.9.8 for inspection. Results logged to C:/Program Files/Ruby191/lib/ruby/gems/1.9.1/gems/rcov-0.9.8/ext/rcovrt/gem_make.out This output error installing rcov is now after installing DevKit - to the root Ruby folder. ruby install gem share|improve this question edited Aug 10 '10 at 17:03 asked Aug 10 '10 at 16:48 Finglas 10.3k64075 I should add this fails from the command line, and via Netbeans too. –Finglas Aug 10 '10 at 16:49 add a comment| 3 Answers 3 active oldest votes up vote 2 down vote Indeed, Gem is trying to compile the software for your OS (Windows, apparently). If you are using the RubyInstaller (rather than the incomplete packages at http://ruby-lang.org), you should add the DevKit and you will get tools like make, gcc, etc. that will be able to compile many of the gems natively. Otherwise, you should be able to use the Win32 binary version of the Rcov gem. Sadly, the DevKit can't always compile every gem on Win32. But first, a question: did you follow Step 2 of the DevKit's installation instructions to edit the fstab file? If so, then the next best thing to do is email the RubyInstaller Google Group with details of the compilation problem. I just tried the Win32 binary rcovrt.so from the Rcov site on my own Windows box, but it doesn't recognize as a valid Windows image, a
you tweet TumblrIf you're ADD RCov for almost any occasion I hope I don’t have to tell you why it’s awesome to be testing. I’ll take that as a given. Once you’re testing, it is useful to be able to see much of your code is being touched by your tests. This is where rcov makes an entrance. It does some sorcery in order to do just that: tell you what lines of your code your tests ran. I’m not going to talk about the pros/cons of using code coverage, just going to tell you how to use rcov in most Ruby projects you might run into. For further reading, here’s some linkly love to get you started: Code coverage on wikipedia How effective is code coverage? on LinkedIn Answers I’m mainly putting this together because I always had trouble finding it myself, and figured it’d be useful to have for future reference. Get ur rcov right here The main rcov website can be found here. I have seen some annoying segfault problems when running that version, so have taken to using this variation on GitHub. Install it with: # Run the following if you haven't already: gem sources -a http://gems.github.com # Install the gem: sudo gem install spicycode-rcov Using it I’ve wanted to use rcov in three different settings. I’m sure there’s more, but it’s what I’ve dealt with so far. A RubyGem project using Test::Unit A RubyGem project using RSpec A Rails project RubyGem using Rake and Test::Unit You just need to update your Rakefile to include something like: require 'rcov/rcovtask' Rcov::RcovTask.new do |t| t.