[ruby-list:48763] Re: Ruby1.9.3p194をwindows-xpへのローカルインストール時のエラーについて
From:
eiichi_maekawa@...
Date:
2012-05-16 02:33:01 UTC
List:
ruby-list #48763
中村さん 結果、以下でした。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はできる。 > > > > 中田 伸悦 > > > > > > > > > > > > ==== > > > > > > > > > > > > > > > ==== > > > > ====