小编jwi*_*x09的帖子

Ruby 2.1和Nokogiri安装错误?

我知道这是一个在这里已经"解决"了很多次的问题,但我已经尝试了所有的解决方案,但仍然无法使其工作.这是我的错误:

22-01-14 17:57:56> gem install nokogiri
Building native extensions.  This could take a while...
ERROR:  Error installing nokogiri:
ERROR: Failed to build gem native extension.

/Users/josh/.rvm/rubies/ruby-2.1.0/bin/ruby extconf.rb
Extracting libxml2-2.8.0.tar.gz into tmp//ports/libxml2/2.8.0... OK
Running 'configure' for libxml2 2.8.0... ERROR, review 'tmp//ports/libxml2/2.8.0/configure.log' to see what happened.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
  --with-opt-dir
  --without-opt-dir …
Run Code Online (Sandbox Code Playgroud)

ruby macos gem nokogiri rvm

7
推荐指数
1
解决办法
2152
查看次数

标签 统计

gem ×1

macos ×1

nokogiri ×1

ruby ×1

rvm ×1