ruby-1.9.1: require 'rio' fails

W

Wybo Dekker

Since moving to ruby-1.9.1-p243, when I try to install the rio gem, I get:

$ sudo gem install -r rio
Successfully installed rio-0.4.2
1 gem installed
Installing ri documentation for rio-0.4.2...
Updating class cache with 2676 classes...
Installing RDoc documentation for rio-0.4.2...
ERROR: While executing gem ... (NameError)
uninitialized constant Generators::SM
$ ruby -v
ruby 1.9.1p243 (2009-07-16 revision 24175) [i686-linux]
$

It's not only a documentation problem: when I run this:

#!/usr/bin/env ruby
require 'rubygems'
require 'rio'
puts 'done'

I get (from the require 'rio', fatally):

/usr/local/lib/ruby/gems/1.9.1/gems/rio-0.4.2/lib/rio/base.rb:54: warning:
undefining `object_id' may cause serious problem
/usr/local/lib/ruby/gems/1.9.1/gems/rio-0.4.2/lib/rio/base.rb:54: warning:
undefining `__send__' may cause serious problem
/usr/local/lib/ruby/gems/1.9.1/gems/rio-0.4.2/lib/rio/uri/file.rb:93:in
`<module:pATTERN>': uninitialized constant URI::REGEXP::pATTERN::pARAM (NameError)
from /usr/local/lib/ruby/gems/1.9.1/gems/rio-0.4.2/lib/rio/uri/file.rb:88:in
`<module:REGEXP>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rio-0.4.2/lib/rio/uri/file.rb:87:in
`<module:URI>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rio-0.4.2/lib/rio/uri/file.rb:46:in
`<top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rio-0.4.2/lib/rio/rl/base.rb:39:in
`require'
from /usr/local/lib/ruby/gems/1.9.1/gems/rio-0.4.2/lib/rio/rl/base.rb:39:in
`<top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rio-0.4.2/lib/rio/rl/builder.rb:39:in
`require'
from /usr/local/lib/ruby/gems/1.9.1/gems/rio-0.4.2/lib/rio/rl/builder.rb:39:in
`<top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rio-0.4.2/lib/rio/factory.rb:45:in
`require'
from /usr/local/lib/ruby/gems/1.9.1/gems/rio-0.4.2/lib/rio/factory.rb:45:in
`<top (required)>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rio-0.4.2/lib/rio.rb:56:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/rio-0.4.2/lib/rio.rb:56:in `<class:Rio>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rio-0.4.2/lib/rio.rb:53:in `<module:RIO>'
from /usr/local/lib/ruby/gems/1.9.1/gems/rio-0.4.2/lib/rio.rb:52:in `<top
(required)>'
from t:3:in `require'
from t:3:in `<main>'
 
I

Iñaki Baz Castillo

El Jueves, 3 de Diciembre de 2009, Wybo Dekker escribi=F3:
Since moving to ruby-1.9.1-p243, when I try to install the rio gem, I get:
=20
$ sudo gem install -r rio
Successfully installed rio-0.4.2
1 gem installed
Installing ri documentation for rio-0.4.2...
Updating class cache with 2676 classes...
Installing RDoc documentation for rio-0.4.2...
ERROR: While executing gem ... (NameError)
uninitialized constant Generators::SM
$ ruby -v
ruby 1.9.1p243 (2009-07-16 revision 24175) [i686-linux]
$

Some gems are not ready for ruby1.9. Have you checked that?

=2D-=20
I=F1aki Baz Castillo <[email protected]>
 
W

Wybo Dekker

Iñaki Baz Castillo said:
Some gems are not ready for ruby1.9. Have you checked that?

ah - no! Where do find that?

(I assumed that, where 1.9.1 currently is the recommended ruby version, it would
be safe to use that - no warnings seen)
 
I

Iñaki Baz Castillo

El Jueves, 3 de Diciembre de 2009, Wybo Dekker escribi=F3:
=20
ah - no! Where do find that?
=20
(I assumed that, where 1.9.1 currently is the recommended ruby version, it
would be safe to use that - no warnings seen)

There are lots of gems (or ruby libraries) not ready for Ruby 1.9. some of=
=20
them don't compile as they include C extensions not adapted for Ruby1.9. So=
me=20
others don't work as Ruby1.9 is not full backwards compatible with Ruby1.8.

You should check it in the project page.=20


=2D-=20
I=F1aki Baz Castillo <[email protected]>
 
J

John W Higgins

[Note: parts of this message were removed to make it a legal post.]

Morning Wybo,

Since moving to ruby-1.9.1-p243, when I try to install the rio gem, I get:
You can use my fork at http://github.com/wishdev/rio to get a 1.9 compliant
version (well at least it works for me) - it's not a gem at the moment but
"ruby setup.rb" from the directory should get it working for you.

John
 
R

Ryan Davis

Since moving to ruby-1.9.1-p243, when I try to install the rio gem, I = get:
=20
$ sudo gem install -r rio
Successfully installed rio-0.4.2
1 gem installed
Installing ri documentation for rio-0.4.2...
Updating class cache with 2676 classes...
Installing RDoc documentation for rio-0.4.2...
ERROR: While executing gem ... (NameError)
uninitialized constant Generators::SM

that's old rdoc. not sure how/why you're hitting that. But `sudo gem =
install rdoc` and try rio again.
 
W

Wybo Dekker

John said:
You can use my fork at http://github.com/wishdev/rio to get a 1.9 compliant
version (well at least it works for me) - it's not a gem at the moment but
"ruby setup.rb" from the directory should get it working for you.

Thanks John - but I've decided to go back to ruby-1.8 and wait for a more mature
version.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top