|
ru.perl- RU.PERL ---------------------------------------------------------------------- From : Andrew Alakozow 2:5061/6 30 Jun 2004 12:24:07 To : Andrei Protasovitski Subject : Re: Как установить под Win XML::LibXML/LibXSLT? -------------------------------------------------------------------------------- >> perl Makefile.PL LIBS="-LD:\src\lib -lD:\src\lib\libxml2_a.lib >> D:\src\lib\iconv.lib" INC="-ID:\src\include" DEFINE=" -DLIBXML_STATIC" >> LibXSLT: >> perl Makefile.PL LIBS="-LD:\src\lib -lD:\src\lib\libxml2_a.lib >> D:\src\lib\libxslt_a.lib D:\src\lib\libexslt_a.lib D:\src\lib\iconv.lib" >> INC="-ID:\src\include" >> DEFINE=" -DHAVE_EXSLT -DLIBEXSLT_STATIC -DLIBXSLT_STATIC >> -DLIBXML_STATIC" AP> Я так и сделал - тот же результат. VC установлен/настроен? AP> В пути есть директория D:\src\. Значит ли это, что установка идет из AP> исходников? Для установки XML::LibXML исходники libxml2 не нужны, только библиотеки и заголовочные файлы. AP> И еще: хедеры лежат в директории D:\что-то_там\include\libxml\. Может, AP> в @INC прописывать этот путь? Hет, нужен D:\что-то_там\include\ >> Кроме того, в Makefile.PL для LibXSLT нужно закомментировать поиск >> библиотек. AP> А как его быстро найти? -+- Makefile.PL 2004-06-30 12:21:42.576547800 +0400 +++ Makefile.PL.my 2004-03-02 11:09:20.828211500 +0300 @@ -19,15 +19,15 @@ } # get libs and inc from gnome-config -eval { - print "running xslt-config... "; - my $ver = backtick('xslt-config --version'); - my ($major, $minor, $point) = $ver =~ /(\d+)\.(\d+)\.(\d+)/g; - die "VERSION" unless $major > 1 || $minor > 0 || $point >= 6; - $config{LIBS} ||= backtick('xslt-config --libs'); - $config{INC} ||= backtick('xslt-config --cflags'); - print "ok\n"; -}; +#eval { +# print "running xslt-config... "; +# my $ver = backtick('xslt-config --version'); +# my ($major, $minor, $point) = $ver =~ /(\d+)\.(\d+)\.(\d+)/g; +# die "VERSION" unless $major > 1 || $minor > 0 || $point >= 6; +# $config{LIBS} ||= backtick('xslt-config --libs'); +# $config{INC} ||= backtick('xslt-config --cflags'); +# print "ok\n"; +#}; if ($@) { print "failed\n"; if ($@ =~ /^VERSION/) { @@ -50,25 +50,25 @@ } -if ($config{LIBS} !~ /\-lxslt/) { - $config{LIBS} .= ' -lxslt -lxml2 -lz -lm'; -} - -if (!have_library("xslt")) { - die <<DEATH; -libxslt not found -Try setting LIBS and INC values on the command line -Or get libxslt and libxml2 from - http://www.libxml.org/ -If you install via RPMs, make sure you also install the -devel -RPMs, as this is where the headers (.h files) are. -DEATH -} - -if (have_library("exslt")) { - $config{LIBS} =~ s/-lxslt/-lxslt -lexslt/; - $config{DEFINE} .= " -DHAVE_EXSLT" -} +#if ($config{LIBS} !~ /\-lxslt/) { +# $config{LIBS} .= ' -lxslt -lxml2 -lz -lm'; +#} + +#if (!have_library("xslt")) { +# die <<DEATH; +#libxslt not found +#Try setting LIBS and INC values on the command line +#Or get libxslt and libxml2 from +# http://www.libxml.org/ +#If you install via RPMs, make sure you also install the -devel +#RPMs, as this is where the headers (.h files) are. +#DEATH +#} + +#if (have_library("exslt")) { +# $config{LIBS} =~ s/-lxslt/-lxslt -lexslt/; +# $config{DEFINE} .= " -DHAVE_EXSLT" +#} WriteMakefile( 'NAME' => 'XML::LibXSLT', aa29 --- Microsoft Outlook Express 6.00.2720.3000 * Origin: Life In The Dark (2:5061/6) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.perl/41598b88022b7.html, оценка из 5, голосов 10
|