在编译php 5.4的时候加上选项 -with-xsl=/opt/lib/libxslt
之前已经编译安装了libxml2-2.7.8.tar.gz,libxslt-1.1.26.tar.gz,装在/opt/lib下的.
php configure的时候可以通过,
make的时候出现提示:
libtool: link: cannot find the library `/usr/lib/i386-linux-gnu/libxml2.la' or unhandled argument `/usr/lib/i386-linux-gnu/libxml2.la'
之后在/usr/lib/i386-linux-gnu/做了一个软链接
ln -s /opt/lib/libxml2/lib/libxml2.la /usr/lib/i386-linux-gnu/libxml2.la
再make:
/opt/lib/libxslt/lib/libxslt.so: undefined reference to `xmlParseDocument@LIBXML2_2.4.30'
/opt/lib/libxslt/lib/libxslt.so: undefined reference to `htmlDocContentDumpOutput@LIBXML2_2.4.30'
/opt/lib/libxslt/lib/libxslt.so: undefined reference to `xmlValidateQName@LIBXML2_2.5.4'
/opt/lib/libxslt/lib/libxslt.so: undefined reference to `xmlNewTextLen@LIBXML2_2.4.30'
/opt/lib/libxslt/lib/libxslt.so: undefined reference to `xmlXPathNumberFunction@LIBXML2_2.4.30'
/opt/lib/libxslt/lib/libxslt.so: undefined reference to `xmlBufferFree@LIBXML2_2.4.30'
/opt/lib/libxslt/lib/libexslt.so: undefined reference to `xmlXPathDifference@LIBXML2_2.4.30'
/opt/lib/libxslt/lib/libexslt.so: undefined reference to `xmlURIUnescapeString@LIBXML2_2.4.30'
/opt/lib/libxslt/lib/libxslt.so: undefined reference to `xmlOutputBufferCreateFile@LIBXML2_2.4.30
后面还有很多行
又安装了libxslt-dev,附带的安装了 libxml2-dev{a} libxslt1-dev libxslt1.1{a}
再make:
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlParseDocument@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `htmlDocContentDumpOutput@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlValidateQName@LIBXML2_2.5.4'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlNewTextLen@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlXPathNumberFunction@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlBufferFree@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libexslt.so: undefined reference to `xmlXPathDifference@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libexslt.so: undefined reference to `xmlURIUnescapeString@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlOutputBufferCreateFile@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlParserGetDirectory@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlBufferCreate@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlXPathInit@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlUTF8Strpos@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlStrncmp@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlGenericErrorContext@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libexslt.so: undefined reference to `xmlXPathNodeLeadingSorted@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlModuleOpen@LIBXML2_2.6.17'
/usr/lib/i386-linux-gnu/libexslt.so: undefined reference to `xmlXPathCastNodeToString@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libexslt.so: undefined reference to `xmlXPathNewFloat@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlNewComment@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlFreeDtd@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlNewCDataBlock@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libexslt.so: undefined reference to `xmlHashAddEntry@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libexslt.so: undefined reference to `xmlXPathRegisterNs@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libexslt.so: undefined reference to `xmlFreeNode@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlXPathNsLookup@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlDictFree@LIBXML2_2.6.0'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlDictQLookup@LIBXML2_2.6.0'
/usr/lib/i386-linux-gnu/libexslt.so: undefined reference to `xmlURIEscapeStr@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlMutexLock@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `htmlNewDoc@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlNodeGetContent@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlXPathConvertNumber@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `htmlDocContentDumpFormatOutput@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlHashUpdateEntry2@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlMutexUnlock@LIBXML2_2.4.30'
/usr/lib/i386-linux-gnu/libxslt.so: undefined reference to `xmlXPathErr@LIBXML2_2.6.0'
/usr/lib/i386-linux-gnu/libexslt.so: undefined reference to `xmlXPathCastStringToNumber@LIBXML2_2.4.30'
后面还有很多行
请教各位牛人,怎么办,
我用的是 ubuntu-sever
Linux aahost 3.2.0-18-generic-pae #29-Ubuntu SMP Mon Mar 12 00:42:23 UTC 2012 i686 i686 i386 GNU/Linux