LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   XMLSec installation problem (https://www.linuxquestions.org/questions/linux-newbie-8/xmlsec-installation-problem-734938/)

teemone 06-23-2009 04:05 AM

XMLSec installation problem
 
Hi

I am a newbie trying to install XMLSec on my server. I have CentOS 5 with OpenSSL 0.9.8b. I downloaded xmlsec1-1.0.3-1.i386.rpm from www.aleksey.com/xmlsec/download.html. While doing rpm -Uvh xmlsec1-1.0.3-1.i386.rpm I get the following error message.

error: Failed dependencies:
libcrypto.so.4 is needed by xmlsec1-1.0.3-1.i386
libxml2.so.2 is needed by xmlsec1-1.0.3-1.i386
libxslt.so.1 is needed by xmlsec1-1.0.3-1.i386

I also downloaded RPM's for libxml2 and libxslt from ftp://xmlsoft.org/libxslt/ but each package give further errors

rpm -Uvh libxml2-2.7.3-1.x86_64.rpm

warning: libxml2-2.7.3-1.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID de95bc1f
error: Failed dependencies:
libxml2 = 2.6.26 is needed by (installed) libxml2-python-2.6.26-2.1.2.7.x86_64

and

rpm -Uvh libxslt-1.1.20-1.i386.rpm

warning: libxslt-1.1.20-1.i386.rpm: Header V3 DSA signature: NOKEY, key ID de95bc1f
error: Failed dependencies:
libgcrypt.so.11 is needed by libxslt-1.1.20-1.i386
libgcrypt.so.11(GCRYPT_1.2) is needed by libxslt-1.1.20-1.i386
libgpg-error.so.0 is needed by libxslt-1.1.20-1.i386
libxml2 >= 2.6.27 is needed by libxslt-1.1.20-1.i386
libxml2.so.2 is needed by libxslt-1.1.20-1.i386

Any help with solving this will be greatly appreciated.

chrism01 06-24-2009 02:19 AM

Installing rpms from random sites will nearly always have dependency issues. That's why Redhat (& thus centos) provide the yum tool which goes to their own repo and installs the reqd pkg along with automatically taking care of dependencies.
If you want/need something that you are sure you can't get from the official repo, try the EPEL repo first. http://fedoraproject.org/wiki/EPEL/FAQ
Otherwise, you will have to research the dependencies, then issue the rpm cmd with all the rpms on one line/cmd.

quanta 10-15-2009 01:50 AM

I have a problem when compile xmlsec from source code.
./configure OK but I get following error when typing 'make':
Code:

...
make[2]: Entering directory `/mnt/data/linux/packages/source/xmlsec1-1.2.13/apps'
/bin/sh ../libtool --mode=link gcc  -g -O2  -o xmlsec1  xmlsec.o crypto.o cmdline.o  ../src/libxmlsec1.la  -L/usr/local/lib -lxslt -lz -lm -lxml2  -L/usr/local/lib -lxml2  -ldl 
gcc -g -O2 -o .libs/xmlsec1 xmlsec.o crypto.o cmdline.o  ../src/.libs/libxmlsec1.so -L/usr/local/lib /usr/local/lib/libxslt.so /usr/lib/libxml2.so /usr/local/lib/libxml2.so -lz -lm -ldl -Wl,--rpath -Wl,/usr/local/lib
../src/.libs/libxmlsec1.so: undefined reference to `xmlEncodeSpecialChars@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlXPathFreeContext@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlMalloc@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlStrchr@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlFileRead@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlIOFTPOpen@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlParseChunk@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlIOFTPRead@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlRealloc@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlXPathRegisterNs@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlIOHTTPMatch@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlSaveFormatFile@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlSetTreeDoc@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlXPathNodeSetContains@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlAddPrevSibling@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlSetProp@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlIOFTPClose@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlCreateFileParserCtxt@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlXPtrEval@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlParseFile@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlXPathErr@LIBXML2_2.6.0'
../src/.libs/libxmlsec1.so: undefined reference to `xmlDocSetRootElement@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlXPtrNewContext@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlNewText@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlOutputBufferClose@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlIOHTTPClose@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlNodeDumpOutput@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlXPathRegisterFunc@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlStrPrintf@LIBXML2_2.6.0'
../src/.libs/libxmlsec1.so: undefined reference to `xmlStrndup@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlSearchNs@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlNewDocNode@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlNodeSetLang@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlNanoFTPInit@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlStrVPrintf@LIBXML2_2.6.2'
../src/.libs/libxmlsec1.so: undefined reference to `xmlC14NExecute@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlNodeAddContent@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlGetID@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlRecoverMemory@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlFileMatch@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlStrdup@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlBufferFree@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlIOHTTPRead@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlUnlinkNode@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlNewChild@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlParseInNodeContext@LIBXML2_2.6.12'
../src/.libs/libxmlsec1.so: undefined reference to `xmlFreeNode@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlDocGetRootElement@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlParseMemory@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlBufferLength@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlXPathNewContext@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlNewNode@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlSetNs@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlParserInputBufferCreateIO@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlNodeSetContent@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlParseDocument@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlXPathFreeNodeSet@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlCreatePushParserCtxt@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlFileOpen@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlAddID@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlNewNs@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlNewParserCtxt@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlIOHTTPOpen@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlInitParser@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlURIUnescapeString@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlFree@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlXPathEvalExpression@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlOutputBufferWriteString@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlStrlen@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlNewDoc@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlAddChild@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlCreateMemoryParserCtxt@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlOutputBufferCreateIO@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlXPathNodeSetCreate@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `inputPush@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlStrEqual@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `valuePush@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlNanoFTPCleanup@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlFreeParserCtxt@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlXPathNodeSetAdd@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlSearchNsByHref@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlReplaceNode@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlNodeSetContentLen@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlBufferCreate@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlFreeNodeList@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlNodeDump@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlFreeParserInputBuffer@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlBufferContent@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlXPathNsLookup@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlGetProp@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlParserGetDirectory@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlIOFTPMatch@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlXPathFreeObject@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlStrncmp@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlFileClose@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlNodeListGetString@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlNodeGetContent@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlStrcmp@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlNanoHTTPInit@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlFreeDoc@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlNanoHTTPCleanup@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlNewIOInputStream@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlAddNextSibling@LIBXML2_2.4.30'
../src/.libs/libxmlsec1.so: undefined reference to `xmlXPathNewNodeSet@LIBXML2_2.4.30'
collect2: ld returned 1 exit status
make[2]: *** [xmlsec1] Error 1
make[2]: Leaving directory `/mnt/data/linux/packages/source/xmlsec1-1.2.13/apps'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/data/linux/packages/source/xmlsec1-1.2.13'
make: *** [all] Error 2

Anyone has experience with it?

I get a public key with follow content:
Code:

<RSAKeyValue>
  <Modulus>AI8j6YuXkwJHkdg1xYyPhfcxRWfl7YEFgGP/X1Vu/haKnvyrKEkWoj8n7VfWVXPqYNQO6fjtOTC6lVtpwby8Wesg/Vy8xRtmCfiZHrid6IdA8VHWMJxTaMg2mOV36/ZejMvDLlOP27EGhSUxARCFFi/zpMEP/CgsT022ju8+4cnp</Modulus>
  <Exponent>EQ==</Exponent>
  <P>AMiXed3bWZ46i5IMPm5WsCr6akk11FBKBxiiq7GFqfXtNOFDuxUTq7n1ewlKbJ1kHS3VwjThvJ78hsu0WC3K9t0=</P>
  <Q>ALat2aYM/dFTW3m2vjNyfD1hq7JCcKaTTJByNQbsj+SFuRZ9RcPslv6+6FsdMoDphY5SsYpCPlac9k96dQBQQH0=</Q>
  <DP>Upi5tbSsblRXln2DHl/uL9CGHiU5TjyZgp1VwZFkGfhC81gf24CSAUb2bTzDT93t5bJfBrdNquBzvUpCbTV0tQ==</DP>
  <DQ>YLZkKruVbtHHBDOR3wBf5ELET1BZwZlGptMNA6pqS85S7cnZo/W5WbBc5PFW+PQZh5Uw0LmoiDT63shcDzmLjQ==</DQ>
  <InverseQ>AKepHf/HMuS2zc0iNkq5SfSR1k2UX83CmcOmKRxiwARzABb1Ka769HxthqtdW4/wQhUayvO+Xe0uMdiS4adIW54=</InverseQ>
  <D>KhmfCvBYahUMxx7fv+36OaUUado2y5g00h3u3ORo2XQQpKrPnQaoMLFj7KhzfHIcepr5hXLys/qkZi4p7DdlvS+Qey7XhO4kfaIL6/7cC6kc1V5ydAwpBCmfTLDJc65h9fCJkMxep/jE7bSlmdLvsRBRvGMSZ6at8g+Uvrmj0ME=</D>
</RSAKeyValue>

After Googling, I guess it is generated from xmlsec. Try to install and I get above error.

Any help will be greatly appreciated.


All times are GMT -5. The time now is 06:18 AM.