相关疑难解决方法(0)

当我运行bundle install时,Nokogiri'无法构建gem native extension'

我正在运行bundle install,我收到此错误:

Building nokogiri using system libraries.

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb --use-system-libraries
Building nokogiri using system libraries.
libxml2 version 2.6.21 or later is required!
*** 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
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
    --help
    --clean
    --use-system-libraries …
Run Code Online (Sandbox Code Playgroud)

bundle rubygems ruby-on-rails nokogiri

66
推荐指数
3
解决办法
3万
查看次数

Metasploit更新:捆绑安装错误(nokogiri 1.6.8)

Metasploit工作正常,直到今天早上我更新它msfupdate,然后所有人都去了.

打字msfconsole现在给我这个错误:

Could not find nokogiri-1.6.8 in any of the sources
Run bundle install to install missing gems.
Run Code Online (Sandbox Code Playgroud)

我去打字了bundle install.直到发生这种情况一切顺利:

Installing nokogiri 1.6.8 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby2.2 -r ./siteconf20160831-24032-1wim46x.rb extconf.rb --use-system-libraries
Using pkg-config version 1.1.7
checking if the C compiler accepts ... yes
Building nokogiri using system libraries.
checking for libxml-2.0... no
checking for libxslt... no
checking for libexslt... no
ERROR: cannot discover where libxml2 is …
Run Code Online (Sandbox Code Playgroud)

ruby linux bundle ruby-on-rails metasploit

-2
推荐指数
2
解决办法
3101
查看次数

标签 统计

bundle ×2

ruby-on-rails ×2

linux ×1

metasploit ×1

nokogiri ×1

ruby ×1

rubygems ×1