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

Nic Williams drnicwilliams at gmail.com
Fri Jul 20 09:56:10 EDT 2007


You are right. It is wrong for "god to be dependent upon daemons. Just seems
wrong somehow :)

On 7/20/07, Rick DeNatale <rick.denatale at gmail.com> wrote:
>
> 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/
> _______________________________________________
> Rubygems-developers mailing list
> Rubygems-developers at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rubygems-developers
>



-- 
Dr Nic Williams
http://drnicacademy.com - Ruby/Rails training around the world
http://drnicwilliams.com - Ruby/Rails/Javascript/Web2.0
skype: nicwilliams
(p) +61 7 3102 3237 (Finds me anywhere in the world, via Skype)
(m) +4673 681 5093 (Swedish mobile)
(f) +61 7 3305 7572 (sends fax to my email)
mail) Tele2 AB, c/o Berit Bergstrom
Archimedesvagen 4, Bromma, 16866, Sweden
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rubygems-developers/attachments/20070720/f9a553c5/attachment.html 


More information about the Rubygems-developers mailing list