[ANN] RubyGems 1.2.0

U

Une Bévue

Eric Hodel said:
If you run sudo rubygems_update now, does it install 1.2.0?

Sorry, i'm lost, not at this time :
~/gems%> sudo update_rubygems
Installing RubyGems 1.2.0
setup.rb:108: undefined method `ruby_version' for Gem:Module
(NoMethodError)
~/gems%> gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.1.0 (1.1.0)
- RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111)
[powerpc-darwin8.11.0]
- INSTALLATION DIRECTORY: /opt/local/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /opt/local/bin/ruby
- RUBYGEMS PLATFORMS:
- ruby
- powerpc-darwin-8
- GEM PATHS:
- /opt/local/lib/ruby/gems/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://gems.rubyforge.org
~/gems%>
 
R

Roger Pack

Sorry, i'm lost, not at this time :
~/gems%> sudo update_rubygems
Installing RubyGems 1.2.0
setup.rb:108: undefined method `ruby_version' for Gem:Module
(NoMethodError)
~/gems%> gem env

For some reason I had a previous version of gem that was installed in
the wrong directory--like it should have been installed in
/user/rdp/home/i386/bin but instead it was in
/user/rdp/home/i386/bin/rdp/home/i386/bin or something.

Anyway, upgrading from this state,
download rubygems-1.2.0.tgz
ran ruby setup.rb on it.

now I get something similar:
/home/rdp/i386/bin/gem:14: undefined method `ruby_version' for
Gem:Module (NoMethodError)

This means that [in this one system] even installing it from scratch
again doesn't fix the problem. Not sure what to do.
Even deleting *gem*.rb from my ruby lib directory yields


/home/rdp/i386/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:29:
warning: already initialized constant OPS
/home/rdp/i386/lib/ruby/site_ruby/1.8/rubygems/requirement.rb:32:
warning: already initialized constant OP_RE
/home/rdp/i386/usr/lib/ruby/site_ruby/1.8/rubygems/specification.rb:24:
Platform is not a module (TypeError)
from
/home/rdp/i386/usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:15:in
`require'
from
/home/rdp/i386/usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:15
from
/home/rdp/i386/usr/lib/ruby/site_ruby/1.8/rubygems/builder.rb:7:in
`require'
from
/home/rdp/i386/usr/lib/ruby/site_ruby/1.8/rubygems/builder.rb:7
from /home/rdp/i386/lib/ruby/site_ruby/1.8/rubygems.rb:769:in
`require'
from /home/rdp/i386/lib/ruby/site_ruby/1.8/rubygems.rb:769
from /home/rdp/i386/bin/gem:8:in `require'
from /home/rdp/i386/bin/gem:8


Hmm. Thankfully it's on a system where I don't really NEED gems, but
they are convenient.
Thanks!
-R
 
O

Orion Delwaterman

Eric said:
sonic_logger (0.1.3)
[root@AppFoot ~]# gem install sonic_logger
ERROR: could not find gem sonic_logger locally or in a repository

There was a bug fix post 1.2.0 for gems that have "" for a platform
instead of Gem::platform::RUBY.

How do I check or set the platform of my gem?
 
O

Orion Delwaterman

Roger said:
~ irb
=> "ruby"


?

Yeah mine is coming out as "ruby". Anyway I just regenerated the index
on the server and that seemed to solve the issue. Strange though
 
R

Roger Pack

/home/rdp/i386/usr/lib/ruby/site_ruby/1.8/rubygems/specification.rb:24:
Platform is not a module (TypeError)
from
/home/rdp/i386/usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:15:in
`require'
from
/home/rdp/i386/usr/lib/ruby/site_ruby/1.8/rubygems/package.rb:15
from
/home/rdp/i386/usr/lib/ruby/site_ruby/1.8/rubygems/builder.rb:7:in
`require'
from
/home/rdp/i386/usr/lib/ruby/site_ruby/1.8/rubygems/builder.rb:7
from /home/rdp/i386/lib/ruby/site_ruby/1.8/rubygems.rb:769:in
`require'
from /home/rdp/i386/lib/ruby/site_ruby/1.8/rubygems.rb:769
from /home/rdp/i386/bin/gem:8:in `require'
from /home/rdp/i386/bin/gem:8

As a note--was able to overcome this by doing rm -rf .../lib/ruby,
reinstalling ruby, and then reinstalling gems, in case it's useful to
anyone else.
-=R
 
G

Giang Nguyen

Orion said:
Yeah mine is coming out as "ruby". Anyway I just regenerated the index
on the server and that seemed to solve the issue. Strange though

Did you successfully install sonic_logger gem? I'm facing the same
problem as in your first post.

Can anyone tell me how to fix? where to find sonic_logger gem?
thanks
 

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,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top