我在Windows

时间:2017-06-17 21:55:56

标签: ruby rubygems command-prompt

您好我正在尝试在Windows中安装ruby,我安装了所有的gem但是当我运行以下命令时无法安装yajl-ruby: gem install yajl-ruby。 它给了我这个错误:     Temporarily enhancing PATH for MSYS/MINGW... Building native extensions. This could take a while... ERROR: Error installing yajl-ruby:        ERROR: Failed to build gem native extension.

current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/yajl-ruby-1.3.0/ext/yajl C:/Ruby24-x64/bin/ruby.exe -r ./siteconf20170617-12896-vt754k.rb extconf.rb creating Makefile current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/yajl-ruby-1.3.0/ext/ya jl make "DESTDIR=" clean 'make' n'est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes.

current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/yajl-ruby-1.3.0/ext/yajl make "DESTDIR=" 'make' n'est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes.

make failed, exit code 1

Gem files will remain installed in C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/yajl-r uby-1.3.0 for inspection. Results logged to C:/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0 /yajl-ruby-1.3.0/gem_make.out

1 个答案:

答案 0 :(得分:0)

您的MSYS / MINGW安装看起来并不包含make实用程序。你安装了吗?