[Rubygems-developers] Recovery needed from power outage during gem install????

Rick DeNatale rick.denatale at gmail.com
Fri Jul 20 09:32:16 EDT 2007


Yesterday, questions of religion aside, I tried to install the god gem.
It asked me if I wanted to install the daemons gem which is a
dependency, and proceeded to do so. Shortly after that the power
failed, maybe the name of that gem is sacreligious after all.

Anyway, after power became stable I tried installing again and it
looks like gem install is trying to install from a partially
downloaded gem.  There's no indication of going to fetch anything
remotely, even if I say sudo gem install --ry god it immediately
produces a report that it's building native extensions and fails.
I've put the transcript at the end of this post.

Any idea what's going on and how to fix this?  I've already tried
moving /usr/local/lib/ruby/gems/1.8/gems/god-0.2.0/ext/god/gem_make.out
 and retrying.

Note that the /home/systemlinks/usr/... in the transcript is because
I've got my /usr directory 'mounted' via a sym link.

$ sudo gem install god
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
    ERROR: Failed to build gem native extension.

ruby extconf.rb install god
creating Makefile

make
gcc -I. -I/usr/local/lib/ruby/1.8/i686-linux
-I/usr/local/lib/ruby/1.8/i686-linux -I.  -fPIC -g -O2  -c
kqueue_handler.c
kqueue_handler.c:122:7: warning: no newline at end of file
gcc -I. -I/usr/local/lib/ruby/1.8/i686-linux
-I/usr/local/lib/ruby/1.8/i686-linux -I.  -fPIC -g -O2  -c
netlink_handler.c
netlink_handler.c:7:29: error: linux/connector.h: No such file or directory
netlink_handler.c:8:27: error: linux/cn_proc.h: No such file or directory
netlink_handler.c: In function 'nlh_handle_events':
netlink_handler.c:26: error: 'CONNECTOR_MAX_MSG_SIZE' undeclared
(first use in this function)
netlink_handler.c:26: error: (Each undeclared identifier is reported only once
netlink_handler.c:26: error: for each function it appears in.)
netlink_handler.c:55: error: dereferencing pointer to incomplete type
netlink_handler.c:57: error: dereferencing pointer to incomplete type
netlink_handler.c:58: error: 'PROC_EVENT_EXIT' undeclared (first use
in this function)
netlink_handler.c:59: error: dereferencing pointer to incomplete type
netlink_handler.c:63: error: dereferencing pointer to incomplete type
netlink_handler.c:67: error: 'PROC_EVENT_FORK' undeclared (first use
in this function)
netlink_handler.c:68: error: dereferencing pointer to incomplete type
netlink_handler.c:72: error: dereferencing pointer to incomplete type
netlink_handler.c: In function 'connect_to_netlink':
netlink_handler.c:88: error: invalid application of 'sizeof' to
incomplete type 'struct cn_msg'
netlink_handler.c:93: error: 'NETLINK_CONNECTOR' undeclared (first use
in this function)
netlink_handler.c:97: error: 'CN_IDX_PROC' undeclared (first use in
this function)
netlink_handler.c:104: error: invalid application of 'sizeof' to
incomplete type 'struct cn_msg'
netlink_handler.c:112: error: dereferencing pointer to incomplete type
netlink_handler.c:113: error: dereferencing pointer to incomplete type
netlink_handler.c:113: error: 'CN_VAL_PROC' undeclared (first use in
this function)
netlink_handler.c:114: error: dereferencing pointer to incomplete type
netlink_handler.c:115: error: dereferencing pointer to incomplete type
netlink_handler.c:116: error: dereferencing pointer to incomplete type
netlink_handler.c:117: error: dereferencing pointer to incomplete type
netlink_handler.c:117: error: 'PROC_CN_MCAST_LISTEN' undeclared (first
use in this function)
netlink_handler.c:140:7: warning: no newline at end of file
make: *** [netlink_handler.o] Error 1


Gem files will remain installed in
/usr/local/lib/ruby/gems/1.8/gems/god-0.2.0 for inspection.
Results logged to
/home/systemlinks/usr/local/lib/ruby/gems/1.8/gems/god-0.2.0/ext/god/gem_make.out

-- 
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/


More information about the Rubygems-developers mailing list