如何修复 WSL 上 Ruby Gems 安装程序的错误? [英] How do I fix an error with Ruby Gems Installer on WSL?
本文介绍了如何修复 WSL 上 Ruby Gems 安装程序的错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试使用 RubyGems 安装软件包(请注意,我使用的是适用于 Linux 的 Windows 子系统).我要安装 Jekyll 包.
I tried to install a package using RubyGems (please note that I use Windows Subsystem for Linux). I was going to install Jekyll package.
我输入了 $ gem install jekyll
.之后,它想出了一个错误:
I typed $ gem install jekyll
. After that it came up with an error:
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.
你能解释一下错误以及任何可能的修复方法吗?
Can you please explain the error and any possible ways to fix it?
推荐答案
您需要安装所需的构建工具:
You need to install the build tools needed:
sudo apt-get update
sudo apt-get install build-essential
这篇关于如何修复 WSL 上 Ruby Gems 安装程序的错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文