【发布时间】:2019-01-29 14:27:47
【问题描述】:
我尝试使用 RubyGems 安装一个包(请注意,我使用的是适用于 Linux 的 Windows 子系统)。我打算安装 Jekyll 包。
我输入了$ gem install jekyll。之后它出现了一个错误:
Building native extensions. This could take a while...
/usr/lib/ruby/2.5.0/rubygems/ext/builder.rb:76: warning: Insecure world writable dir /mnt/c in PATH, mode 040777
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
您能解释一下错误以及任何可能的修复方法吗?
【问题讨论】:
-
一般在最后一行之后有更多的输出:
ERROR: Failed to build gem native extension.。之后还有什么提示吗? -
current directory: /home/[user]/.ruby/gems/http_parser.rb-0.6.0/ext/ruby_http_parser /usr/bin/ruby2.5 -r ./siteconf20190129-18-14vc5x8.rb extconf.rb creating Makefile current directory: /home/[user]/.ruby/gems/http_parser.rb-0.6.0/ext/ruby_http_parser make "DESTDIR=" clean sh: 1: make: not found current directory: /home/[user]/.ruby/gems/http_parser.rb-0.6.0/ext/ruby_http_parser make "DESTDIR=" sh: 1: make: not found make failed, exit code 127
标签: ruby bash rubygems windows-subsystem-for-linux