Page 1 of 1

VMware appliance image + plugin - missing dependancy

Posted: Wed Nov 30, 2011 6:24 am
by kosch
Hi

MarkLogic recently release version 5 of their product which included a plugin so Nagios could monitor the stats of the server.

http://developer.marklogic.com/products/nagios


So being a window based guy I downloaded a copy of your appliance image and sucessfully imported this into vSphere.

Got the appliance up and running and then set about following the instructions in http://developer.marklogic.com/pubs/5.0 ... toring.pdf for the Nagios configuration guide.

I'm having trouble installing one of the missing dependancies (well there could be others but this is as far as I've got) XML/LibXML.pm

So from from the shell on the Nagios box I run

perl -MCPAN -e 'install XML::LibXML'

Then I get this error.

Code: Select all

CPAN: Storable loaded ok (v2.20)
Going to read '/root/.cpan/Metadata'
  Database was generated on Tue, 29 Nov 2011 17:28:52 GMT
Running install for module 'XML::LibXML'
CPAN: Data::Dumper loaded ok (v2.124)
'YAML' not installed, falling back to Data::Dumper and Storable to read prefs '/root/.cpan/prefs'
Running make for S/SH/SHLOMIF/XML-LibXML-1.88.tar.gz
CPAN: Digest::SHA loaded ok (v5.47)
CPAN: Compress::Zlib loaded ok (v2.02)
Checksum for /root/.cpan/sources/authors/id/S/SH/SHLOMIF/XML-LibXML-1.88.tar.gz ok
XML-LibXML-1.88/
XML-LibXML-1.88/README
XML-LibXML-1.88/LibXML.xs
XML-LibXML-1.88/TODO
XML-LibXML-1.88/dom.c
XML-LibXML-1.88/xpath.h
XML-LibXML-1.88/docs/
XML-LibXML-1.88/docs/libxml.dbk
XML-LibXML-1.88/perl-libxml-mm.c
XML-LibXML-1.88/Makefile.PL
XML-LibXML-1.88/test/
XML-LibXML-1.88/test/schema/
XML-LibXML-1.88/test/schema/invaliddemo.xml
XML-LibXML-1.88/test/schema/demo.xml
XML-LibXML-1.88/test/schema/badschema.xsd
XML-LibXML-1.88/test/schema/schema.xsd
XML-LibXML-1.88/test/textReader/
XML-LibXML-1.88/test/textReader/countries.xml
XML-LibXML-1.88/test/relaxng/
XML-LibXML-1.88/test/relaxng/demo3.rng
XML-LibXML-1.88/test/relaxng/demo4.rng
XML-LibXML-1.88/test/relaxng/schema.rng
XML-LibXML-1.88/test/relaxng/demo2.rng
XML-LibXML-1.88/test/relaxng/invaliddemo.xml
XML-LibXML-1.88/test/relaxng/badschema.rng
XML-LibXML-1.88/test/relaxng/demo.xml
XML-LibXML-1.88/test/relaxng/demo.rng
XML-LibXML-1.88/test/xinclude/
XML-LibXML-1.88/test/xinclude/xinclude.xml
XML-LibXML-1.88/test/xinclude/test.xml
XML-LibXML-1.88/test/xinclude/entity.txt
XML-LibXML-1.88/scripts/
XML-LibXML-1.88/scripts/fast-eumm.pl
XML-LibXML-1.88/scripts/prints-to-comments.pl
XML-LibXML-1.88/scripts/bump-version-number.pl
XML-LibXML-1.88/scripts/Test.pm-to-Test-More.pl
XML-LibXML-1.88/Av_CharPtrPtr.c
XML-LibXML-1.88/example/
XML-LibXML-1.88/example/test.dtd
XML-LibXML-1.88/example/thedieline.rss
XML-LibXML-1.88/example/enc2_latin2.html
XML-LibXML-1.88/example/test.xhtml
XML-LibXML-1.88/example/enc_latin2.html
XML-LibXML-1.88/example/xmllibxmldocs.pl
XML-LibXML-1.88/example/article_internal.xml
XML-LibXML-1.88/example/article.xml
XML-LibXML-1.88/example/ext_ent.dtd
XML-LibXML-1.88/example/dromeds.xml
XML-LibXML-1.88/example/test2.xml
XML-LibXML-1.88/example/JBR-ALLENtrees.htm
XML-LibXML-1.88/example/bad.xml
XML-LibXML-1.88/example/utf-16-1.html
XML-LibXML-1.88/example/yahoo-finance-html-with-errors.html
XML-LibXML-1.88/example/xpath.pl
XML-LibXML-1.88/example/article_internal_bad.xml
XML-LibXML-1.88/example/cb_example.pl
XML-LibXML-1.88/example/bad.dtd
XML-LibXML-1.88/example/test.html
XML-LibXML-1.88/example/catalog.xml
XML-LibXML-1.88/example/xmlns/
XML-LibXML-1.88/example/xmlns/goodguy.xml
XML-LibXML-1.88/example/xmlns/badguy.xml
XML-LibXML-1.88/example/article_external_bad.xml
XML-LibXML-1.88/example/complex/
XML-LibXML-1.88/example/complex/complex2.xml
XML-LibXML-1.88/example/complex/complex.dtd
XML-LibXML-1.88/example/complex/complex.xml
XML-LibXML-1.88/example/complex/dtd/
XML-LibXML-1.88/example/complex/dtd/g.dtd
XML-LibXML-1.88/example/complex/dtd/f.dtd
XML-LibXML-1.88/example/test3.xml
XML-LibXML-1.88/example/dtd.xml
XML-LibXML-1.88/example/article_bad.xml
XML-LibXML-1.88/example/utf-16-2.html
XML-LibXML-1.88/example/test.xml
XML-LibXML-1.88/example/ns.xml
XML-LibXML-1.88/example/test4.xml
XML-LibXML-1.88/example/utf-16-2.xml
XML-LibXML-1.88/perl-libxml-sax.c
XML-LibXML-1.88/META.json
XML-LibXML-1.88/debian/
XML-LibXML-1.88/debian/control
XML-LibXML-1.88/debian/libxml-libxml-perl.prerm
XML-LibXML-1.88/debian/rules
XML-LibXML-1.88/debian/libxml-libxml-perl.examples
XML-LibXML-1.88/debian/libxml-libxml-perl.docs
XML-LibXML-1.88/debian/libxml-libxml-perl.postinst
XML-LibXML-1.88/debian/libxml-libxml-perl.install
XML-LibXML-1.88/debian/compat
XML-LibXML-1.88/debian/copyright
XML-LibXML-1.88/debian/changelog
XML-LibXML-1.88/t/
XML-LibXML-1.88/t/08findnodes.t
XML-LibXML-1.88/t/data/
XML-LibXML-1.88/t/data/callbacks_returning_undef.xml
XML-LibXML-1.88/t/49global_extent.t
XML-LibXML-1.88/t/29id.t
XML-LibXML-1.88/t/90threads.t
XML-LibXML-1.88/t/16docnodes.t
XML-LibXML-1.88/t/27new_callbacks_simple.t
XML-LibXML-1.88/t/10ns.t
XML-LibXML-1.88/t/05text.t
XML-LibXML-1.88/t/01basic.t
XML-LibXML-1.88/t/60struct_error.t
XML-LibXML-1.88/t/19die_on_invalid_utf8_rt_58848.t
XML-LibXML-1.88/t/24c14n.t
XML-LibXML-1.88/t/61error.t
XML-LibXML-1.88/t/31xpc_functions.t
XML-LibXML-1.88/t/11memory.t
XML-LibXML-1.88/t/25relaxng.t
XML-LibXML-1.88/t/21catalog.t
XML-LibXML-1.88/t/13dtd.t
XML-LibXML-1.88/t/49callbacks_returning_undef.t
XML-LibXML-1.88/t/15nodelist.t
XML-LibXML-1.88/t/45regex.t
XML-LibXML-1.88/t/47load_xml_callbacks.t
XML-LibXML-1.88/t/60error_prev_chain.t
XML-LibXML-1.88/t/49_load_html.t
XML-LibXML-1.88/t/04node.t
XML-LibXML-1.88/t/17callbacks.t
XML-LibXML-1.88/t/26schema.t
XML-LibXML-1.88/t/30xpathcontext.t
XML-LibXML-1.88/t/18docfree.t
XML-LibXML-1.88/t/80registryleak.t
XML-LibXML-1.88/t/48importing_nodes_IDs_rt_69520.t
XML-LibXML-1.88/t/12html.t
XML-LibXML-1.88/t/44extent.t
XML-LibXML-1.88/t/lib/
XML-LibXML-1.88/t/lib/TestHelpers.pm
XML-LibXML-1.88/t/lib/Collector.pm
XML-LibXML-1.88/t/lib/Counter.pm
XML-LibXML-1.88/t/lib/Stacker.pm
XML-LibXML-1.88/t/07dtd.t
XML-LibXML-1.88/t/42common.t
XML-LibXML-1.88/t/06elements.t
XML-LibXML-1.88/t/03doc.t
XML-LibXML-1.88/t/02parse.t
XML-LibXML-1.88/t/pod.t
XML-LibXML-1.88/t/43options.t
XML-LibXML-1.88/t/32xpc_variables.t
XML-LibXML-1.88/t/40reader.t
XML-LibXML-1.88/t/46err_column.t
XML-LibXML-1.88/t/23rawfunctions.t
XML-LibXML-1.88/t/20extras.t
XML-LibXML-1.88/t/19encoding.t
XML-LibXML-1.88/t/28new_callbacks_multiple.t
XML-LibXML-1.88/t/48_rt55000.t
XML-LibXML-1.88/t/41xinclude.t
XML-LibXML-1.88/t/14sax.t
XML-LibXML-1.88/t/09xpath.t
XML-LibXML-1.88/LibXML.pod
XML-LibXML-1.88/lib/
XML-LibXML-1.88/lib/XML/
XML-LibXML-1.88/lib/XML/LibXML/
XML-LibXML-1.88/lib/XML/LibXML/ErrNo.pod
XML-LibXML-1.88/lib/XML/LibXML/Parser.pod
XML-LibXML-1.88/lib/XML/LibXML/DOM.pod
XML-LibXML-1.88/lib/XML/LibXML/Reader.pod
XML-LibXML-1.88/lib/XML/LibXML/Common.pod
XML-LibXML-1.88/lib/XML/LibXML/RelaxNG.pod
XML-LibXML-1.88/lib/XML/LibXML/Boolean.pm
XML-LibXML-1.88/lib/XML/LibXML/Text.pod
XML-LibXML-1.88/lib/XML/LibXML/SAX/
XML-LibXML-1.88/lib/XML/LibXML/SAX/Generator.pm
XML-LibXML-1.88/lib/XML/LibXML/SAX/Builder.pod
XML-LibXML-1.88/lib/XML/LibXML/SAX/Parser.pm
XML-LibXML-1.88/lib/XML/LibXML/SAX/Builder.pm
XML-LibXML-1.88/lib/XML/LibXML/XPathContext.pm
XML-LibXML-1.88/lib/XML/LibXML/Document.pod
XML-LibXML-1.88/lib/XML/LibXML/Schema.pod
XML-LibXML-1.88/lib/XML/LibXML/SAX.pm
XML-LibXML-1.88/lib/XML/LibXML/Attr.pod
XML-LibXML-1.88/lib/XML/LibXML/Node.pod
XML-LibXML-1.88/lib/XML/LibXML/Reader.pm
XML-LibXML-1.88/lib/XML/LibXML/Error.pm
XML-LibXML-1.88/lib/XML/LibXML/CDATASection.pod
XML-LibXML-1.88/lib/XML/LibXML/Pattern.pod
XML-LibXML-1.88/lib/XML/LibXML/Number.pm
XML-LibXML-1.88/lib/XML/LibXML/ErrNo.pm
XML-LibXML-1.88/lib/XML/LibXML/Common.pm
XML-LibXML-1.88/lib/XML/LibXML/Error.pod
XML-LibXML-1.88/lib/XML/LibXML/Namespace.pod
XML-LibXML-1.88/lib/XML/LibXML/Comment.pod
XML-LibXML-1.88/lib/XML/LibXML/PI.pod
XML-LibXML-1.88/lib/XML/LibXML/Dtd.pod
XML-LibXML-1.88/lib/XML/LibXML/XPathExpression.pod
XML-LibXML-1.88/lib/XML/LibXML/NodeList.pm
XML-LibXML-1.88/lib/XML/LibXML/RegExp.pod
XML-LibXML-1.88/lib/XML/LibXML/DocumentFragment.pod
XML-LibXML-1.88/lib/XML/LibXML/Literal.pm
XML-LibXML-1.88/lib/XML/LibXML/SAX.pod
XML-LibXML-1.88/lib/XML/LibXML/InputCallback.pod
XML-LibXML-1.88/lib/XML/LibXML/XPathContext.pod
XML-LibXML-1.88/lib/XML/LibXML/Element.pod
XML-LibXML-1.88/MANIFEST
XML-LibXML-1.88/perl-libxml-sax.h
XML-LibXML-1.88/typemap
XML-LibXML-1.88/Av_CharPtrPtr.h
XML-LibXML-1.88/xpathcontext.h
XML-LibXML-1.88/HACKING.txt
XML-LibXML-1.88/ppport.h
XML-LibXML-1.88/LICENSE
XML-LibXML-1.88/xpath.c
XML-LibXML-1.88/LibXML.pm
XML-LibXML-1.88/dom.h
XML-LibXML-1.88/perl-libxml-mm.h
XML-LibXML-1.88/Changes
XML-LibXML-1.88/META.yml
CPAN: File::Temp loaded ok (v0.22)

  CPAN.pm: Going to build S/SH/SHLOMIF/XML-LibXML-1.88.tar.gz

