繁体   English   中英

使用 bundle install 时出错:nokogiri 安装错误

[英]An error while using bundle install: nokogiri installation error

我正在使用 ubuntu,当我使用 bundle install 时,我在安装 nokogiri 时遇到错误。 我该如何解决?

gem_make.out :

At top level:
xslt_stylesheet.c:112:13: warning: ‘swallow_superfluous_xml_errors’ defined but not used [-Wunused-function]
  112 | static void swallow_superfluous_xml_errors(void * userdata, xmlErrorPtr error, ...)
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
linking shared-object nokogiri/nokogiri.so
Cleaning files only used during build.
rm -rf /home/domke89/.rvm/gems/ruby-2.7.0/gems/nokogiri-1.10.10/ports/archives

current directory: /home/domke89/.rvm/gems/ruby-2.7.0/gems/nokogiri-1.10.10/ext/nokogiri
make "DESTDIR=" install
make: /usr/bin/mkdir: Command not found
make: *** [Makefile:202: .sitearchdir.-.nokogiri.time] Error 127

make install failed, exit code 2

这个问题上,Nokogiri Github 上似乎处理了一个类似的问题

从讨论来看,您的机器上的 Ruby 和 Rubygems 配置似乎存在一些问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM