From: Gus <rtz.gus@gmail.com>
To: kgio@librelist.com
Subject: ERROR: Failed to build gem native extension.
Date: Mon, 14 Mar 2011 01:14:02 -0300 [thread overview]
Message-ID: <AANLkTimgbsLvzX7X6ZUA2jQct3Nng0WAC5hipXdRQoQd@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimgbsLvzX7X6ZUA2jQct3Nng0WAC5hipXdRQoQd@mail.gmail.com>
Hello guys, I am not able to install kgio. Kgio not working on windows?
I'm using:
rails 3.0.5
ruby 192
gem 1.6.2
Windows XP.
Below is the response to the gem install kgio, and archives gem_make.out and
mkmf.log.
Thanks for any response.
Best regards.
Gustavo
______________________________
________________________________________________________
C:\Ruby192\bin>gem install kgio
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing kgio:*
*ERROR: Failed to build gem native extension.*
*
C:/Ruby192/bin/ruby.exe extconf.rb
checking for poll() in poll.h... no
checking for getaddrinfo() in sys/types.h,sys/socket.h,netdb.h... no
getaddrinfo required
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby192/bin/ruby
Gem files will remain installed in
C:/Ruby192/lib/ruby/gems/1.9.1/gems/kgio-2.3.
2 for inspection.
Results logged to
C:/Ruby192/lib/ruby/gems/1.9.1/gems/kgio-2.3.2/ext/kgio/gem_ma
ke.out
______________________________________________________________________________________________
gem_make.out
______________________________________________________________________________________________
C:/Ruby192/bin/ruby.exe extconf.rb
checking for poll() in poll.h... no
checking for getaddrinfo() in sys/types.h,sys/socket.h,netdb.h... no
getaddrinfo required
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby192/bin/ruby
__________________________________________________________
mkmf.log
__________________________________________________________
have_func: checking for poll() in poll.h... -------------------- no
"gcc -o conftest -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32
-IC:/Ruby192/include/ruby-1.9.1/ruby/backward
-IC:/Ruby192/include/ruby-1.9.1 -I. -D_GNU_SOURCE -DPOSIX_C_SOURCE=1 -O3
-g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith
-Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c
-L. -LC:/Ruby192/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: int main() {return 0;}
/* end */
"gcc -o conftest -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32
-IC:/Ruby192/include/ruby-1.9.1/ruby/backward
-IC:/Ruby192/include/ruby-1.9.1 -I. -D_GNU_SOURCE -DPOSIX_C_SOURCE=1 -O3
-g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith
-Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c
-L. -LC:/Ruby192/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
conftest.c:5:18: fatal error: poll.h: No such file or directory
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <poll.h>
6:
7: /*top*/
8: int main() {return 0;}
9: int t() { void ((*volatile p)()); p = (void ((*)()))poll; return 0; }
/* end */
"gcc -o conftest -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32
-IC:/Ruby192/include/ruby-1.9.1/ruby/backward
-IC:/Ruby192/include/ruby-1.9.1 -I. -D_GNU_SOURCE -DPOSIX_C_SOURCE=1 -O3
-g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith
-Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c
-L. -LC:/Ruby192/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
conftest.c:5:18: fatal error: poll.h: No such file or directory
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <poll.h>
6:
7: /*top*/
8: int main() {return 0;}
9: int t() { poll(); return 0; }
/* end */
--------------------
have_func: checking for getaddrinfo() in sys/types.h,sys/socket.h,netdb.h...
-------------------- no
"gcc -o conftest -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32
-IC:/Ruby192/include/ruby-1.9.1/ruby/backward
-IC:/Ruby192/include/ruby-1.9.1 -I. -D_GNU_SOURCE -DPOSIX_C_SOURCE=1 -O3
-g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith
-Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c
-L. -LC:/Ruby192/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
conftest.c:6:24: fatal error: sys/socket.h: No such file or directory
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <sys/types.h>
6: #include <sys/socket.h>
7: #include <netdb.h>
8:
9: /*top*/
10: int main() {return 0;}
11: int t() { void ((*volatile p)()); p = (void ((*)()))getaddrinfo; return
0; }
/* end */
"gcc -o conftest -IC:/Ruby192/include/ruby-1.9.1/i386-mingw32
-IC:/Ruby192/include/ruby-1.9.1/ruby/backward
-IC:/Ruby192/include/ruby-1.9.1 -I. -D_GNU_SOURCE -DPOSIX_C_SOURCE=1 -O3
-g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith
-Wwrite-strings -Wno-missing-field-initializers -Wno-long-long conftest.c
-L. -LC:/Ruby192/lib -L. -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
conftest.c:6:24: fatal error: sys/socket.h: No such file or directory
compilation terminated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <sys/types.h>
6: #include <sys/socket.h>
7: #include <netdb.h>
8:
9: /*top*/
10: int main() {return 0;}
11: int t() { getaddrinfo(); return 0; }
/* end */
--------------------
next parent reply other threads:[~2011-03-14 4:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-14 4:14 Gus [this message]
2011-03-14 4:39 ` ERROR: Failed to build gem native extension Eric Wong
2011-03-14 4:41 ` Gus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/kgio/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTimgbsLvzX7X6ZUA2jQct3Nng0WAC5hipXdRQoQd@mail.gmail.com \
--to=rtz.gus@gmail.com \
--cc=kgio@librelist.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/kgio.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).