running xml2-config...options:
  LIBS='-L/usr/local/lib -L/usr/lib -lxml2 -lm'
  INC='-I/usr/local/include -I/usr/include'
If this is wrong, Re-run as:
  $ /usr/bin/perl Makefile.PL LIBS='-L/path/to/lib' INC='-I/path/to/include'

looking for -lxml2... no
looking for -llibxml2... no
No 'Makefile' createdWarning (usually harmless): 'YAML' not installed, will not store persistent state
  SHLOMIF/XML-LibXML-1.88.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
Running make test
  Make had some problems, won't test
Running make install
  Make had some problems, won't install
Could not read '/root/.cpan/build/XML-LibXML-1.88-9LXOh7/META.yml'. Falling back to other methods to determine prerequisites

Now I can see it mentions some other libraries so from the cmd prompt I tried variation of Libxml2 etc etc but still no luck.

I did also try using the -i switch and then pasting in the URL's in the PDF but this seemed to generate the same errors for lib-xml.

I'm a windows guy with no experiance in using CentOS or installing modules via CPAN, please if anyone can reply please assume I know nothing and am at idiot level knowledge!

Thanks for reading

Kosch

Re: VMware appliance image + plugin - missing dependancy

Posted: Wed Nov 30, 2011 5:59 pm
by lmiltchev
Try running in terminal (as root):

