ruby - 无法在 Windows 10 上安装 commonmarker
问题描述
我正在尝试安装 commonmarker,但是当我运行时出现gem install commonmarker
此错误
Installing commonmarker 0.17.13 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/commonmarker-0.17.13/ext/commonmarker
C:/Ruby30-x64/bin/ruby.exe -I C:/Ruby30-x64/lib/ruby/3.0.0 -r
./siteconf20210602-18672-e46llv.rb extconf.rb
creating Makefile
current directory:
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/commonmarker-0.17.13/ext/commonmarker
make DESTDIR\= clean
current directory:
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/commonmarker-0.17.13/ext/commonmarker
make DESTDIR\=
make failedNo such file or directory - make
Gem files will remain installed in
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/commonmarker-0.17.13 for inspection.
Results logged to
C:/Ruby30-x64/lib/ruby/gems/3.0.0/extensions/x64-mingw32/3.0.0/commonmarker-0.17.13/gem_make.out
An error occurred while installing commonmarker (0.17.13), and Bundler cannot
continue.
Make sure that `gem install commonmarker -v '0.17.13' --source
'https://rubygems.org/'` succeeds before bundling.
我尝试使用 RubyInstaller 安装 devkit,但出现权限被拒绝错误,因此我使用常规安装程序安装了 MSYS2,但这并没有解决 commonmarker 问题
解决方案
推荐阅读
- javascript - 鼠标悬停时的javascript添加和删除类
- c# - 我的秒表中出现 Thread Sleep 的问题
- android - 使 Android Studio 应用可用于所有设备
- angular - 从 BehaviorSubject 获取用户名并在 Angular 11 中登录后在标题部分显示用户名需要刷新
- angular - Angular 8 部署 - 更新 Ubuntu 后出现单页应用程序问题
- python - 使用 OS 模块创建目录
- java - JavaFX 不显示 JPG 文件
- java - Burp Suite SSL 错误握手失败警报或错误 SSL 协议错误
- swift - 当根进程写入值时,在哪里可以找到 userdefaults.plist 文件?
- javascript - react-reveal 属性(如缩放或 Lightspeed)不适用于滚动