1

DevKitのインストールに問題があります。基本的に、それは機能していません。私はそれをでインストールしましたが、インストールはテストに失敗します:

gem install rdiscount --platform=ruby

次のエラーを返します。

C:\Ruby 1.9.3-p327\DevKit>gem install rdiscount --platform=ruby
Building native extensions.  This could take a while...
ERROR:  Error installing rdiscount:
        ERROR: Failed to build gem native extension.

        "C:/Ruby 1.9.3-p327/bin/ruby.exe" extconf.rb
checking for random()... no
checking for srandom()... no
checking for rand()... yes
checking for srand()... yes
creating Makefile

make
Makefile:219: *** multiple target patterns.  Stop.


Gem files will remain installed in C:/Ruby 1.9.3-p327/lib/ruby/gems/1.9.1/gems/r
discount-1.6.8 for inspection.
Results logged to C:/Ruby 1.9.3-p327/lib/ruby/gems/1.9.1/gems/rdiscount-1.6.8/ex
t/gem_make.out

また、これは役に立ちません。そこはすべて大丈夫です。

gem_make.outにはこれが含まれています:

"C:/Ruby 1.9.3-p327/bin/ruby.exe" extconf.rb
checking for random()... no
checking for srandom()... no
checking for rand()... yes
checking for srand()... yes
creating Makefile

make
Makefile:219: *** multiple target patterns.  Stop.

この時点で私は夢中になります。extconf.rbだけを実行してみます

C:\Ruby 1.9.3-p327\lib\ruby\gems\1.9.1\gems\rdiscount-1.6.8\ext>ruby extconf.rb
checking for random()... no
checking for srandom()... no
checking for rand()... yes
checking for srand()... yes
creating Makefile

エラーなし!

私のOSはWindows7x64です!システムにインストールされているRubyまたはDevKitの他のバージョンはなく、これがPATHです。

PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Ruby 1.9.3-p327\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\pik;C:\Ruby 1.9.3-p327\DevKit\bin;C:\Ruby 1.9.3-p327\DevKit\mingw\bin
4

1 に答える 1

2

私は間違っているかもしれませんが、Rubyのインストールパスは2つの異なる引数として読み取られていると思います。"C:/Ruby" "1.9.3-p327/bin/ruby.exe"これは、パスがエスケープされていないためです(これは正しい単語ですか?基本的に引用符で囲まれています)。

StackOverflowで同様の質問をご覧になることをお勧めします。私はあなたとまったく同じ問題を抱えていました、そしてこの解決策はそれをすぐに解決しました。

于 2012-11-27T00:37:46.023 に答える