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
’
El Jueves, 3 de Diciembre de 2009, Wybo D.
escribió:> $ 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?
Iñaki Baz C. wrote:
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)
Wybo D. wrote:
Iñaki Baz C. wrote:
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)
Here: http://isitruby19.com/rio
-Justin
Wybo D. wrote:
(I assumed that, where 1.9.1 currently is the recommended ruby version,
It’s not recommended by everybody 
El Jueves, 3 de Diciembre de 2009, Wybo D.
escribió:> Iñaki Baz C. wrote:
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)
There are lots of gems (or ruby libraries) not ready for Ruby 1.9. some
of
them don’t compile as they include C extensions not adapted for Ruby1.9.
Some
others don’t work as Ruby1.9 is not full backwards compatible with
Ruby1.8.
You should check it in the project page.
Morning Wybo,
On Thu, Dec 3, 2009 at 3:55 AM, Wybo D. [email protected] wrote:
Since moving to ruby-1.9.1-p243, when I try to install the rio gem, I get:
You can use my fork at GitHub - wishdev/rio: A facade for most of the standard ruby classes that deal with I/O; Rio also provides an application level interface which allows many common I/O idioms to be expressed succinctly 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
On Dec 3, 2009, at 03:55 , Wybo D. wrote:
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
that’s old rdoc. not sure how/why you’re hitting that. But sudo gem install rdoc
and try rio again.
John W Higgins wrote:
You can use my fork at GitHub - wishdev/rio: A facade for most of the standard ruby classes that deal with I/O; Rio also provides an application level interface which allows many common I/O idioms to be expressed succinctly 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.