小编rje*_*ins的帖子

在Ubuntu/Debian Linux上安装nokogiri

我想在Debian Linux上安装nokogiri 1.6.2.1.我正在运行Ruby-2.1.1.我已经安装了libxml2,libxml2-dev,libxslt,和libxslt-dev.

输出:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.<br>
    /home/xxx/.rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb 
Building nokogiri using packaged libraries.
checking for iconv.h... *** 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.<br>
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=/home/xxx/.rvm/rubies/ruby-2.1.1/bin/ruby
    --help
    --clean
    --use-system-libraries
    --enable-static
    --disable-static …
Run Code Online (Sandbox Code Playgroud)

ruby nokogiri

9
推荐指数
1
解决办法
3614
查看次数

标签 统计

nokogiri ×1

ruby ×1