2010年10月30日土曜日

ruby1.9.2 + gtk2-0.90.5 gtk_demo:main.rb no such file to load

ruby1.9.2に gtk2-0.90.5を入れたのですがgtk_demo:main.rbでWidget(double click for demo)を
の項目をdouble clickするとin `require': no such file to load -- となります。

ruby 1.9.2p0 (2010-08-18) [i386-mingw32]

C:\Documents and Settings\takashi>gem install gtk2
Temporarily enhancing PATH to include DevKit...
Successfully installed pkg-config-1.0.7
Successfully installed cairo-1.10.0-x86-mingw32
Successfully installed glib2-0.90.2-x86-mingw32
Successfully installed pango-0.90.2-x86-mingw32
Successfully installed atk-0.90.2-x86-mingw32
Successfully installed gtk2-0.90.2-x86-mingw32
6 gems installed
Installing ri documentation for pkg-config-1.0.7...
Installing ri documentation for cairo-1.10.0-x86-mingw32...

RDoc::Parser::Ruby failure around line 131 of
lib/cairo.rb

Before reporting this, could you check that the file you're documenting
compiles cleanly--RDoc is not a full Ruby parser, and gets confused easily if
fed invalid programs.

The internal error was:

(RDoc::Error) Name or symbol expected (got #)

ERROR: While generating documentation for cairo-1.10.0-x86-mingw32
... MESSAGE: Name or symbol expected (got #)
... RDOC args: lib
(continuing with the rest of the installation)
Installing ri documentation for glib2-0.90.2-x86-mingw32...
Installing ri documentation for pango-0.90.2-x86-mingw32...
Installing ri documentation for atk-0.90.2-x86-mingw32...
Installing ri documentation for gtk2-0.90.2-x86-mingw32...
Installing RDoc documentation for pkg-config-1.0.7...
Installing RDoc documentation for cairo-1.10.0-x86-mingw32...

RDoc::Parser::Ruby failure around line 131 of
lib/cairo.rb

Before reporting this, could you check that the file you're documenting
compiles cleanly--RDoc is not a full Ruby parser, and gets confused easily if
fed invalid programs.

The internal error was:

(RDoc::Error) Name or symbol expected (got #)

ERROR: While generating documentation for cairo-1.10.0-x86-mingw32
... MESSAGE: Name or symbol expected (got #)
... RDOC args: lib
(continuing with the rest of the installation)
Installing RDoc documentation for glib2-0.90.2-x86-mingw32...
Installing RDoc documentation for pango-0.90.2-x86-mingw32...
Installing RDoc documentation for atk-0.90.2-x86-mingw32...
Installing RDoc documentation for gtk2-0.90.2-x86-mingw32...

C:\Documents and Settings\takashi>cd C:\ruby\Ruby192\lib\ruby\gems\1.9.1\gems\gtk2-0.90.2-x86-mingw32\sample\gtk-demo

C:\ruby\Ruby192\lib\ruby\gems\1.9.1\gems\gtk2-0.90.2-x86-mingw32\sample\gtk-demo>ruby main.rb
:29:in `require': no such file to load -- gdk_pixbuf2 (LoadError)
from :29:in `require'
from C:/ruby/Ruby192/lib/ruby/gems/1.9.1/gems/gtk2-0.90.2-x86-mingw32/lib/gtk2/base.rb:27:in `'
from :29:in `require'
from :29:in `require'
from C:/ruby/Ruby192/lib/ruby/gems/1.9.1/gems/gtk2-0.90.2-x86-mingw32/lib/gtk2.rb:11:in `'
from :33:in `require'
from :33:in `rescue in require'
from :29:in `require'
from main.rb:11:in `
'

C:\ruby\Ruby192\lib\ruby\gems\1.9.1\gems\gtk2-0.90.2-x86-mingw32\sample\gtk-demo>gem install gdk_pixbuf2
Temporarily enhancing PATH to include DevKit...
Successfully installed glib2-0.90.5-x86-mingw32
Successfully installed gdk_pixbuf2-0.90.5-x86-mingw32
2 gems installed
Installing ri documentation for glib2-0.90.5-x86-mingw32...
Installing ri documentation for gdk_pixbuf2-0.90.5-x86-mingw32...
Installing RDoc documentation for glib2-0.90.5-x86-mingw32...
Installing RDoc documentation for gdk_pixbuf2-0.90.5-x86-mingw32...

C:\ruby\Ruby192\lib\ruby\gems\1.9.1\gems\gtk2-0.90.2-x86-mingw32\sample\gtk-demo>ruby main.rb
C:/ruby/Ruby192/lib/ruby/1.9.1/rubygems.rb:238:in `activate': can't activate glib2 (>= 0.90.5, runtime) for ["gdk_pixbuf2-0.90.5
-x86-mingw32"], already activated glib2-0.90.2-x86-mingw32 for ["gtk2-0.90.2-x86-mingw32"] (Gem::LoadError)
from C:/ruby/Ruby192/lib/ruby/1.9.1/rubygems.rb:254:in `block in activate'
from C:/ruby/Ruby192/lib/ruby/1.9.1/rubygems.rb:253:in `each'
from C:/ruby/Ruby192/lib/ruby/1.9.1/rubygems.rb:253:in `activate'
from C:/ruby/Ruby192/lib/ruby/1.9.1/rubygems.rb:1119:in `try_activate'
from :32:in `rescue in require'
from :29:in `require'
from C:/ruby/Ruby192/lib/ruby/gems/1.9.1/gems/gtk2-0.90.2-x86-mingw32/lib/gtk2/base.rb:27:in `'
from :29:in `require'
from :29:in `require'
from C:/ruby/Ruby192/lib/ruby/gems/1.9.1/gems/gtk2-0.90.2-x86-mingw32/lib/gtk2.rb:11:in `'
from :33:in `require'
from :33:in `rescue in require'
from :29:in `require'
from main.rb:11:in `
'

C:\ruby\Ruby192\lib\ruby\gems\1.9.1\gems\gtk2-0.90.2-x86-mingw32\sample\gtk-demo>gem update
Updating installed gems
Updating atk
Temporarily enhancing PATH to include DevKit...
Successfully installed atk-0.90.5-x86-mingw32
Updating gtk2
Successfully installed pango-0.90.5-x86-mingw32
Successfully installed gtk2-0.90.5-x86-mingw32
Updating minitest
Successfully installed minitest-1.7.2
Updating rdoc
RDoc 2.5 did not save method parameters, so you should upgrade your rdoc-data
gem to a version >= 2.5.3.

To have ri data for core and stdlib you'll need to:

gem install rdoc-data

then run:

rdoc-data --install

To have ri data for you gems you'll also need to run:

gem rdoc --all --overwrite

If you don't want to rebuild the rdoc for `gem server`, add --no-rdoc.
Successfully installed rdoc-2.5.11
Gems updated: atk, pango, gtk2, minitest, rdoc
Installing ri documentation for atk-0.90.5-x86-mingw32...
Installing ri documentation for pango-0.90.5-x86-mingw32...
Installing ri documentation for gtk2-0.90.5-x86-mingw32...
Installing ri documentation for minitest-1.7.2...
Installing ri documentation for rdoc-2.5.11...
Installing RDoc documentation for atk-0.90.5-x86-mingw32...
Installing RDoc documentation for pango-0.90.5-x86-mingw32...
Installing RDoc documentation for gtk2-0.90.5-x86-mingw32...
Installing RDoc documentation for minitest-1.7.2...
Installing RDoc documentation for rdoc-2.5.11...

C:\ruby\Ruby192\lib\ruby\gems\1.9.1\gems\gtk2-0.90.2-x86-mingw32\sample\gtk-demo>cd C:\ruby\Ruby192\lib\ruby\gems\1.9.1\gems\gtk
2-0.90.5-x86-mingw32\sample\gtk-demo

C:\ruby\Ruby192\lib\ruby\gems\1.9.1\gems\gtk2-0.90.5-x86-mingw32\sample\gtk-demo>ruby main.rb
:29:in `require': no such file to load -- changedisplay.rb
from :29:in `require'
from main.rb:212:in `row_activated_cb'
from main.rb:182:in `block in create_tree'
from main.rb:380:in `call'
from main.rb:380:in `main'
from main.rb:380:in `
'

C:\ruby\Ruby192\lib\ruby\gems\1.9.1\gems\gtk2-0.90.5-x86-mingw32\sample\gtk-demo>ruby main.rb
:29:in `require': no such file to load -- clipboard.rb
from :29:in `require'
from main.rb:212:in `row_activated_cb'
from main.rb:182:in `block in create_tree'
from main.rb:380:in `call'
from main.rb:380:in `main'
from main.rb:380:in `
'

C:\ruby\Ruby192\lib\ruby\gems\1.9.1\gems\gtk2-0.90.5-x86-mingw32\sample\gtk-demo>ruby main.rb
:29:in `require': no such file to load -- button_box.rb
from :29:in `require'
from main.rb:212:in `row_activated_cb'
from main.rb:182:in `block in create_tree'
from main.rb:380:in `call'
from main.rb:380:in `main'
from main.rb:380:in `
'

C:\ruby\Ruby192\lib\ruby\gems\1.9.1\gems\gtk2-0.90.5-x86-mingw32\sample\gtk-demo>

0 件のコメント:

コメントを投稿