0

コマンドで新しいレールアプリを作成すると入力したとき:rails new app
json拡張機能をインストールできません

次のメッセージが表示されます。

Installing json (1.8.0)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension
.

    C:/Ruby200-x64/bin/ruby.exe extconf.rb
creating Makefile

make
generating generator-x64-mingw32.def
compiling generator.c
make: x86_64-w64-mingw32-gcc: Command not found
make: *** [generator.o] Error 127


Gem files will remain installed in C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/json-
1.8.0 for inspection.
Results logged to C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/json-1.8.0/ext/json/ex
t/generator/gem_make.out
An error occurred while installing json (1.8.0), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.0'` succeeds before bundling.

この問題の解決策は何ですか????

4

1 に答える 1

0

何らかの理由makeで、 という名前のコマンドを使用しx86_64-w64-mingw32-gccてファイルをコンパイルしようとしていますgenerator.c。これは にありcygwinますか? gcccygwinインストーラーを使用してインストールするだけでよいと思います。

于 2013-05-24T12:43:04.537 に答える