kgio RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* Problem after installing kgio gem with ruby 2.0.0
@ 2014-07-25  9:16 James Smith
  2014-07-25 18:00 ` Eric Wong
  0 siblings, 1 reply; 3+ messages in thread
From: James Smith @ 2014-07-25  9:16 UTC (permalink / raw)
  To: kgio

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem after installing kgio gem with ruby 2.0.0
  2014-07-25  9:16 Problem after installing kgio gem with ruby 2.0.0 James Smith
@ 2014-07-25 18:00 ` Eric Wong
  2014-07-28 12:47   ` James Smith
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Wong @ 2014-07-25 18:00 UTC (permalink / raw)
  To: kgio

James Smith <james@abelsoninfo.com> wrote:
> 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.

Hi James, thanks for the report.
How did you install build and install Ruby + RubyGems?

Can you reproduce the problem on other C extension gems with
ruby 2.0.0-p247 and RubyGems 1.8.24?

I suspect this to be a problem with the Ruby/RubyGems installation
itself and perhaps a bug of your distribution/build/install tools.

Since you have no problem with Ruby 2.1.2p95, I do not think it is
a problem specific to kgio.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem after installing kgio gem with ruby 2.0.0
  2014-07-25 18:00 ` Eric Wong
@ 2014-07-28 12:47   ` James Smith
  0 siblings, 0 replies; 3+ messages in thread
From: James Smith @ 2014-07-28 12:47 UTC (permalink / raw)
  To: kgio

Hi Eric,

Ruby and RubyGems were built from source.

Unfortunately I didn't have time to be more thorough (had to get the server
up and running ASAP) but a whole bunch of other Gems (including Nokogiri,
which I think uses C extensions no?) were installing fine. Just thought it
would be useful to report what I'd found to the mailing list.

Thanks,
James.


On 25 July 2014 19:00, Eric Wong <normalperson@yhbt.net> wrote:

> James Smith <james@abelsoninfo.com> wrote:
> > 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.
>
> Hi James, thanks for the report.
> How did you install build and install Ruby + RubyGems?
>
> Can you reproduce the problem on other C extension gems with
> ruby 2.0.0-p247 and RubyGems 1.8.24?
>
> I suspect this to be a problem with the Ruby/RubyGems installation
> itself and perhaps a bug of your distribution/build/install tools.
>
> Since you have no problem with Ruby 2.1.2p95, I do not think it is
> a problem specific to kgio.
>



-- 

James Smith



Abelson Info

Barley Mow Centre

10 Barley Mow Passage

London W4 4PH



[t] 020 3735 5322

[e] james@abelsoninfo.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-28 12:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-25  9:16 Problem after installing kgio gem with ruby 2.0.0 James Smith
2014-07-25 18:00 ` Eric Wong
2014-07-28 12:47   ` James Smith

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).