首页 > 解决方案 > 无法在 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 问题

标签: rubywindows-10rubygems

解决方案


推荐阅读