Nothing really changed since 10.3.x, but I strongly recommend to download and install a local version of expat. I still use and have good experience with expat-1.95.8.
Find expat-1.95.8 at http://downloads.sourceforge.net/expat/expat-1.95.8.tar.gz
Find xmlgawk at http://sourceforge.net/project/showfiles.php?group_id=133165
If you have already an installation of GAWK-3.1.4 and expat you should uninstall the old software first:
# uninstall older expat lib cd /usr/local/src cd expat-1.95.6 make uninstall # uninstall previous gawk cd ../gawk-3.1.4 make uninstall
OK, now download, unpack, configure, compile and install the latest releases:
cd /usr/local/src # download expat-1.95.8 from sourceforge with your browser tar xzf expat-1.95.8.tar.gz cd expat-1.95.8 # compile and install expat (expect no error messages) ./configure make make install # expat done cd .. # fetch the release from http://sourceforge.net/project/showfiles.php?group_id=133165 tar xzf xgawk.tar.gz # classical configure, compile, test, install cycle cd xgawk-3.1.4-2005-04-09 ./configure make # run the testsuite (ignore the errors: synerr1 parseme noparms) make check # install make install
Congratulation you have now a GAWK-3.1.4 with XML extension.
The compilation of xmlgawk under Panther is no problem. You only need expat, GAWK-3.1.3 and the patch.
The default locations in the filesystems are those for GNU tools and OSX, which means /usr/local/.
At first you need expat (http://www.libexpat.org/) and compile it:
cd /usr/local/src/expat-1.95.6 ./configure make # ignore the errors, the compiler retries in basic mode make install
Afterwards you have to download GAWK 3.1.3 sources (http://ftp.gnu.org/gnu/gawk/gawk-3.1.3.tar.gz), download the patch (http://homepage.mac.com/stefan.tramm/download/patch-xmlext-313.gz) and perform:
# patch the source cd /usr/local/src/gawk-3.1.3 gunzip patch-xmlext-313.gz patch -p1 < patch-xmlext-313 # compile gawk ./configure make # run the testsuite (ignore the errors: synerr1 parseme noparms) # its a little strange with parseme and noparms, some parts # of the (expected) GAWK error messages are missing... make check # install make install
As last part you should copy http://homepage.mac.com/stefan.tramm/download/xmlgawk to /usr/local/bin/xmlgawk and set the Execute-Bit. Afterwards copy http://homepage.mac.com/stefan.tramm/download/xmllib.awk to /usr/local/share/awk/xmllib.awk .
Congratulation you have now a GAWK-3.1.3 with XML extension.
The default locations in the filesystems are those for GNU tools and OSX, which means /usr/local/.
At first you need expat (http://www.libexpat.org/) and compile it:
cd /usr/local/src/expat-1.95.6 ./configure make # ignore the errors, the compiler retries in basic mode make install
At second you need iconv (http://www.gnu.org/software/libiconv/) and compile it:
cd /usr/local/src/libiconv-1.9.1 ./configure make make install
At last you have to download GAWK 3.1.3 sources (http://ftp.gnu.org/gnu/gawk/gawk-3.1.3.tar.gz), download the patch (http://homepage.mac.com/stefan.tramm/download/patch-xmlext-313.gz) and perform:
# patch the source cd /usr/local/src/gawk-3.1.3 gunzip patch-xmlext-313.gz patch -p1 < patch-xmlext-313 # compile gawk ./configure make # run the testsuite (ignore the errors: synerr1 parseme noparms) # its a little strange with parseme and noparms, some parts # of the (expected) GAWK error messages are missing... make check # install make install
As last part you should copy http://homepage.mac.com/stefan.tramm/download/xmlgawk to /usr/local/bin/xmlgawk and set the Execute-Bit. Afterwards copy http://homepage.mac.com/stefan.tramm/download/xmllib.awk to /usr/local/share/awk/xmllib.awk .
Congratulation you have now a GAWK-3.1.3 with XML extension.