Code: Select all

# yum install perl-XML-LibXML

Re: VMware appliance image + plugin - missing dependancy

Posted: Thu Dec 01, 2011 4:19 am
by kosch
Hello

Thank you for your reply. I ran the command it seemed to get further but then errored out.

Code: Select all

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: anorien.csc.warwick.ac.uk
 * epel: be.mirror.eurid.eu
 * extras: anorien.csc.warwick.ac.uk
 * rpmforge: apt.sw.be
 * updates: anorien.csc.warwick.ac.uk
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package perl-XML-LibXML.i686 1:1.70-5.el6 will be installed
--> Processing Dependency: perl(XML::SAX::Exception) for package: 1:perl-XML-LibXML-1.70-5.el6.i686
--> Processing Dependency: perl(XML::SAX::DocumentLocator) for package: 1:perl-XML-LibXML-1.70-5.el6.i686
--> Processing Dependency: perl(XML::SAX::Base) for package: 1:perl-XML-LibXML-1.70-5.el6.i686
--> Processing Dependency: perl(XML::NamespaceSupport) for package: 1:perl-XML-LibXML-1.70-5.el6.i686
--> Running transaction check
---> Package perl-XML-NamespaceSupport.noarch 0:1.10-3.el6 will be installed
---> Package perl-XML-SAX.noarch 0:0.96-7.el6 will be installed
---> Package perl-XML-SAX-Base.noarch 0:1.04-1.el6.rf will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                       Arch       Version            Repository    Size
================================================================================
Installing:
 perl-XML-LibXML               i686       1:1.70-5.el6       base         366 k
Installing for dependencies:
 perl-XML-NamespaceSupport     noarch     1.10-3.el6         base          17 k
 perl-XML-SAX                  noarch     0.96-7.el6         base          78 k
 perl-XML-SAX-Base             noarch     1.04-1.el6.rf      rpmforge      27 k

Transaction Summary
================================================================================
Install       4 Package(s)

Total size: 488 k
Installed size: 1.4 M
Is this ok [y/N]: Downloading Packages:
Running rpm_check_debug
Running Transaction Test


Re: VMware appliance image + plugin - missing dependancy

Posted: Thu Dec 01, 2011 4:28 am
by kosch
Hi

Sorry I didnt notice my previous post the error message was truncated from the text file.

Got a screenshot instead.

Image

Re: VMware appliance image + plugin - missing dependancy

Posted: Fri Dec 02, 2011 4:33 pm
by agriffin
Try running the following command:

Code: Select all

yum --disablerep=rpmforge install perl-XML-LibXML