Я не могу понять, что здесь не так - есть идеи ??
Я работаю на Ubuntu 8.04 LTS и установил libxml2 и libxslt из следующих инструкций:
http://www.techsww.com/tutorials/libraries/libxml/installation/installing_libxml_on_ubuntu_linux.php
http://www.techsww.com/tutorials/libraries/libxslt/installation/installing_libxslt_on_ubuntu_linux.php
Однако я установил последние версии:
LibXSLT-1.1.24
libxml2-2.7.3
Установка прошла без происшествий
-------------------- Я установил LD_LIBRARY_PATH
---------------------- ------------
эхо $LD_LIBRARY_PATH
/ USR / местные / LibXSLT / Библиотека:
------------- похоже, что функция присутствует - по крайней мере, на основе вывода строк ------------
/ usr / local / libxslt / lib $ strings * | grep ParseStylesheetDoc
xsltParseStylesheetDoc
xsltParseStylesheetDoc
xsltParseStylesheetDoc
xsltParseStylesheetDoc
xsltParseStylesheetDoc
xsltParseStylesheetDoc
xsltParseStylesheetDoc
----------------------- Но компиляция все равно не получается ------------------- ---------------------
sudo gem install webrat
Сборка собственных расширений. Это может занять некоторое время ...
ОШИБКА: Ошибка при установке webrat:
ОШИБКА: не удалось создать собственное расширение для гема.
/ usr / local / bin / ruby extconf.rb установить webrat
проверка для iconv.h в / opt / local / include /, / opt / local / include / libxml2, / opt / local / include, / opt / local / include, / opt / local / include / libxml2, / usr / local / include, / usr / local / include / libxml2, / usr / local / include, / usr / local / include / libxml2, / usr / include, / usr / include / libxml2 ... yes
проверка libxml / parser.h в / opt / local / include /, / opt / local / include / libxml2, / opt / local / include, / opt / local / include, / opt / local / include / libxml2, / usr / local / include, / usr / local / include / libxml2, / usr / local / include, / usr / local / include / libxml2, / usr / include, / usr / include / libxml2 ... yes
проверка наличия libxslt / xslt.h в / opt / local / include /, / opt / local / include / libxml2, / opt / local / include, / opt / local / include, / opt / local / include / libxml2, / usr / local / include, / usr / local / include / libxml2, / usr / local / include, / usr / local / include / libxml2, / usr / include, / usr / include / libxml2 ... yes
проверка для libexslt / exslt.h в / opt / local / include /, / opt / local / include / libxml2, / opt / local / include, / opt / local / include, / opt / local / include / libxml2, / usr / local / include, / usr / local / include / libxml2, / usr / local / include, / usr / local / include / libxml2, / usr / include, / usr / include / libxml2 ... yes
проверка на xmlParseDoc () в -lxml2 ... да
проверка для xsltParseStylesheetDoc () в -lxslt ... нет
libxslt отсутствует. попробуйте 'port install libxslt' или 'yum install libxslt-devel'
*** extconf.rb failed ***
Не удалось создать Makefile по какой-то причине, возможно, из-за отсутствия
необходимые библиотеки и / или заголовки. Проверьте файл mkmf.log, чтобы узнать больше
подробности. Вам могут понадобиться параметры конфигурации.
Provided configuration options:<br>
--with-opt-dir<br>
--without-opt-dir<br>
--with-opt-include<br>
--without-opt-include=${opt-dir}/include<br>
--with-opt-lib<br>
--without-opt-lib=${opt-dir}/lib<br>
--with-make-prog<br>
--without-make-prog<br>
--srcdir=.<br>
--curdir<br>
--ruby=/usr/local/bin/ruby<br>
--with-iconv-dir<br>
--without-iconv-dir<br>
--with-iconv-include<br>
--without-iconv-include=${iconv-dir}/include<br>
--with-iconv-lib<br>
--without-iconv-lib=${iconv-dir}/lib<br>
--with-xml2-dir<br>
--without-xml2-dir<br>
--with-xml2-include<br>
--without-xml2-include=${xml2-dir}/include<br>
--with-xml2-lib<br>
--without-xml2-lib=${xml2-dir}/lib<br>
--with-xslt-dir<br>
--without-xslt-dir<br>
--with-xslt-include<br>
--without-xslt-include=${xslt-dir}/include<br>
--with-xslt-lib<br>
--without-xslt-lib=${xslt-dir}/lib<br>
--with-xml2lib<br>
--without-xml2lib<br>
--with-xsltlib<br>
--without-xsltlib
Файлы Gem останутся установленными в /usr/local/lib/ruby/gems/1.8/gems/nokogiri-1.3.3 для проверки.
Результаты заносятся в /usr/local/lib/ruby/gems/1.8/gems/nokogiri-1.3.3/ext/nokogiri/gem_make.out