Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

xgawk

108 views
Skip to first unread message

steph

unread,
Mar 7, 2012, 3:48:22 PM3/7/12
to
Hi there,

I tried out to use xgawk to process some xml files but failed on quite
explicit, but not easy to solve,error:

$ xgawk -l xml s.awk f.xml
xgawk: fatal: extension: cannot find dynamic library `xml'

I browsed the web a bit. Sometime it is said to use xml2 lib, sometime
to use expat.
I've tried to rebuild xgawk with those library (one after the other).
Both are in my /usr/lib folder. But it does not change anything.

Does someone has an howto use xgawk, from scratch ?

Thanks a lot

Eric Pement

unread,
Mar 7, 2012, 11:05:00 PM3/7/12
to
On Mar 7, 2:48 pm, steph <st...@home.fr> wrote:
> Hi there,
>
> I tried out to use xgawk to process some xml files but failed on quite
> explicit, but not easy to solve,error:
>
> $ xgawk -l xml s.awk f.xml
> xgawk: fatal: extension: cannot find dynamic library `xml'

This page (http://www.wim-blit.nl/xmlgawk/XMLgawk%20for
%20Windows.html) says:

"* xml.dll needs to be in the current directory or in a directory
which is in AWKLIBPATH or in a directory defined in deflibpath. On my
system it is in c:\Programs\MinGW\lib\awk."

As I read this document, it means if the environment variable
AWKLIBPATH does not exist, create it manually. Point it to a
directory, and put xml.dll in that directory. Environment variables
can be created in Control Panel > System > Advanced > Environment
Variables, or they can be defined in a batch file which runs an
instance of CMD.EXE. HTH.

Eric

Hermann Peifer

unread,
Mar 8, 2012, 5:22:23 AM3/8/12
to
On 07/03/2012 21:48, steph wrote:
>
> I browsed the web a bit. Sometime it is said to use xml2 lib, sometime
> to use expat.
> I've tried to rebuild xgawk with those library (one after the other).
> Both are in my /usr/lib folder. But it does not change anything.
>
> Does someone has an howto use xgawk, from scratch ?
>

I assume that while browsing the web a bit, you found [1] ?

In my installation, xgawk -l xml does this:
access("/home/peifer/local/lib/xgawk/3.1.6/xml.so", R_OK) = 0

Please note that with xgawk, you are back to gawk 3.1.6. I would also
say that there isn't an enormous xgawk user community out there, which
could help you, in case of questions. You could perhaps use [2] as some
indication for the size of the xgawk user community.

Hermann

[1] http://home.vrweb.de/~juergen.kahrs/gawk/XML/

[2] http://sourceforge.net/mailarchive/forum.php?forum_name=xmlgawk-users

steph

unread,
Mar 8, 2012, 2:18:55 PM3/8/12
to
I'm under Linux.
Anyway, I tried to set AWKLIBPATH to my libs folder, where libxml2 resides.
But it does not change anything.
Thanks for you help.


steph

unread,
Mar 8, 2012, 2:23:00 PM3/8/12
to
I'm trying to use xml2 library, as stated in some forum.
I may be wrong.
Where do I find the xml library required by xgawk ?


Hermann Peifer

unread,
Mar 8, 2012, 3:17:07 PM3/8/12
to
On 08/03/2012 20:23, steph wrote:
> Where do I find the xml library required by xgawk ?
>

I can't remember any details, but don't think that at the time, I did
much more than downloading the source code from [1], then run:
./configure && make && make install

Hermann

[1] http://sourceforge.net/projects/xmlgawk/files/



Radoulov, Dimitre

unread,
Mar 9, 2012, 6:34:23 PM3/9/12
to
On 07/03/2012 21:48, steph wrote:
This one worked for me:

./configure --disable-shared --enable-static-extensions
...



Best regards
Dimitre

Aharon Robbins

unread,
Mar 14, 2012, 3:06:48 AM3/14/12
to
In article <jja190$v1k$1...@news.albasani.net>,
Hermann Peifer <pei...@gmx.eu> wrote:
>On 07/03/2012 21:48, steph wrote:
>Please note that with xgawk, you are back to gawk 3.1.6.

The gawk developers would love to have someone help out with merging
xgawk features into the gawk mainline code. While two of the original
xgawk developers are involved already, they're both busy and have not
had a lot of time to actively work on this.

Thanks,

Arnold
--
Aharon (Arnold) Robbins arnold AT skeeve DOT com
P.O. Box 354 Home Phone: +972 8 979-0381
Nof Ayalon Cell Phone: +972 50 729-7545
D.N. Shimshon 99785 ISRAEL
0 new messages