From: piir@... (Todd Gardner) Date: 2004-06-12T17:48:40+09:00 Subject: Re: Graphing 2Ds in Python is pretty easy... Kaspar, I am quite the novice to ruby however, I'm willing to try to get this code running. I have no idea what might be important so I have just copy a bunch of things into here. Story for the multitude. Let me tell you what I believe I have done up to this point. ============================================= I installed: ruby181-13.exe ============================================= I had previously installed: Python-2.3.2-1.exe ============================================= I typed: gem --install-stub -i RMagick-win32-1.5.0-mswin32.gem Which returned: Attempting local installation of 'RMagick-win32-1.5.0-mswin32.gem' Successfully installed RMagick-win32 version 1.5.0 ============================================= > | Tim, > | I get an identical error. I can't run any script that uses (require > | 'RMagick'), however it said that it installed 1.5 O.K. I am using > | Windows 2000 :( > | Todd > Allow me to barge in... The 1.5.0 binary gem release is quite new and > you might actually be the first trying to really put it to use on a > windows 2k machine. > Can you verify the following: > a) Can you > ~ require 'rubygems' > ~ require_gem 'RMagick' > ~ from irb ? ================================================= from SciTE irb(main):001:0> require 'rubygems' => true irb(main):002:0> require_gem 'RMagick' NameError: uninitialized constant Magick from c:/ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.5.0-mswin32/lib/RMag ick.rb:5 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:54:in `require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:54:in `require_gem' from (irb):2 irb(main):003:0> exit ============================================== > b) Does your gem installation look ok ? When press F5 from SciTE Version 1.59: E:\Documents and Settings\tnt\ruby\Ruby Gems\rubygems-0.6.1\install.rb I get back: ruby install.rb Successfully built RubyGem Name: sources Version: 0.0.1 File: sources-0.0.1.gem Successfully installed sources version 0.0.1 >Exit code: 0 ============================================= When I type into the MS-DOS promt: gem --local --info progressbar I see: --- !ruby/object:Gem::Specification rubygems_version: "0.6" name: progressbar version: !ruby/object:Gem::Version version: 0.0.3 date: 2004-06-12 00:53:20.171000 -07:00 platform: summary: "Ruby/ProgressBar is a text progress bar library for Ruby. It can indicate progress with percentage, a progress bar, and estimated remaining time." require_paths: - lib files: - sample/test.rb - lib/progressbar.rb - docs/progressbar.en.rd - docs/progressbar.ja.rd - ChangeLog autorequire: progressbar author: Satoru Takabayashi required_ruby_version: !ruby/object:Gem::Version::Requirement requirements: - - ">" - !ruby/object:Gem::Version version: 0.0.0 email: satoru@namazu.org homepage: http://namazu.org/~satoru/ruby-progressbar/ ========================================== > RMagick.so and RMagick.rb there, RMagick.so C:\ruby\lib\ruby\gems\1.8\gems\RMagick-win32-1.5.0-mswin32\lib 3.04 MB RMagick.rb C:\ruby\lib\ruby\site_ruby\1.8 288 bytes - and - RMagick.rb C:\ruby\lib\ruby\gems\1.8\gems\RMagick-win32-1.5.0-mswin32\lib 434 bytes =============================================================== RubyGems Documentation Index Gem Name Description Documentation progressbar-0.0.3 Ruby/ProgressBar is a text progress bar library for Ruby. It can indicate progress with percentage, a progress bar, and estimated remaining time. None installed RMagick-win32-1.5.0-mswin32 RMagick is an interface between the Ruby programming language and the ImageMagick and GraphicsMagick image processing libraries. None installed sources-0.0.1 This package provides download sources for remote gem installation None installed ============================================= gem --alien Performing the 'alien' operation Checking gem database for inconsistencies c:/ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.5.0-mswin32 c:/ruby/lib/ruby/gems/1.8/gems/sources-0.0.1 c:/ruby/lib/ruby/gems/1.8/gems/progressbar-0.0.3 RMagick-win32-1.5.0-mswin32 has 2 problems config/type-windows.mgk: installed file doesn't match original from gem lib/RMagick.rb: installed file doesn't match original from gem sources-0.0.1 has 2 problems c:/ruby/lib/ruby/gems/1.8/cache/sources-0.0.1.gem: Invalid checksum for Gem file c:/ruby/lib/ruby/gems/1.8/cache/sources-0.0.1.gem: Unmanaged files in gem: ["lib/sources.rb"] progressbar-0.0.3 has 2 problems c:/ruby/lib/ruby/gems/1.8/cache/progressbar-0.0.3.gem: Invalid checksum for Gem file c:/ruby/lib/ruby/gems/1.8/cache/progressbar-0.0.3.gem: Unmanaged files in gem: ["sample/test.rb", "lib/progressbar.rb", "docs/progressbar.ja.rd", "docs/progressbar.en.rd", "ChangeLog"] ========================================================== gem --rubygems-info RubyGems: - VERSION: 0.6 - INSTALLATION DIRECTORY: c:/ruby/lib/ruby/gems/1.8 - GEM PATH: - c:/ruby/lib/ruby/gems/1.8 - REMOTE SOURCES: - http://gems.rubyforge.org ========================================================== > another RMagick.rb in your site_ruby path ? > Your error looks like the shared object is not loaded at all. If you > hang in there, I would like to help you get this running. I would be glad to test whatever I can. > - -- > kaspar > semantics & semiotics > code manufacture > www.tua.ch/ruby Please let me know you have any questions. Thanks in advance for any suggestions. Todd