Hello
The klish uses external engines to parse XML files.
The supported engines are libxml2, expat, libroxml.
You can choose the one you like.
Use --with-libxml2, --with-libexpat, --with-libroxml while ./configure
to choose engine.
Be sure the choosen external package is already installed in your system.
By default the klish will choose expat. So you have errors with expat.
13.01.2014 22:46, mmaccaro пишет:
> Hello,
>
> I am knew to developing CLI frameworks. I am actually assisting our
> development group with this task as they are overburdened at the
> moment. I tried to run the steps in the klish XML examples under the
> paragraph "The CLISH original examples". I am getting the following
> errors and I am not sure what was done wrong. I basically performed
> the following steps:
>
> 1. download klish 1.6.7
> 2. tar xvjf klish-1.6.7.tar.bz2
> 3. ./configure
> 4. make
>
> And I get the following errors in the console output:
>
> ...
> /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -g -O2 -MT clish/shell/libclish_la-shell_expat.lo -MD -MP -MF
> clish/shell/.deps/libclish_la-shell_expat.Tpo -c -o
> clish/shell/libclish_la-shell_expat.lo `test -f
> 'clish/shell/shell_expat.c' || echo './'`clish/shell/shell_expat.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -g -O2 -MT
> clish/shell/libclish_la-shell_expat.lo -MD -MP -MF
> clish/shell/.deps/libclish_la-shell_expat.Tpo -c
> clish/shell/shell_expat.c -fPIC -DPIC -o
> clish/shell/.libs/libclish_la-shell_expat.o
> clish/shell/shell_expat.c:40:19: error: expat.h: No such file or directory
> clish/shell/shell_expat.c: In function 'clish_xmldoc_read':
> clish/shell/shell_expat.c:314: error: 'XML_Parser' undeclared (first
> use in this function)
> clish/shell/shell_expat.c:314: error: (Each undeclared identifier is
> reported only once
> clish/shell/shell_expat.c:314: error: for each function it appears in.)
> clish/shell/shell_expat.c:314: error: expected ';' before 'parser'
> clish/shell/shell_expat.c:321: error: 'parser' undeclared (first use
> in this function)
> make[1]: *** [clish/shell/libclish_la-shell_expat.lo] Error 1
> make[1]: Leaving directory `/home/qa/Downloads/klish-1.6.7'
> make: *** [all] Error 2
> [qa@grandprix klish-1.6.7]$
>
> I performed a locate on expat.h and here's what's on my system.
> [root@grandprix klish-1.6.7]# locate xpat.h
> /usr/include/python2.6/pyexpat.h
>
> I googled expat.h and see that this is a pkg that can be installed,
> but thought it would have been part of the klish tar file. I might try
> installing expat to see if I get farther.
>
> Any suggestions would be much appreciated.
>
> -Marc
> --
> You received this message because you are subscribed to the Google
> Groups "klish" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
klish+un...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.