- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我是 Perl 的新手,我开始从事一个需要一些模块的项目。其中之一是 XML::CanonicalizeXML
似乎无法安装。
我使用 Strawberry Perl 和 CPAN 进行包处理。
我尝试从下载的 tar.gz 文件中手动编译包,但出现了与 g++ 编译中似乎相同的错误:
CPAN.pm: Building S/SJ/SJZASADA/XML-CanonicalizeXML-0.05.tgz
'xml2-config' is not recognized as an internal or external command,
operable program or batch file.
'xml2-config' is not recognized as an internal or external command,
operable program or batch file.
Checking if your kit is complete...
Looks good
'xml2-config' is not recognized as an internal or external command,
operable program or batch file.
'xml2-config' is not recognized as an internal or external command,
operable program or batch file.
MakeMaker (v6.64)
Warning (non-fatal): Target 'dynamic' depends on targets in skipped section 'dyn
amic_lib'
Warning (non-fatal): Target 'static' depends on targets in skipped section 'stat
ic_lib'
Writing Makefile for Mytest2::canon
Writing MYMETA.yml and MYMETA.json
Writing Makefile for XML::CanonicalizeXML
Writing MYMETA.yml and MYMETA.json
cp lib/XML/CanonicalizeXML.pm blib\lib\XML\CanonicalizeXML.pm
AutoSplitting blib\lib\XML\CanonicalizeXML.pm (blib\lib\auto\XML\CanonicalizeXML
)
cd canon && dmake
gcc -c -I. -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -
DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"\"
-DXS_VERSION=\"\" "-IC:\strawberry\perl\lib\CORE" canon.c
ar cr libcanon.a canon.o
rem libcanon.a
C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp -typemap
C:\strawberry\perl\lib\ExtUtils\typemap CanonicalizeXML.xs > CanonicalizeXML.x
sc && C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e mv -- CanonicalizeX
ML.xsc CanonicalizeXML.c
Please specify prototyping behavior for CanonicalizeXML.xs (see perlxs manual)
gcc -c -I. -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -
DPERL_IMPLICIT_SYS -fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"0.
05\" -DXS_VERSION=\"0.05\" "-IC:\strawberry\perl\lib\CORE" CanonicalizeXML
.c
CanonicalizeXML.xs: In function 'XS_XML__CanonicalizeXML_canonicalize':
CanonicalizeXML.xs:28:17: warning: passing argument 6 of 'canonicalize' from inc
ompatible pointer type [enabled by default]
canon/canon.h:2:12: note: expected 'char *' but argument is of type 'xmlChar **'
Running Mkbootstrap for XML::CanonicalizeXML ()
C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 Canonicalize
XML.bs
C:\strawberry\perl\bin\perl.exe -MExtUtils::Mksymlists \
-e "Mksymlists('NAME'=>\"XML::CanonicalizeXML\", 'DLBASE' => 'CanonicalizeX
ML', 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);"
dlltool --def CanonicalizeXML.def --output-exp dll.exp
g++ -o blib\arch\auto\XML\CanonicalizeXML\CanonicalizeXML.dll -Wl,--base-file -W
l,dll.base -mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib" Cano
nicalizeXML.o canon/libcanon.a C:\strawberry\perl\lib\CORE\libperl516.a -lmoldn
ame -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole
32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbc
cp32 -lcomctl32 dll.exp
CanonicalizeXML.o:CanonicalizeXML.c:(.text+0x118): undefined reference to `xmlIn
itParser'
CanonicalizeXML.o:CanonicalizeXML.c:(.text+0x15c): undefined reference to `xmlSt
rlen'
CanonicalizeXML.o:CanonicalizeXML.c:(.text+0x189): undefined reference to `_imp_
_xmlFree'
CanonicalizeXML.o:CanonicalizeXML.c:(.text+0x190): undefined reference to `xmlCl
eanupParser'
canon/libcanon.a(canon.o):canon.c:(.text+0x27): undefined reference to `xmlStrle
n'
canon/libcanon.a(canon.o):canon.c:(.text+0x35): undefined reference to `_imp__xm
lMalloc'
canon/libcanon.a(canon.o):canon.c:(.text+0xb3): undefined reference to `xmlParse
Memory'
canon/libcanon.a(canon.o):canon.c:(.text+0xc4): undefined reference to `__xmlLoa
dExtDtdDefaultValue'
canon/libcanon.a(canon.o):canon.c:(.text+0xd6): undefined reference to `xmlSubst
ituteEntitiesDefault'
canon/libcanon.a(canon.o):canon.c:(.text+0xf2): undefined reference to `xmlParse
Memory'
canon/libcanon.a(canon.o):canon.c:(.text+0x104): undefined reference to `xmlDocG
etRootElement'
canon/libcanon.a(canon.o):canon.c:(.text+0x13a): undefined reference to `xmlStrE
qual'
canon/libcanon.a(canon.o):canon.c:(.text+0x146): undefined reference to `xmlNode
GetContent'
canon/libcanon.a(canon.o):canon.c:(.text+0x15e): undefined reference to `xmlXPat
hNewContext'
canon/libcanon.a(canon.o):canon.c:(.text+0x194): undefined reference to `xmlXPat
hRegisterNs'
canon/libcanon.a(canon.o):canon.c:(.text+0x1ca): undefined reference to `_imp__x
mlFree'
canon/libcanon.a(canon.o):canon.c:(.text+0x1d4): undefined reference to `xmlXPat
hFreeContext'
canon/libcanon.a(canon.o):canon.c:(.text+0x1dc): undefined reference to `xmlFree
Doc'
canon/libcanon.a(canon.o):canon.c:(.text+0x1e4): undefined reference to `_imp__x
mlRealloc'
canon/libcanon.a(canon.o):canon.c:(.text+0x238): undefined reference to `xmlFree
Doc'
canon/libcanon.a(canon.o):canon.c:(.text+0x27d): undefined reference to `xmlXPat
hEvalExpression'
canon/libcanon.a(canon.o):canon.c:(.text+0x28d): undefined reference to `_imp__x
mlFree'
canon/libcanon.a(canon.o):canon.c:(.text+0x2a2): undefined reference to `xmlXPat
hFreeContext'
canon/libcanon.a(canon.o):canon.c:(.text+0x2aa): undefined reference to `xmlFree
Doc'
canon/libcanon.a(canon.o):canon.c:(.text+0x2db): undefined reference to `xmlC14N
DocDumpMemory'
canon/libcanon.a(canon.o):canon.c:(.text+0x2e7): undefined reference to `xmlXPat
hFreeObject'
canon/libcanon.a(canon.o):canon.c:(.text+0x2f3): undefined reference to `xmlFree
Doc'
canon/libcanon.a(canon.o):canon.c:(.text+0x301): undefined reference to `xmlMemo
ryDump'
canon/libcanon.a(canon.o):canon.c:(.text+0x393): undefined reference to `xmlFree
Doc'
canon/libcanon.a(canon.o):canon.c:(.text+0x435): undefined reference to `xmlFree
Doc'
canon/libcanon.a(canon.o):canon.c:(.text+0x46e): undefined reference to `_imp__x
mlFree'
canon/libcanon.a(canon.o):canon.c:(.text+0x478): undefined reference to `xmlFree
Doc'
collect2: ld returned 1 exit status
dmake.exe: Error code 129, while making 'blib\arch\auto\XML\CanonicalizeXML\Can
onicalizeXML.dll'
SJZASADA/XML-CanonicalizeXML-0.05.tgz
C:\strawberry\c\bin\dmake.exe -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Stopping: 'install' failed for 'XML::CanonicalizeXML'.
Failed during this command:
SJZASADA/XML-CanonicalizeXML-0.05.tgz : make NO
最佳答案
问题是 CPAN 只下载了需要用 Windows 批处理文件替换的 xml2-config 的 UNIX Shell 脚本版本。如果其他人需要它,它是:
@ECHO OFF
setlocal ENABLEDELAYEDEXPANSION
rem http://batcheero.blogspot.co.il/2007/06/how-to-enabledelayedexpansion.html - windows xp
SET SELFDIR=%~dp0
IF %SELFDIR:~-1%==\ SET SELFDIR=%SELFDIR:~0,-1%
set SELFDIR=%SELFDIR:\=/%
set prefix=%SELFDIR%
set exec_prefix=%prefix%
set includedir=%prefix%/include
set libdir=%exec_prefix%/lib
IF "%1"=="" GOTO usage0
rem whats the point of resettingthes flags...
rem set cflags=false
rem set libs=false
:loop
IF "%1"=="" Exit /B 0
IF "%1"=="--version" (
echo 2.4.12
Exit /B 0
)
IF "%1"=="--help" (
GOTO usage0
)
rem the code below does: if next arg is not any known argument nor empty then the next arg is prefix value otherwise print the prefix
IF "%1"=="--prefix" (
IF "%2"=="" ( SHIFT
echo %prefix%) ELSE (
IF "%2"=="--cflags" ( SHIFT
echo %prefix% ) ELSE (
IF "%2"=="--libs" ( SHIFT
echo %prefix%) ELSE (
IF "%2"=="--prefix" ( SHIFT
echo %prefix%) ELSE (
SET /A prefix=%2
set exec_prefix=!prefix!
set includedir=!prefix!/include
set libdir=!exec_prefix!/lib
SHIFT
SHIFT
)
)
)
)
)
IF "%1"=="--cflags" (
echo -I!includedir!/libxml2/libxml -I!includedir!/libxml2
SHIFT
)
IF "%1"=="--libs" (
echo -L!libdir! -lxml2 -lz -liconv -lm -Wl,-s -lwsock32 -liberty -lMsup -lMstubs
SHIFT
)
GOTO :loop
Exit /B 1
:usage0
echo Usage: xml-config [OPTION]
echo _
echo Known values for OPTION are:
echo _
echo --prefix=DIR change libxml prefix [default $prefix]
echo --libs print library linking information
echo --cflags print pre-processor and compiler flags
echo --help display this help and exit
echo --version output version information
Exit /B 0
:usage1
echo Usage: xml-config [OPTION]
echo _
echo Known values for OPTION are:
echo _
echo --prefix=DIR change libxml prefix [default $prefix]
echo --libs print library linking information
echo --cflags print pre-processor and compiler flags
echo --help display this help and exit
echo --version output version information
Exit /B 1
关于c++ - XML::CanonicalizeXML Perl 包安装在 Windows 上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15481543/
我听说最好不要从您系统的 Perl 版本所在的 CPAN 安装模块。我知道如何使用命令行安装模块,我只是想知道是否有办法将 CPAN 与系统核心 Perl 分开。 我应该: 下载源代码并专门为这些模块
我听说最好不要从系统的 Perl 版本所在的 CPAN 安装模块。我知道如何使用命令行安装模块,我只是想知道是否有办法将 CPAN 与系统的核心 Perl 分开。 我应该: 下载源代码并专门为这些模块
单独安装 electron 与通过 electron-builder 安装有什么区别?我正在使用 React 构建一个 Electron 应用程序,并且已经找到了一些教程。它们安装 Electron
两者安装有什么区别?我按照安装页面上的说明在全局范围内安装了 webpack,然后我转到了入门指南,据说在那里可以在本地安装 webpack-cli。 CLI = Command Line Inter
我在 OS X Yosemite 上用 PHP 安装了默认的 Apache 服务器,安装了 pear,用 brew 安装了 Solr (brew install solr),现在我正在尝试使用 PEC
我解压并编译了 Ruby 2.1 并安装了几个支持工具。 但是当我安装了 libssl-dev 时,OpenSSL 不会安装。 我在支持 openssl 时遇到这个错误: make: *** No r
我在 android studio 2.3.1 和 gradle 3.2 中设计了 2 到 3 个应用程序。当我从它运行应用程序到任何设备或模拟器时,一切都工作正常。但是当我从构建文件夹中获取该 ap
我注意到我正在读一本书提到通过 apt-get 安装 numpy 和 opencv apt-get install python-numpy python-opencv 但我可以通过以下方式在 pip
我正在尝试在 Windows 8.1 上安装 ansicon。我提取了文件并达到了我需要调用 ansicon -i 的级别。当我在 cmd 中输入此内容并运行 python 脚本时效果很好,但是当我通
我有 linux MINT 17.3 Kernel 4.4.0-81 所有更新可用。 (由于不同的原因,我无法迁移到更新版本的 ubuntu/mint) 我已经通过 PPA 安装了 FFMPEG(不是
尝试在本地运行我的应用程序时出现错误: 我只在 chrome 浏览器中收到此错误。我尝试过不同的东西,但我不确定为什么它是 Chrome 特定的。 最佳答案 我怀疑这不是 Firebase 问题,而是
这是我第一次开发 AngularJS 应用程序并使用脚手架工具 Yeoman ( http://yeoman.io/ )。我想对我的一些图标使用 fontawesome ( http://fortaw
我知道您通常“应该”$ pip install 如果包没有 brew ,但如果有一个你想安装的 python 包,你可以使用 $ pip install或 $ brew install为了?例如,通过
我正在尝试通过 RVM 安装 Ruby 1.9.3。然而,当谈到安装 RubyGems 时,我得到了这个: curl: (22) The requested URL returned error: 4
我是真正提出问题的新手,但你去吧。 我一直在尝试按照安装指南添加 dnsname: https://github.com/containers/dnsname https://github.com/c
Studio更新至0.4.0 建筑产量为“需要1.8版Gradle”;将设置设置为1.8 bin目录; 建立 “要求1.9级”;将设置设置为1.9 bin; 建立 “要求1.8级” 啊。不知道该怎么做
我刚刚注意到 kernel.org 因维护而停机。是否有使用不同镜子的不同公式?或者我可以向 Homebrew 软件添加不同的来源(如 bundler ?)? 谢谢你的帮助! 最佳答案 快速解决方法:
当我运行时: peardev install phpunit/PHPUnit 我得到以下信息: No releases available for package "pear.phpunit.de/P
服务器操作系统为Fedora 24. 64bit。 我想安装 Git 2.6.6。 所以下载源码并安装。 此服务器离线。所以我不使用“yum”。 ./configure --prefix=/usr/l
我正在尝试在我自己的服务器(操作系统:Linux Ubuntu Server 12.04)上安装 OpenEdX,但我遇到了同样的错误。谁能帮帮我? TASK: [ insights | insta
我是一名优秀的程序员,十分优秀!