* ERROR: Failed to build gem native extension.
@ 2011-03-14 4:14 Gus
2011-03-14 4:39 ` Eric Wong
0 siblings, 1 reply; 3+ messages in thread
From: Gus @ 2011-03-14 4:14 UTC (permalink / raw)
To: kgio
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 */
--------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ERROR: Failed to build gem native extension.
2011-03-14 4:14 ERROR: Failed to build gem native extension Gus
@ 2011-03-14 4:39 ` Eric Wong
2011-03-14 4:41 ` Gus
0 siblings, 1 reply; 3+ messages in thread
From: Eric Wong @ 2011-03-14 4:39 UTC (permalink / raw)
To: kgio
Gus <rtz.gus@gmail.com> wrote:
> Hello guys, I am not able to install kgio. Kgio not working on windows?
kgio is *nix only.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ERROR: Failed to build gem native extension.
2011-03-14 4:39 ` Eric Wong
@ 2011-03-14 4:41 ` Gus
0 siblings, 0 replies; 3+ messages in thread
From: Gus @ 2011-03-14 4:41 UTC (permalink / raw)
To: kgio
Thanks!
Best Regards!
2011/3/14 Eric Wong <normalperson@yhbt.net>
> Gus <rtz.gus@gmail.com> wrote:
> > Hello guys, I am not able to install kgio. Kgio not working on windows?
>
> kgio is *nix only.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-14 4:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-14 4:14 ERROR: Failed to build gem native extension Gus
2011-03-14 4:39 ` Eric Wong
2011-03-14 4:41 ` Gus
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).