From: Kerry Buckley Date: 2006-05-07T19:34:08+09:00 Subject: Rcov installation failure on Mac OS X Hi, I'm obviously missing something fairly obvious, but I can't seem to get rcov 0.3.0 to install (I had the same problem with the previous version, but never got round to investigating), and I can't find anything similar in the archives or via Google. I'm running ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0] under Mac OS X 10.4.6 on a G5 Mac. This is what happens: Kerrys-G5:~/Downloads/rcov-0.3.0 kerry$ sudo ruby setup.rb Password: ---> bin <--- bin ---> ext ---> ext/rcovrt /usr/bin/ruby /Users/kerry/Downloads/rcov-0.3.0/ext/rcovrt/extconf.rb creating Makefile <--- ext/rcovrt <--- ext ---> bin <--- bin ---> ext ---> ext/rcovrt make gcc -fno-common -g -Os -pipe -fno-common -pipe -fno-common -pipe - fno-common -I. -I/usr/lib/ruby/1.8/powerpc-darwin8.0 -I/usr/lib/ruby/ 1.8/powerpc-darwin8.0 -I/Users/kerry/Downloads/rcov-0.3.0/ext/ rcovrt -c rcov.c rcov.c:27: error: parse error before 'event' rcov.c: In function 'coverage_event_hook': rcov.c:33: error: 'event' undeclared (first use in this function) rcov.c:33: error: (Each undeclared identifier is reported only once rcov.c:33: error: for each function it appears in.) rcov.c:33: error: 'RUBY_EVENT_C_CALL' undeclared (first use in this function) rcov.c:33: error: 'RUBY_EVENT_C_RETURN' undeclared (first use in this function) rcov.c:33: error: 'RUBY_EVENT_CLASS' undeclared (first use in this function) rcov.c:36: error: 'node' undeclared (first use in this function) rcov.c: In function 'cov_install_hook': rcov.c:75: error: 'RUBY_EVENT_ALL' undeclared (first use in this function) rcov.c:75: error: 'RUBY_EVENT_C_CALL' undeclared (first use in this function) rcov.c:76: error: 'RUBY_EVENT_C_RETURN' undeclared (first use in this function) rcov.c:76: error: 'RUBY_EVENT_CLASS' undeclared (first use in this function) make: *** [rcov.o] Error 1 setup.rb:655:in `command': system("make") 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:1530: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 Thanks in advance to anyone who can point me in the right direction. Kerry