学びながらROR(ruby-debugインストール)
以前はInstantRails-2.0-winでインストールしていたのでruby 1をダウンロードします.92,ruby 1.92のインストールパッケージはInstantRails-2.0-winのサブディレクトリrubyの下に上書きされ、もともとここはruby 1である.87版.あとでdebugをしたい場合は、まずDevKitをインストールする必要があります(DevKitはwindowsプラットフォームの下でローカルC/C++拡張パッケージをコンパイルして使用するツールです.Linuxプラットフォームの下のmake、gcc、shをシミュレートしてコンパイルします).DevKitをダウンロードした後、解凍パスを指定します.パスにスペースはありません.C:DevKitのようです.
注意:
configを生成する.yml後、指定したC:/Ruby 192をD:/InstantRails-2.0-win/rubyに変更しました.それからrb install.
インストールに成功したかどうかを確認
rdiscountのインストールが成功した場合、DevKitのインストールが成功したことを示します.
そして
gem install ruby-debug19
いつも間違いを報告して、以下のようです(これは翌日書いたので、初日のいくつかの間違い情報は保存されていません.ネット上で似たようなものを探しました):
この間違いは私を死にかけて、結局振り返って発見して、もとはruby 1をダウンロードしていません.92のソースコード.
ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p0.tar.gz
D:InstantRails-2.0-winrubysrcで解凍します.
環境変数PATH:D:InstantRails-2.0-winrubybinの設定
確認Gemfile:gem'ruby-debug 19',:require=>'ruby-debug'
最後にgem install ruby-debug 19------with-ruby-include=D:/InstantRails-2.0-win/ruby/src/ruby-1.9.2-p0
ok!!!!!
最後にgem install ruby-debug-ide 19
ok!!!!!
> cd
2 > ruby dk.rb init
3 # config.yml, DevKit Ruby , RubyInstaller Ruby
4 # Ruby ,
5 > ruby dk.rb review # DevKit Ruby ,
6 > ruby dk.rb install
7 [INFO] Updating convenience notice gem override for 'C:/Ruby192'
8 [INFO] Installing 'C:/Ruby192/lib/ruby/site_ruby/devkit.rb'
注意:
configを生成する.yml後、指定したC:/Ruby 192をD:/InstantRails-2.0-win/rubyに変更しました.それからrb install.
インストールに成功したかどうかを確認
> gem install rdiscount --platform=ruby
2 Fetching: rdiscount-1.6.8.gem (100%)
3 Temporarily enhancing PATH to include DevKit...
4 Building native extensions. This could take a while...
5 Successfully installed rdiscount-1.6.8
6 1 gem installed
7 Installing ri documentation for rdiscount-1.6.8...
8 Installing RDoc documentation for rdiscount-1.6.8...
rdiscountのインストールが成功した場合、DevKitのインストールが成功したことを示します.
そして
gem install ruby-debug19
いつも間違いを報告して、以下のようです(これは翌日書いたので、初日のいくつかの間違い情報は保存されていません.ネット上で似たようなものを探しました):
E:/programs/Ruby19/bin/ruby.exe extconf.rb
checking for vm_core.h... no
checking for vm_core.h... 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
--without-make-prog
--srcdir=.
--curdir
--ruby=E:/programs/Ruby19/bin/ruby
--with-ruby-dir
--without-ruby-dir
--with-ruby-include
--without-ruby-include=${ruby-dir}/include
--with-ruby-lib
--without-ruby-lib=${ruby-dir}/lib
E:/programs/Ruby19/lib/ruby/1.9.1/net/http.rb:581:in `initialize':
Connection failed. - connect(2)
(Errno::ETIMEDOUT)
from E:/programs/Ruby19/lib/ruby/1.9.1/net/http.rb:581:in
`open'
from E:/programs/Ruby19/lib/ruby/1.9.1/net/http.rb:581:in
`block in connect'
from E:/programs/Ruby19/lib/ruby/1.9.1/timeout.rb:44:in
`timeout'
from E:/programs/Ruby19/lib/ruby/1.9.1/timeout.rb:82:in
`timeout'
from E:/programs/Ruby19/lib/ruby/1.9.1/net/http.rb:581:in
`connect'
from E:/programs/Ruby19/lib/ruby/1.9.1/net/http.rb:574:in
`do_start'
from E:/programs/Ruby19/lib/ruby/1.9.1/net/http.rb:563:in
`start'
from E:/programs/Ruby19/lib/ruby/1.9.1/net/http.rb:1094:in
`request'
from E:/programs/Ruby19/lib/ruby/gems/1.9.1/gems/
ruby_core_source-0.1.4/lib/contrib/uri_ext.rb:239:in `block in read'
from E:/programs/Ruby19/lib/ruby/gems/1.9.1/gems/
ruby_core_source-0.1.4/lib/contrib/uri_ext.rb:286:in `connect'
from E:/programs/Ruby19/lib/ruby/gems/1.9.1/gems/
ruby_core_source-0.1.4/lib/contrib/uri_ext.rb:234:in `read'
from E:/programs/Ruby19/lib/ruby/gems/1.9.1/gems/
ruby_core_source-0.1.4/lib/contrib/uri_ext.rb:128:in `download'
from E:/programs/Ruby19/lib/ruby/gems/1.9.1/gems/
ruby_core_source-0.1.4/lib/ruby_core_source.rb:55:in `block in
create_makefile_
with_core'
from E:/programs/Ruby19/lib/ruby/1.9.1/tempfile.rb:199:in
`open'
from E:/programs/Ruby19/lib/ruby/gems/1.9.1/gems/
ruby_core_source-0.1.4/lib/ruby_core_source.rb:51:in
`create_makefile_with_core
'
from extconf.rb:20:in `'
Requesting http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p378.tar.gz
Gem files will remain installed in E:/programs/Ruby19/lib/ruby/gems/
1.9.1/gems/linecache19-0.5.11 for inspection.
Results logged to E:/programs/Ruby19/lib/ruby/gems/1.9.1/gems/
linecache19-0.5.11/ext/trace_nums/gem_make.out
この間違いは私を死にかけて、結局振り返って発見して、もとはruby 1をダウンロードしていません.92のソースコード.
ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p0.tar.gz
D:InstantRails-2.0-winrubysrcで解凍します.
環境変数PATH:D:InstantRails-2.0-winrubybinの設定
確認Gemfile:gem'ruby-debug 19',:require=>'ruby-debug'
最後にgem install ruby-debug 19------with-ruby-include=D:/InstantRails-2.0-win/ruby/src/ruby-1.9.2-p0
ok!!!!!
最後にgem install ruby-debug-ide 19
ok!!!!!