[ruby-list:48760] Re: Ruby1.9.3p194をwindows-xpへのローカルインストール時のエラーについて
From:
Takashi Nakamura <tk47kmr.0904@...>
Date:
2012-05-15 16:05:20 UTC
List:
ruby-list #48760
リモートでの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はできる。
> > 中田 伸悦
> >
> >
> > ====
>
>
>