|
From: whiteleaf <2nd...@gm...> - 2013-03-13 09:21:16
|
はじめまして whiteleaf ともうします。 Ruby-GNOME2 を Windows(7の64bit) にインストールしたところでエラーになって先に進めません。 使用した Ruby のバイナリは http://rubyinstaller.org/ の mingw 版です。 事前準備: 1. インストールしたてのまっさらな Ruby 各種 2. gem install gtk2 ■ruby 1.9.3 gtk2 が require 出来ず。 c:\Application\Ruby>ruby -ve 'require "gtk2"' ruby 1.9.3p392 (2013-02-22) [i386-mingw32] c:/Application/Ruby/193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:i n `require': 126: 指定されたモジュールが見つかりません。 - c:/Application/Ruby /193/lib/ruby/gems/1.9.1/gems/glib2-1.2.2-x86-mingw32/lib/glib2.so (LoadError) from c:/Application/Ruby/193/lib/ruby/site_ruby/1.9.1/rubygems/custom_re quire.rb:60:in `rescue in require' from c:/Application/Ruby/193/lib/ruby/site_ruby/1.9.1/rubygems/custom_re quire.rb:35:in `require' from c:/Application/Ruby/193/lib/ruby/gems/1.9.1/gems/glib2-1.2.2-x86-mi ngw32/lib/glib2.rb:100:in `rescue in <top (required)>' from c:/Application/Ruby/193/lib/ruby/gems/1.9.1/gems/glib2-1.2.2-x86-mi ngw32/lib/glib2.rb:96:in `<top (required)>' from c:/Application/Ruby/193/lib/ruby/site_ruby/1.9.1/rubygems/custom_re quire.rb:36:in `require' from c:/Application/Ruby/193/lib/ruby/site_ruby/1.9.1/rubygems/custom_re quire.rb:36:in `require' from c:/Application/Ruby/193/lib/ruby/gems/1.9.1/gems/gtk2-1.2.2-x86-min gw32/lib/gtk2/base.rb:12:in `<top (required)>' from c:/Application/Ruby/193/lib/ruby/site_ruby/1.9.1/rubygems/custom_re quire.rb:36:in `require' from c:/Application/Ruby/193/lib/ruby/site_ruby/1.9.1/rubygems/custom_re quire.rb:36:in `require' from c:/Application/Ruby/193/lib/ruby/gems/1.9.1/gems/gtk2-1.2.2-x86-min gw32/lib/gtk2.rb:11:in `<top (required)>' from c:/Application/Ruby/193/lib/ruby/site_ruby/1.9.1/rubygems/custom_re quire.rb:60:in `require' from c:/Application/Ruby/193/lib/ruby/site_ruby/1.9.1/rubygems/custom_re quire.rb:60:in `rescue in require' from c:/Application/Ruby/193/lib/ruby/site_ruby/1.9.1/rubygems/custom_re quire.rb:35:in `require' from -e:1:in `<main>' ■ruby 1.8.7 gtk2 が require 出来ず。 c:\Application\Ruby>ruby -v -rubygems -e 'require "gtk2"' ruby 1.8.7 (2012-10-12 patchlevel 371) [i386-mingw32] (このタイミングで) > ruby.exe システムエラー > コンピューターに msvcrt-ruby200.dll がないため、プログラムを開始出来ません。 > この問題を解決するには、プログラムを再インストールしてみてください。 (というエラーダイアログ×2回) c:/Application/Ruby/187/lib/ruby/gems/1.8/gems/glib2-1.2.2-x86-mingw32/lib/glib2 .so: 126: 指定されたモジュールが見つかりません。 - c:/Application/Ruby/187/lib /ruby/gems/1.8/gems/glib2-1.2.2-x86-mingw32/lib/glib2.so (LoadError) from c:/Application/Ruby/187/lib/ruby/site_ruby/1.8/rubygems/custom_requ ire.rb:60:in `require' from c:/Application/Ruby/187/lib/ruby/gems/1.8/gems/glib2-1.2.2-x86-ming w32/lib/glib2.rb:100 from c:/Application/Ruby/187/lib/ruby/site_ruby/1.8/rubygems/custom_requ ire.rb:36:in `gem_original_require' from c:/Application/Ruby/187/lib/ruby/site_ruby/1.8/rubygems/custom_requ ire.rb:36:in `require' from c:/Application/Ruby/187/lib/ruby/gems/1.8/gems/gtk2-1.2.2-x86-mingw 32/lib/gtk2/base.rb:12 from c:/Application/Ruby/187/lib/ruby/site_ruby/1.8/rubygems/custom_requ ire.rb:36:in `gem_original_require' from c:/Application/Ruby/187/lib/ruby/site_ruby/1.8/rubygems/custom_requ ire.rb:36:in `require' from c:/Application/Ruby/187/lib/ruby/gems/1.8/gems/gtk2-1.2.2-x86-mingw 32/lib/gtk2.rb:11 from c:/Application/Ruby/187/lib/ruby/site_ruby/1.8/rubygems/custom_requ ire.rb:60:in `gem_original_require' from c:/Application/Ruby/187/lib/ruby/site_ruby/1.8/rubygems/custom_requ ire.rb:60:in `require' from -e:1 ■ruby 2.0.0 (32bit版) gtk2 のインストール途中で止まる c:\Application\Ruby>gem install gtk2 Fetching: glib2-1.2.2-x86-mingw32.gem (100%) Successfully installed glib2-1.2.2-x86-mingw32 Fetching: atk-1.2.2-x86-mingw32.gem (100%) Successfully installed atk-1.2.2-x86-mingw32 Fetching: cairo-1.12.4-x86-mingw32.gem (100%) Successfully installed cairo-1.12.4-x86-mingw32 Fetching: pango-1.2.2-x86-mingw32.gem (100%) Successfully installed pango-1.2.2-x86-mingw32 Fetching: gdk_pixbuf2-1.2.2-x86-mingw32.gem (100%) Successfully installed gdk_pixbuf2-1.2.2-x86-mingw32 ERROR: Error installing gtk2: The 'gtk2' native gem requires installed build tools. Please update your PATH to include build tools or download the DevKit from 'http://rubyinstaller.org/downloads' and follow the instructions at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit' 1.9.3 で動かずに唸ってたのですが、1.8.7 でエラーダイアログが出て、これが 問題の根幹な気がしますが(リンクしてはいけないのをリンクしてる?)、 これはどのようにしたらよろしいでしょうか。 # ちなみに gtk3 も同じ状況です。 |