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: AS47066 71.19.144.0/20 X-Spam-Status: No, score=-0.4 required=3.0 tests=AWL,BAYES_00, MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=ham version=3.3.2 Path: news.gmane.org!not-for-mail From: James Smith Newsgroups: gmane.comp.lang.ruby.kgio.general Subject: Problem after installing kgio gem with ruby 2.0.0 Date: Fri, 25 Jul 2014 10:16:04 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: ger.gmane.org 1406279798 1813 80.91.229.3 (25 Jul 2014 09:16:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Jul 2014 09:16:38 +0000 (UTC) To: kgio@librelist.org Original-X-From: kgio@librelist.org Fri Jul 25 11:16:34 2014 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:277 Archived-At: Received: from zedshaw2.xen.prgmr.com ([71.19.156.177]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XAbc3-0000ZN-Av for gclrkg-kgio@m.gmane.org; Fri, 25 Jul 2014 11:16:27 +0200 Received: from zedshaw2.xen.prgmr.com (unknown [IPv6:::1]) by zedshaw2.xen.prgmr.com (Postfix) with ESMTP id 5DB8675192 for ; Fri, 25 Jul 2014 09:26:27 +0000 (UTC) Content-Transfer-Encoding: 7bit X-Content-Filtered-By: PublicInbox::Filter 0.0.1 Hi all, I've come across a problem installing kgio which seems to leave the kgio_ext.so file in an odd location: /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/lib/usr/local/lib/ruby/site_ruby/2.0.0/x86_64-linux The problem arises when kgio attempts to load kgio_ext on line 21 of lib/kgio.rb. At that point there is a LoadError. The output from running 'sudo gem install kgio -V --no-rdoc --no-ri' is below. Here are the environment details: OS: Ubuntu Server 12 Ruby: 2.0.0-p247 Gem: 1.8.24 I got around this problem by upgrading to Ruby 2.1.2p95. I didn't try versions between 2.0.0-p247 and 2.1.2p95 so can't say when the problem goes away. Thanks, James. ### gem install output GET http://rubygems.org/latest_specs.4.8.gz 302 Moved Temporarily GET http://production.s3.rubygems.org/latest_specs.4.8.gz 200 OK GET http://rubygems.org/quick/Marshal.4.8/kgio-2.9.2.gemspec.rz 302 Moved Temporarily GET http://aws-eu-cache01.rubygems.org/quick/Marshal.4.8/kgio-2.9.2.gemspec.rz 200 OK Installing gem kgio-2.9.2 Downloading gem kgio-2.9.2.gem GET http://rubygems.org/gems/kgio-2.9.2.gem 302 Moved Temporarily GET http://aws-eu-cache01.rubygems.org/gems/kgio-2.9.2.gem Fetching: kgio-2.9.2.gem (100%) 200 OK /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/.document /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/.gitignore /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/.manifest /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/.wrongdoc.yml /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/COPYING /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ChangeLog /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/GIT-VERSION-FILE /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/GIT-VERSION-GEN /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/GNUmakefile /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/HACKING /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ISSUES /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/LATEST /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/LICENSE /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/NEWS /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/README /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/Rakefile /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/TODO /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ext/kgio/accept.c /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ext/kgio/ancient_ruby.h /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ext/kgio/autopush.c /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ext/kgio/blocking_io_region.h /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ext/kgio/broken_system_compat.h /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ext/kgio/connect.c /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ext/kgio/extconf.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ext/kgio/kgio.h /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ext/kgio/kgio_ext.c /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ext/kgio/missing_accept4.h /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ext/kgio/my_fileno.h /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ext/kgio/nonblock.h /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ext/kgio/poll.c /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ext/kgio/read.c /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ext/kgio/set_file_path.h /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ext/kgio/sock_for_fd.h /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ext/kgio/tryopen.c /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ext/kgio/wait.c /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ext/kgio/write.c /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/ext/kgio/writev.c /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/kgio.gemspec /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/lib/kgio.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/pkg.mk /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/setup.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/lib_read_write.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/lib_server_accept.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_accept_class.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_accept_flags.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_autopush.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_connect_fd_leak.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_cross_thread_close.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_default_wait.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_kgio_addr.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_no_dns_on_tcp_connect.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_peek.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_pipe_popen.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_pipe_read_write.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_poll.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_singleton_read_write.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_socket.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_socketpair_read_write.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_syssend.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_tcp6_client_read_server_write.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_tcp_client_read_server_write.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_tcp_connect.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_tcp_server.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_tcp_server_read_client_write.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_tfo.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_tryopen.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_unix_client_read_server_write.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_unix_connect.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_unix_server.rb /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/test/test_unix_server_read_client_write.rb Building native extensions. This could take a while... /usr/local/bin/ruby extconf.rb checking for CLOCK_MONOTONIC in time.h... yes checking for clockid_t in time.h... yes checking for clock_gettime() in -lrt... yes checking for t_open() in -lnsl... no checking for socket() in -lsocket... no checking for poll() in poll.h... yes 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... yes checking for sys/select.h... yes checking for writev() in sys/uio.h... yes checking for ruby/io.h... yes checking for rb_io_t.fd in ruby.h,ruby/io.h... yes checking for rb_io_t.mode in ruby.h,ruby/io.h... yes checking for rb_io_t.pathv in ruby.h,ruby/io.h... yes checking for struct RFile in ruby.h,ruby/io.h... yes checking size of struct RFile in ruby.h,ruby/io.h... 24 checking for struct RObject... yes checking size of struct RObject... 40 checking size of int... 4 checking for rb_io_ascii8bit_binmode()... yes checking for rb_update_max_fd()... yes checking for rb_fd_fix_cloexec()... yes checking for rb_cloexec_open()... yes checking for ruby/thread.h... yes checking for rb_thread_call_without_gvl() in ruby/thread.h... yes checking for rb_thread_blocking_region()... yes checking for rb_thread_io_blocking_region()... yes checking for rb_str_set_len()... yes checking for rb_time_interval()... yes checking for rb_wait_for_single_fd()... yes checking for rb_str_subseq()... yes checking for rb_ary_subseq()... yes creating Makefile make compiling autopush.c compiling accept.c compiling write.c compiling read.c compiling connect.c compiling poll.c compiling wait.c compiling kgio_ext.c compiling tryopen.c compiling writev.c linking shared-object kgio_ext.so make install /usr/bin/install -c -m 0755 kgio_ext.so /usr/local/lib/ruby/gems/2.0.0/gems/kgio-2.9.2/lib/usr/local/lib/ruby/site_ruby/2.0.0/x86_64-linux installing default kgio_ext libraries Successfully installed kgio-2.9.2 -- James Smith Abelson Info Barley Mow Centre 10 Barley Mow Passage London W4 4PH [t] 020 3735 5322 [e] james@abelsoninfo.com