fc2ブログ

eclipse 4.2 + Ruby1.9.3でデバッガがインストールできない

メモメモ
RubyとEclipseでEclipseのデバッガを使いたいわけで…
色々ググっていると、linecacheと、ruby-debug-base, ruby-debug-ideが必要らしい。
gem update --systemでRubyGemを最新にした後、トライ開始

gem install linecache --include-dependencies

ERROR: Error installing linecache:
The 'linecache' 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'

なんだこれ。入れろというなら入れるけど…
rubyinstallerからDevKit-tdm-32-4.5.2-20111229-1559-sfx.exe拾ってきて実行

解凍したフォルダで
ruby dk.rb init

C:\ruby\DevKit>ruby dk.rb init
[INFO] found RubyInstaller v1.9.3 at C:/ruby

Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.

config.ymlを見直して変更?
別に変えなくてもよさそうかな

C:\ruby\DevKit>ruby dk.rb review

Based upon the settings in the 'config.yml' file generated
from running 'ruby dk.rb init' and any of your customizations,
DevKit functionality will be injected into the following Rubies
when you run 'ruby dk.rb install'.

C:/ruby

よさそう。

C:\ruby\DevKit>ruby dk.rb install

[INFO] Updating convenience notice gem override for 'C:/ruby'
[INFO] Installing 'C:/ruby/lib/ruby/site_ruby/devkit.rb'

これだけ?

C:\ruby\bin>gem install linecache --include-dependencies
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing linecache:
ERROR: Failed to build gem native extension.

C:/ruby/bin/ruby.exe extconf.rb
Can't handle 1.9.x yet
*** 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.

だめじゃん。

じゃ、1.8.7系でっ!

C:\ruby>gem install linecache --include-dependencies
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Fetching: rbx-require-relative-0.0.9.gem (100%)
Fetching: linecache-0.46.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed rbx-require-relative-0.0.9
Successfully installed linecache-0.46
2 gems installed
Installing ri documentation for rbx-require-relative-0.0.9...
Installing ri documentation for linecache-0.46...
Installing RDoc documentation for rbx-require-relative-0.0.9...
Installing RDoc documentation for linecache-0.46...

通った。

C:\ruby>gem install ruby-debug-base --include-dependencies
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Fetching: ruby-debug-base-0.10.4.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed ruby-debug-base-0.10.4
1 gem installed
Installing ri documentation for ruby-debug-base-0.10.4...
Installing RDoc documentation for ruby-debug-base-0.10.4...

通った。

C:\ruby>gem install ruby-debug-ide --include-dependencies
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Fetching: rake-10.0.3.gem (100%)
Fetching: ruby-debug-ide-0.4.16.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed rake-10.0.3
Successfully installed ruby-debug-ide-0.4.16
2 gems installed
Installing ri documentation for rake-10.0.3...
Installing ri documentation for ruby-debug-ide-0.4.16...
Installing RDoc documentation for rake-10.0.3...
Installing RDoc documentation for ruby-debug-ide-0.4.16...

通った。

eclipseのデバッグエンジンの設定を高速 ruby デバッガーに設定。

動かしてみる…

rubydebug.gif

動いた…!
DevKitが1.9.3に対応していなかっただけからか~

まぁ、仕事でもないからこれでOK!





02/17のツイートまとめ

makumaqu

エルシニアシュードツベルクローシス菌、終息 : 科学 : YOMIURI ONLINE(読売新聞) http://t.co/N0wmbKAQタイトルだけ見て、菌種自体が絶滅したのかと思った。
02-17 21:54

02/17のツイートまとめ

makumaqu

エルシニアシュードツベルクローシス菌、終息 : 科学 : YOMIURI ONLINE(読売新聞) http://t.co/N0wmbKAQタイトルだけ見て、菌種自体が絶滅したのかと思った。
02-17 21:54

お願いの木

お願いの木

広い草原の真ん中に
お願いの木が立っている。

木が自分でつけた名前じゃないけれど、
みんなにそう呼ばれてる。

みんながいろんなお願いを持って、
お願いの木のところにやってくる。

お願いの木は、みんなの願いをかなえてあげたいけれど
お願いの木は、木なので、目も、手も、足も、口もない。

だからみんなの願いをかなえてあげられなくて
悲しい思いをずっとしてる。

せめて、みんなを力づけたくて、
根を深く伸ばして、幹のそばに泉を作り
広く広げた枝や葉で、涼しい木陰を作って、
甘い実をつけている。

お願いを持ってきた人は、
泉で水を飲み、日陰で休んで、実を食べるけれど、
お願いが叶わなくてがっかりして帰っていく。
お願いの木は、また悲しくなってしまう。

みんなはお願いの木の水や実を食べるけれど、
自分のお願いのことしか気にしていないので、
お願いの木がしてくれていることに気がつかない。

お願いの木は、寂しがっているんだ。
だからときどき、自分のお願いはちょっと後にして、
「いつもありがとう」って言ってあげたら、
きっと喜んでくれるよ。

隕石

ロシアに隕石が落ちた。直径17メートル、重量1万トン。落下の途中でいくつかの破片に割れて落下。
1,200人くらいの負傷者がでたらしいけれど、ほとんど、爆風で割れたガラスでの怪我だそうな。
て…この隕石、100年に1回程度って言われるけど、これ確率じゃないの?…

つまり、この程度の隕石は、「100年に1回程度落ちてきます」っていうけれど、「ロシアに今回落ちたから、もう100年間は大丈夫」っていうことではなくて、やっぱり、いつでも、確率は低いけれど、落ちてくる可能性はあるわけで…。
小惑星は、何回か観測すれば、軌道が予測できて、地球に落ちる/落ちないがわかる。
んで、仮に「日本の○○に落ちます」ってなったときにはどうなるんだろう?。落下予測範囲がわかって公表されたら、そこに大都市を含んでいたら、そこから逃げようってんで、パニックになって交通は麻痺状態。

落下の時間が刻々と迫る。けれど車は渋滞で動かない。恐怖と焦りの指数関数的増大が人々を襲う。
こういう状態に追い込まれることを考えるとゾッとする。

いつ落ちてくるかわからず、ある日落下が予測される。でも現在の技術では、落下が予想できても手をこまねいてみているしかないのが現状らしい。

えっ!あんなに核弾頭あるじゃん!軌道をそらすだけでいいのだから、連続して片側に浴びせれば…
って、核弾頭あっても、乗っかってるのはICBM(大陸間弾道弾)ですからねぇ…。

核弾頭あっても、地球人類のためじゃないんだとさ~
プロフィール

「makumaqu@hewsnest」

Author:「makumaqu@hewsnest」
うつ病持ちIT系復職サラリーマンです。
星検3級所持。星好き、石好き、本も好き。観葉植物を育てたり、地味~に生きてます。

カレンダー
01 | 2013/02 | 03
- - - - - 1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 - -
カウンタ
SNSとか
観葉 植物 星 宇宙 旅行 お出かけ PC ソフト 宇宙戦艦ヤマト 天然石 鉱物 ミネラル
リンク
RSSリンクの表示
検索フォーム
カテゴリ
月別アーカイブ
ブロとも申請フォーム

この人とブロともになる