From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS6939 64.71.128.0/18 X-Spam-Status: No, score=-0.4 required=3.0 tests=AWL,BAYES_00,FREEMAIL_FROM, MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=ham version=3.3.2 Path: news.gmane.org!not-for-mail From: Mark Peterson Newsgroups: gmane.comp.lang.ruby.kgio.general Subject: JRuby Support Date: Thu, 1 Mar 2012 20:22:22 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: dough.gmane.org 1330651372 15147 80.91.229.3 (2 Mar 2012 01:22:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Mar 2012 01:22:52 +0000 (UTC) To: kgio@librelist.org Original-X-From: kgio@librelist.org Fri Mar 02 02:22:48 2012 Return-path: Envelope-to: gclrkg-kgio@m.gmane.org In-Reply-To: List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Precedence: list Original-Sender: kgio@librelist.org Xref: news.gmane.org gmane.comp.lang.ruby.kgio.general:83 Archived-At: Received: from zedshaw.xen.prgmr.com ([64.71.167.205]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S3HCo-0000Tv-03 for gclrkg-kgio@m.gmane.org; Fri, 02 Mar 2012 02:22:46 +0100 Received: from zedshaw.xen.prgmr.com (localhost [IPv6:::1]) by zedshaw.xen.prgmr.com (Postfix) with ESMTP id EB77221D3BD for ; Fri, 2 Mar 2012 01:28:31 +0000 (UTC) Content-Transfer-Encoding: 7bit X-Content-Filtered-By: PublicInbox::Filter 0.0.1 I have unicorn and kgio working on Ruby on Rails app, but cannot install kgio on JRuby environment. It installs fine with regular Ruby 1.9.2, but on JRuby 1.6.7, running ruby 1.9.2 it gives the errors below. My environment: jruby 1.6.7 (ruby-1.9.2-p312) (2012-02-22 3e82bc8) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_29) [darwin-x86_64-java] Installing kgio (2.7.2) with native extensions Gem::Installer:: ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/MYUSERNAME/.rvm/rubies/jruby-1.6.7/bin/jruby extconf.rb WARNING: JRuby does not support native extensions or the `mkmf' library very well. Check http://kenai.com/projects/jruby/pages/Home for alternatives. checking for CLOCK_MONOTONIC in time.h... no checking for CLOCK_MONOTONIC() in time.h... no checking for clockid_t in time.h... no checking for clock_gettime() in -lrt... no checking for t_open() in -lnsl... no checking for socket() in -lsocket... no checking for poll() in poll.h... checking for getaddrinfo() in sys/types.h,sys/socket.h,netdb.h... yes checking for getnameinfo() in sys/types.h,sys/socket.h,netdb.h... yes checking for struct sockaddr_storage in sys/types.h,sys/socket.h... yes checking for accept4() in sys/socket.h... no checking for sys/select.h... yes checking for ruby/io.h... no checking for OpenFile in ruby.h,rubyio.h... yes checking for OpenFile.f in ruby.h,rubyio.h... yes checking for OpenFile.f2 in ruby.h,rubyio.h... no checking for OpenFile.mode in ruby.h,rubyio.h... yes checking for OpenFile.path in ruby.h,rubyio.h... no checking for rb_fdopen()... no checking for struct RFile in ruby.h,rubyio.h... no checking for struct RObject... no checking size of int... ./conftest: ./conftest: cannot execute binary file TypeError: can't convert nil into Integer Integer at org/jruby/RubyKernel.java:433 try_constant at /Users/MYUSERNAME/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/shared/mkmf.rb:502 popen at org/jruby/RubyIO.java:3741 xpopen at /Users/MYUSERNAME/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/shared/mkmf.rb:323 open at /Users/MYUSERNAME/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/shared/mkmf.rb:260 xpopen at /Users/MYUSERNAME/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/shared/mkmf.rb:316 try_constant at /Users/MYUSERNAME/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/shared/mkmf.rb:501 check_sizeof at /Users/MYUSERNAME/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/shared/mkmf.rb:975 checking_for at /Users/MYUSERNAME/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/shared/mkmf.rb:652 postpone at /Users/MYUSERNAME/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/shared/mkmf.rb:286 open at /Users/MYUSERNAME/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/shared/mkmf.rb:260 postpone at /Users/MYUSERNAME/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/shared/mkmf.rb:286 open at /Users/MYUSERNAME/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/shared/mkmf.rb:260 postpone at /Users/MYUSERNAME/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/shared/mkmf.rb:282 checking_for at /Users/MYUSERNAME/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/shared/mkmf.rb:651 check_sizeof at /Users/MYUSERNAME/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/shared/mkmf.rb:974 (root) at extconf.rb:42 *** 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=/Users/MYUSERNAME/.rvm/rubies/jruby-1.6.7/bin/jruby --with-rtlib --without-rtlib --with-nsllib --without-nsllib --with-socketlib --without-socketlib Gem files will remain installed in /Users/MYUSERNAME/.rvm/gems/jruby-1.6.7@myproject/gems/kgio-2.7.2 for inspection. Results logged to /Users/MYUSERNAME/.rvm/gems/jruby-1.6.7@myproject /gems/kgio-2.7.2/ext/kgio/gem_make.out An error occured while installing kgio (2.7.2), and Bundler cannot continue. Make sure that gem install kgio -v '2.7.2' succeeds before bundling.