ruby - 使用 RubyGems 安装 Jekyll 时出现问题(Make 中的错误)
问题描述
我正在尝试安装 Jekyll。我有 Ruby 3.0.1p64(2021-04-05 修订版 0fb782ee38)[x64-mingw32] 和 RubyGems 3.2.15。我尝试使用 gem 和 choco 安装 make,并使用 GNU .exe 文件,它总是看起来没问题。
当我执行命令时gem install jekyll
,会出现以下错误:
ERROR: Failed to build gem native extension.
current directory: C:/tools/ruby30/lib/ruby/gems/3.0.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
C:/tools/ruby30/bin/ruby.exe -I C:/tools/ruby30/lib/ruby/3.0.0 -r ./siteconf20210520-2132-gijlna.rb extconf.rb
creating Makefile
current directory: C:/tools/ruby30/lib/ruby/gems/3.0.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
make DESTDIR\= clean
C:/tools/ruby30/lib/ruby/gems/3.0.0/gems/make-0.3.1/bin/make:4:in `<top (required)>': undefined local variable or method `make' for main:Object (NameError)
from C:/tools/ruby30/bin/make:23:in `load'
from C:/tools/ruby30/bin/make:23:in `<main>'
current directory: C:/tools/ruby30/lib/ruby/gems/3.0.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
make DESTDIR\=
C:/tools/ruby30/lib/ruby/gems/3.0.0/gems/make-0.3.1/bin/make:4:in `<top (required)>': undefined local variable or method `make' for main:Object (NameError)
from C:/tools/ruby30/bin/make:23:in `load'
from C:/tools/ruby30/bin/make:23:in `<main>'
make failed, exit code 1
Gem files will remain installed in C:/tools/ruby30/lib/ruby/gems/3.0.0/gems/http_parser.rb-0.6.0 for inspection.
Results logged to C:/tools/ruby30/lib/ruby/gems/3.0.0/extensions/x64-mingw32/3.0.0/http_parser.rb-0.6.0/gem_make.out
解决方案
推荐阅读
- c# - 编辑并继续不适用于 Roslyn 编译的类库
- javascript - 选择恢复默认值的方法
- flutter - 'List 类型的值
' 不能分配给类型为 'Iterable 的变量 ' - python - 如何从接受输入更改为检查列表中的输入?
- python - 如何在我的 CSV 文件中打印用户设置的两个日期之间的数据?
- javascript - 拒绝应用来自 'http://localhost:3000/style.css' 的样式,因为它的 MIME 类型('text/html')
- java - 从 Angular 应用程序检索访问令牌后尝试在 Java 中调用 Microsoft Graph API
- watchkit - 并发症系列支持 - 如果不支持,则不显示并发症系列
- angular - combineLatest 和严格类型的错误 - “没有重载匹配此调用。”
- javascript - 如何将捕获的视频流帧从 html 发送到烧瓶服务器?