[ruby-list:48772] Re: Ruby1.9.3p194をwindows-xpへのローカルインストール時のエラーについて
From:
eiichi_maekawa@...
Date:
2012-05-17 05:50:03 UTC
List:
ruby-list #48772
前川です。 中村さんから教えていただいたgemファイルでは、IDE(Netbeans7.1.1)では、BPで 止まらないので、 再度、以下を、実施しました。 インストール時にWARNINGは、出ますが、BPで止まりましたので、このままとしまし た。 変数を見ようとすると、NBでは、エラーとなります。(ruby1.9.3p194用のプラグ インがないためと思われます。) (http://rubygems.org/specs.4.8.gz) に関するエラー回避方法は、検討つかない ので、中村さんから、 教えていただいたことは、試していません。 (指定ファイルのソースコードを、どう修正したらいいのか、判りませんでし た。) インストール結果は、以下です。 ======== 実行結果 ==================================== D:\>pik list 187: ruby 1.8.7 (2012-02-08 patchlevel 358) [i386-mingw32] * 192: ruby 1.9.2p290 (2011-07-09) [i386-mingw32] 193: ruby 1.9.3p0 (2011-10-30) [i386-mingw32] 193: ruby 1.9.3p194 (2012-04-20) [i386-mingw32] D:\>pik sw 193 194 D:\>ruby -v ruby 1.9.3p194 (2012-04-20) [i386-mingw32] D:\>cd d:\devkit D:\DevKit>dk.rb install [INFO] Updating convenience notice gem override for 'D:/Ruby193p194_Debugger' [INFO] Installing 'D:/Ruby193p194_Debugger/lib/ruby/site_ruby/devkit.rb' D:\DevKit>ruby -v ruby 1.9.3p194 (2012-04-20) [i386-mingw32] D:\DevKit>gem install rdiscount-1.6.8.gem --no-ri --no-rdoc --local --platform=ruby Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... Successfully installed rdiscount-1.6.8 1 gem installed D:\DevKit>gem install columnize-0.3.1.gem --no-ri --no-rdoc --local Successfully installed columnize-0.3.1 1 gem installed D:\DevKit>gem install archive-tar-minitar-0.5.2.gem --no-ri --no-rdoc --local Successfully installed archive-tar-minitar-0.5.2 1 gem installed D:\DevKit>gem install ruby_core_source-0.1.4.gem --no-ri --no-rdoc --local Successfully installed ruby_core_source-0.1.4 1 gem installed D:\DevKit>gem install linecache19-0.5.13.gem -- --with-ruby-include=D:\Ruby193p194_Debugger\rubysrc-1.9.3-p194 --no-ri --no-rdoc --local WARNING: Error fetching data: Errno::EHOSTUNREACH: A socket operation was attempted to an unreachable host. - connect(2) (http://rubygems.org/latest_specs.4.8. gz) Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... Successfully installed linecache19-0.5.13 1 gem installed Installing ri documentation for linecache19-0.5.13... Installing RDoc documentation for linecache19-0.5.13... D:\DevKit>gem install ruby-debug-ide19-0.4.12.gem -- --with-ruby-include=D:\Ruby193p194_Debugger\rubysrc-1.9.3-p194 --no-ri --no-rdoc --local WARNING: Error fetching data: Errno::ETIMEDOUT: A connection attempt failed because the connected party did not properly respond after a period of time, or est ablished connection failed because connected host has failed to respond. - connect(2) (http://rubygems.org/specs.4.8.gz) WARNING: Error fetching data: Errno::EHOSTUNREACH: A socket operation was attempted to an unreachable host. - connect(2) (http://rubygems.org/latest_specs.4.8. gz) Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... Successfully installed ruby-debug-base19-0.11.26 Successfully installed ruby-debug-ide19-0.4.12 2 gems installed Installing ri documentation for ruby-debug-base19-0.11.26... Installing ri documentation for ruby-debug-ide19-0.4.12... Installing RDoc documentation for ruby-debug-base19-0.11.26... Installing RDoc documentation for ruby-debug-ide19-0.4.12... D:\DevKit>gem list *** LOCAL GEMS *** archive-tar-minitar (0.5.2) bigdecimal (1.1.0) columnize (0.3.1) io-console (0.3) json (1.5.4) linecache19 (0.5.13) minitest (2.5.1) rake (0.9.2.2) rdiscount (1.6.8) rdoc (3.9.4) ruby-debug-base19 (0.11.26) ruby-debug-ide19 (0.4.12) ruby_core_source (0.1.4) D:\DevKit>ruby -v ruby 1.9.3p194 (2012-04-20) [i386-mingw32] 以上 eiichi_maekawa@mhi.co.jp wrote on 2012/05/16 11:33:01: > 中村さん > > 結果、以下でした。WARNINGが出ましたが、インストールは、できたようです。 > > WARNINGは、RDOC-3.12をインストールするときも出ました。 > > D:\Ruby193p194_DebuggerOnly>gem install linecache19-0.5.12.gem -- > --with-ruby-include=D:\Ruby193p194_DebuggerOnly\ruby-1.9.3-p194 > --local > WARNING: Error fetching data: Errno::ETIMEDOUT: A connection attempt > failed because the connected party did not properly respond > > after a period of time, or est > ablished connection failed because connected host has failed to respond. - > connect(2) (http://rubygems.org/latest_specs.4.8.gz) > Temporarily enhancing PATH to include DevKit... > Building native extensions. This could take a while... > Successfully installed ruby_core_source-0.1.5 > Successfully installed linecache19-0.5.12 > 2 gems installed > Installing ri documentation for ruby_core_source-0.1.5... > Installing ri documentation for linecache19-0.5.12... > Installing RDoc documentation for ruby_core_source-0.1.5... > Installing RDoc documentation for linecache19-0.5.12... > > D:\Ruby193p194_DebuggerOnly>gem list > > *** LOCAL GEMS *** > > archive-tar-minitar (0.5.2) > bigdecimal (1.1.0) > io-console (0.3) > json (1.7.3, 1.5.4) > linecache19 (0.5.12) > minitest (3.0.0, 2.5.1) > rake (0.9.2.2) > rdoc (3.12, 3.9.4) > ruby_core_source (0.1.5) > > 了 > > eiichi_maekawa@mhi.co.jp wrote on 2012/05/16 09:36:37: > > > 中村さん > > > > ありがとうございます。 > > > > > # Download the headersあたり について > > > > とアドバイスいただきましたが、どのように修正すればいいか、ご教示願えま せ > ん > > か。 > > > > 193p194のソースは、http://ftp.ruby-lang.org/pub/ruby/1.9/ か ら、 > > > > ruby-1.9.3-p194.zip をダウンロードして、解凍済みです。 > > > > オプションで、ソースのパスも設定しているのですが、 > > > > vm_core.hが原因で、先に進めないため、エラーとなったのですね。 > > > > よろしくお願いします。 > > > > ご教示いただいたgemファイルは、http://rubygems.org/ からダウンロードし ま > し > > た。 > > > > Takashi Nakamura <tk47kmr.0904@gmail.com> wrote on 2012/05/16 01:05:20: > > > > > リモートでのgem install linecache19のログを送ります。中村たかし > > > ただし、--localでやられた場合、 > > > C:/ruby/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_core_source-0. > > > 1.5/lib/ruby_core_source.rbで > > > Requesting http :// > ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz > > > をしていますのてエラーとなると思います。 > > > ソースコードがdownloadできないので > > > C:\ruby\Ruby193\include\ruby-1.9.1\ruby-1.9.3-p194\に vm_core.hが入ら な > い > > ので > > > mkmf.logでhave_header: checking for vm_core.h... -------------------- > no > > > なるのだと思います。vm_core.hとversion.hがあると > > > have_header: checking for vm_core.h... -------------------- yes > > > have_header: checking for version.h... -------------------- yes とな > > > るようです。 > > > ruby_core_source.rbの > > > # Download the headersあたりを変更されれば、インストールできるか > > > もしれませんね。 > > > > > > 以下リモートでのログです。 > > > ruby 1.9.3p194 (2012-04-20) [i386-mingw32] > > > > > > C:\Documents and Settings\takashi>ver > > > > > > Microsoft Windows XP [Version 5.1.2600] > > > > > > C:\Documents and Settings\takashi>gem -v > > > 1.8.24 > > > > > > C:\Documents and Settings\takashi>gem list > > > > > > *** LOCAL GEMS *** > > > > > > bigdecimal (1.1.0) > > > io-console (0.3) > > > json (1.7.3) > > > minitest (3.0.0, 2.5.1) > > > rake (0.9.2.2) > > > rdoc (3.12) > > > rubygems-update (1.8.24) > > > serialport (1.0.4) > > > > > > C:\Documents and Settings\takashi>gem search --remote linecache > > > > > > *** REMOTE GEMS *** > > > > > > debugger-linecache (1.1.1) > > > linecache (0.46 ruby java mswin32) > > > linecache-tf (1.0) > > > linecache19 (0.5.12) > > > linecache193 (0.0.1) > > > rbx-linecache (1.3 universal-rubinius-2.0, 1.2 universal-rubinius-1.2, > > 0.44 > > > universal-rubinius, 0.43) > > > tddium-linecache19 (0.5.13) > > > > > > C:\Documents and Settings\takashi>gem install linecache19 > > > Fetching: archive-tar-minitar-0.5.2.gem (100%) > > > Fetching: ruby_core_source-0.1.5.gem (100%) > > > Fetching: linecache19-0.5.12.gem (100%) > > > Temporarily enhancing PATH to include DevKit... > > > Building native extensions. This could take a while... > > > Successfully installed archive-tar-minitar-0.5.2 > > > Successfully installed ruby_core_source-0.1.5 > > > Successfully installed linecache19-0.5.12 > > > 3 gems installed > > > Installing ri documentation for archive-tar-minitar-0.5.2... > > > Installing ri documentation for ruby_core_source-0.1.5... > > > Installing ri documentation for linecache19-0.5.12... > > > Installing RDoc documentation for archive-tar-minitar-0.5.2... > > > Installing RDoc documentation for ruby_core_source-0.1.5... > > > Installing RDoc documentation for linecache19-0.5.12... > > > > > > C:\Documents and Settings\takashi>gem list > > > > > > *** LOCAL GEMS *** > > > > > > archive-tar-minitar (0.5.2) > > > bigdecimal (1.1.0) > > > io-console (0.3) > > > json (1.7.3) > > > linecache19 (0.5.12) > > > minitest (3.0.0, 2.5.1) > > > rake (0.9.2.2) > > > rdoc (3.12) > > > ruby_core_source (0.1.5) > > > rubygems-update (1.8.24) > > > serialport (1.0.4) > > > > > > C:\Documents and Settings\takashi> > > > > > > > > > 2012年5月15日 14:00 <eiichi_maekawa@mhi.co.jp>: > > > > > > > 前川です。 > > > > > > > > なかださん、遠藤さん ありがとうございます。 > > > > > > > > > linecacheはruby本体の内部構造を直接いじるので、ruby内部用のヘッダ > ファ > > > > > イルが必要です。ruby_core_sourceというgemになっています > > が、linecache19 > > > > > はこれに依存しているはずです。 > > > > > > > > linecache19-0.5.13.gem は、193p0にデバッガ関連のgemをインストールす る > と > > き > > > > に > > > > > > > > http://rubyforge.org/frs/?group_id=8883 から、ダウンロードしたもの で > す > > か > > > > ら、 > > > > > > > > Ruby1.9.3p0 以外には、使用できないということですね。 > > > > > > > > ruby193p194にデバッガ関連をインストールすることは、あきらめます。 > > > > > > > > お騒がせしました。 > > > > > > > > 難しいですね。 > > > > > > > > 1.9.3p0→1.9.3p194にあがったら、以前のgemファイルは使えなくな る・・・ > > > > > > > > 了 > > > > > > > > Nobuyoshi Nakada <nobu.nakada@gmail.com> wrote on 2012/05/15 > 11:43:55: > > > > > > > > > なかだです。 > > > > > > > > > > (12/05/15 10:24), eiichi_maekawa@mhi.co.jp wrote: > > > > > > どうしても、linecache19-0.5.13.gem を1.9.3p194にインストールで き > ま > > せ > > > > ん。 > > > > > (snip) > > > > > > D:/Ruby193p194/bin/ruby.exe extconf.rb > > > > --with-ruby-include=D:\Ruby193p194 > > > > > > \source\ruby-1.9.3-p194 --local > > > > > > checking for vm_core.h... no > > > > > > D:/Ruby193p194/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1. > > > > > 4/lib/ruby_core_source.rb:39: > > > > > > Use RbConfig instead of obsolete and deprecated Config. > > > > > > checking for vm_core.h... no > > > > > > *** extconf.rb failed *** > > > > > > > > > > linecacheはruby本体の内部構造を直接いじるので、ruby内部用ののヘッ ダ > > ファ > > > > > イルが必要です。ruby_core_sourceというgemになっています > > が、linecache19 > > > > > はこれに依存しているはずです。 > > > > > > > > > > -- > > > > > --- 僕の前にBugはない。 > > > > > --- 僕の後ろにBugはできる。 > > > > > 中田 伸悦 > > > > > > > > > > > > > > > ==== > > > > > > > > > > > > > > > > > > > > > ==== > > > > > > > > ==== > > > > ====