错误:安装yajl-ruby时出错:

时间:2017-12-06 17:59:41

标签: ruby windows

请帮助...我尝试了所有ruby版本并且有同样的错误。

!!!!这就是WINDOWS !!!!

    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:/Ruby/lib/ruby/gems/2.4.0/gems/yajl-ruby-1.3.1/ext/yajl
C:/Ruby/bin/ruby.exe -r ./siteconf20171206-2828-1djbqt4.rb extconf.rb
creating Makefile

current directory: C:/Ruby/lib/ruby/gems/2.4.0/gems/yajl-ruby-1.3.1/ext/yajl
make "DESTDIR=" clean
"make" �� ���� ����७��� ��� ���譥�
��������, �ᯮ��塞�� �ணࠬ��� ��� ������ 䠩���.

current directory: C:/Ruby/lib/ruby/gems/2.4.0/gems/yajl-ruby-1.3.1/ext/yajl
make "DESTDIR="
"make" �� ���� ����७��� ��� ���譥�
��������, �ᯮ��塞�� �ணࠬ��� ��� ������ 䠩���.

make failed, exit code 1

Gem files will remain installed in C:/Ruby/lib/ruby/gems/2.4.0/gems/yajl-ruby-1.3.1 for inspection.
Results logged to C:/Ruby/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/yajl-ruby-1.3.1/gem_make.out
谷歌对我也没有帮助。

更新:通过安装kali linux解决了这个问题。 问题是窗户。 谢谢你们。 我迷失了自己的一天。

1 个答案:

答案 0 :(得分:1)

最有可能的问题是,msys2没有正确安装。通过运行ridk install

更新msys2进行检查

点击此处查看有关成功更新msys2 Install Ruby 2.4.1 in windows within corporate proxy. MSYS2 update fails

的更多信息