一生全力モラトリアム

Long long time is ago.

Windowsでmikutter

ておくれてないんですけどまあRuby入門ということでやってます。
久しぶりのプログラムはあれだ、頭使って苦しい。楽しいんだけどね。
やること
http://makebooth.com/i/wBCYU
を参照しつつコマンドプロンプトでダウソ、移動、実行の無限ループ苦しい。

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\limelite>ruby -v
ruby 1.8.7 (2009-12-24 patchlevel 248) [i386-mswin32]

C:\Users\limelite>gem install gtk2
Building native extensions. This could take a while...
ERROR: Error installing gtk2:
ERROR: Failed to build gem native extension.
C:/rumix/ruby/bin/ruby.exe extconf.rb
checking for -Wall option to compiler... no
checking for -Waggregate-return option to compiler... no
checking for -Wcast-align option to compiler... no
checking for -Wextra option to compiler... no
checking for -Wformat=2 option to compiler... no
checking for -Winit-self option to compiler... no
checking for -Wlarger-than-65500 option to compiler... no
checking for -Wmissing-declarations option to compiler... no
checking for -Wmissing-format-attribute option to compiler... no
checking for -Wmissing-include-dirs option to compiler... no
checking for -Wmissing-noreturn option to compiler... no
checking for -Wmissing-prototypes option to compiler... no
checking for -Wnested-externs option to compiler... no
checking for -Wold-style-definition option to compiler... no
checking for -Wpacked option to compiler... no
checking for -Wp,-D_FORTIFY_SOURCE=2 option to compiler... no
checking for -Wpointer-arith option to compiler... no
checking for -Wswitch-default option to compiler... no
checking for -Wswitch-enum option to compiler... no
checking for -Wundef option to compiler... no
checking for -Wunsafe-loop-optimizations option to compiler... no
checking for -Wwrite-strings option to compiler... no
checking for rb_define_alloc_func() in ruby.h... no
checking for rb_block_proc() in ruby.h... no
checking for new allocation framework... yes
checking for attribute assignment... no
checking for Win32 OS... yes
checking for gobject-2.0... no
checking for brew... no
checking for port... no

extconf.rb failed ***

Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--srcdir=.
--curdir
--ruby=C:/rumix/ruby/bin/ruby
--with-pkg-config
--without-pkg-config
--with-override-variables
--without-override-variables
Gem files will remain installed in C:/rumix/ruby/lib/ruby/gems/1.8/gems/glib2-1.
1.9 for inspection.
Results logged to C:/rumix/ruby/lib/ruby/gems/1.8/gems/glib2-1.1.9/ext/glib2/gem
_make.out
C:\Users\limelite>
C:\Users\limelite>
C:\Users\limelite>
C:\Users\limelite>ruby -e "require 'gtk2'

  • e:1:in `require': no such file to load -- gtk2 (LoadError)

from -e:1
C:\Users\limelite>ruby -e "require 'gtk2'"

  • e:1:in `require': no such file to load -- gtk2 (LoadError)

from -e:1
C:\Users\limelite>ruby -e "require 'gtk2';Gtk::Window.new.show;Gtk.main"

  • e:1:in `require': no such file to load -- gtk2 (LoadError)

from -e:1
C:\Users\limelite>gem install ruby-hmac
Successfully installed ruby-hmac-0.4.0
1 gem installed
Installing ri documentation for ruby-hmac-0.4.0...
Installing RDoc documentation for ruby-hmac-0.4.0...

C:\Users\limelite>ruby -e "require 'gtk2'"

  • e:1:in `require': no such file to load -- gtk2 (LoadError)

from -e:1

C:\Users\limelite>gem install ruby-hmac
Successfully installed ruby-hmac-0.4.0
1 gem installed
Installing ri documentation for ruby-hmac-0.4.0...
Installing RDoc documentation for ruby-hmac-0.4.0...

C:\Users\limelite>
C:\Users\limelite>ruby mikutter.rb
ruby: No such file or directory -- mikutter.rb (LoadError)

C:\Users\limelite>setrbvars.bat
ruby 1.8.7 (2012-10-12 patchlevel 371) [i386-mingw32]

C:\Users\limelite>mikutter.rb
'mikutter.rb' は、内部コマンドまたは外部コマンド、
操作可能なプログラムまたはバッチ ファイルとして認識されていません。

C:\Users\limelite>C:\mikutter
'C:\mikutter' は、内部コマンドまたは外部コマンド、
操作可能なプログラムまたはバッチ ファイルとして認識されていません。

C:\Users\limelite>cd c:\mikutter

c:\mikutter>mikutter.rb
アクセスが拒否されました。

c:\mikutter>mikutter.rb
アクセスが拒否されました。

c:\mikutter>

gtk2がうまくインストールされてないくさいなー。むむむ。
ちなみにmikutter.rbで実行すると「どのファイルで実行いたしますか?」的なアラートが出るからやっぱりgtk2まわりか…。