sudo gem install nokogiri
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
checking for libxml/parser.h... yes
checking for libxslt/xslt.h... no
-----
libxslt is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** 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=/usr/bin/ruby1.8
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--with-iconv-dir
--without-iconv-dir
--with-iconv-include
--without-iconv-include=${iconv-dir}/include
--with-iconv-lib
--without-iconv-lib=${iconv-dir}/lib
--with-xml2-dir
--without-xml2-dir
--with-xml2-include
--without-xml2-include=${xml2-dir}/include
--with-xml2-lib
--without-xml2-lib=${xml2-dir}/lib
--with-xslt-dir
--without-xslt-dir
--with-xslt-include
--without-xslt-include=${xslt-dir}/include
--with-xslt-lib
--without-xslt-lib=${xslt-dir}/lib
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.4 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.4/ext/nokogiri/gem_make.out
star@star-ubuntu:~$ sudo gem install ruby-xslt
Fetching: ruby-xslt-0.9.8.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing ruby-xslt:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
checking for xmlParseDoc() in -lxml2... yes
checking for xsltParseStylesheetFile() in -lxslt... no
checking for exsltRegisterAll() in -lexslt... no
extconf.rb:4: command not found: xslt-config --cflags
creating extconf.h
creating Makefile
/usr/lib/ruby/1.8/mkmf.rb:1345: warning: global variable `$preload' not initialized
make
gcc -I. -I. -I/usr/lib/ruby/1.8/i686-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -D_FILE_OFFSET_BITS=64 -fPIC -g -Wall -I/usr/include/libxml2 -fno-strict-aliasing -g -g -O2 -fPIC -DUSE_ERROR_HANDLER -DRUBY_1_8 -DUSE_EXSLT -c xslt_lib.c
In file included from xslt_lib.c:19:0:
xslt.h:40:27: fatal error: libxslt/extra.h: No such file or directory
compilation terminated.
make: *** [xslt_lib.o] Error 1
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/ruby-xslt-0.9.8 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/ruby-xslt-0.9.8/ext/xslt_lib/gem_make.out
解决:
sudo apt-get install libxslt-dev libxml2-dev
分享到:
相关推荐
解决 Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE 试试修改一下manifest文件 package="com.andrewsmith.android.darkness" android:installLocation="preferExternal
python——pip install xxx报错SyntaxError: invalid syntax 在安装好python后,进入python运行环境后,因为我要用pip安装开发Web App需要的第三方库,执行pip install aiohttp,发现会报错SyntaxError: invalid ...
$ gem install nokogiri 可选项 nokogiri提供了一些解析文件时的可选项,常用的有: NOBLANKS : 删除空节点 NOENT : 替代实体 NOERROR : 隐藏错误报告 STRICT : 精确解析,当解析到文件异常时抛出错误 NONET : 在...
Sim_EKB_Install_2020_10_10.exe Sim_EKB_Install_2020_04_17.exe Sim_EKB_Install_2020_02_29.exe Sim_EKB_Install_2013_12_25.exe Sim_EKB_Install_2017_01_17.exe Sim_EKB_Install_2017_08_29.exe Sim_EKB_...
lnmp安装(nginx mysql php )
$ gem install nokogiri-signatures 用法 首先,让我们为示例生成一个 RSA 密钥对和一个 X509 证书: require "openssl" # TODO: generate RSA keypair # TODO: generate certificate, sign with keypair 签约 要...
只需要把这个代码下载后放到C:\Python27\Scripts中,或者没有安装pip和easy_install时放在C:\Python27中都可,然后用命令行安装python SSLproblem.py 然后一切问题就都解决了
U盘安装CentOS,镜像制作工具。使用其它工具,无法正确引导安装的话。请使用此工具。
虽然我是在一个已有的系统中安装sl到mbr分区上(这样只需修改OSInstall.mpkg一个文件),论坛上好多人问起如果要写到硬盘或光盘上(这样就需要修改两个文件osinstall.mpkg和OSInstall两个文件),但OSInstall文件...
主要介绍了node.js使用npm 安装插件时提示install Error: ENOENT报错的解决方法,需要的朋友可以参考下
oraclient install oraclient install
mycat2 install-template(mycat2-install-template-1.20.zip)
InstallDriver.exe
mycat2 install-template(mycat2-install-template-1.21.zip)
dev sudo apt-get install nmap sudo apt-get install zlib1g-dev gem install rprogram gem install nokogiri gem install ruby-nmap gem install dbi gem install mysql gem install dbd-mysql gem install ...
工具版本:InstallAnywhere 2009 Enterprise build 3657 使用方法: 把IAClasses.zip覆盖安装目录下的IAClasses.zip. 默认安装目录为C:\Program Files\InstallAnywhere 2009 Enterprise,则覆盖该目录下的...
在Linux CentOS7 中安装oracle 11g数据库过程中弹出错误:Error in invoking target 'install' of makefile '/home/oracle/app/oracle/product/11.2.0/dbhome_1/ctx/lib/ins_ctx.mk'. See '/home/oracle/app/...