相关疑难解决方法(0)

nokogiri宝石安装错误

我知道有很多关于这个宝石的问题,但没有答案对我有用.

当我在SSH中运行时,gem install nokogiri我收到此错误:

Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.8.0... OK
Running patch with /home/user58952277/.gem/ruby/1.9.3/gems/nokogiri-1.6.2.1/ports/patches/libxml2/0001-Fix-parser-local-buffers-size-problems.patch...
Running 'patch' for libxml2 2.8.0... ERROR, review 'tmp/x86_64-unknown-linux-gnu/ports/libxml2/2.8.0/patch.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.
Run Code Online (Sandbox Code Playgroud)

我的主人告诉我所有lib都已安装.以下是执行install nokogiri命令后的完整日志:

Building native extensions.  This could take a while...
Building nokogiri using packaged libraries.
Building libxml2-2.8.0 for nokogiri with the following …
Run Code Online (Sandbox Code Playgroud)

ruby macos rubygems ruby-on-rails nokogiri

64
推荐指数
4
解决办法
4万
查看次数

标签 统计

macos ×1

nokogiri ×1

ruby ×1

ruby-on-rails ×1

rubygems ×1