8.39. Expat-2.4.1

The Expat package contains a stream oriented C library for parsing XML.

Approximate build time: 0.1 SBU
Required disk space: 13 MB

8.39.1. Installation of Expat

Prepare Expat for compilation:

./configure --prefix=/usr    \
            --disable-static \
            --docdir=/usr/share/doc/expat-2.4.1

Compile the package:

make

To test the results, issue:

make check

Install the package:

make install

If desired, install the documentation:

install -v -m644 doc/*.{html,png,css} /usr/share/doc/expat-2.4.1

8.39.2. Installation of Expat - 32bit

Clean previous build but keep precompiled doc because it cannot be rebuilt in this stage of the system:

sed -e "/^am__append_1/ s/doc//" -i Makefile
make clean

Prepare Expat for compilation:

CC="gcc -m32" ./configure \
    --prefix=/usr         \
    --libdir=/usr/lib32  \
    --host=i686-pc-linux-gnu

Compile the package:

make

Install the package:

make DESTDIR=$PWD/DESTDIR install
cp -Rv DESTDIR/usr/lib32/* /usr/lib32
rm -rf DESTDIR

8.39.3. Installation of Expat - x32bit

Clean previous build but keep precompiled doc because it cannot be rebuilt in this stage of the system:

sed -e "/^am__append_1/ s/doc//" -i Makefile
make clean

Prepare Expat for compilation:

CC="gcc -mx32" ./configure \
    --prefix=/usr         \
    --libdir=/usr/libx32 \
    --host=x86_64-pc-linux-gnux32

Compile the package:

make

Install the package:

make DESTDIR=$PWD/DESTDIR install
cp -Rv DESTDIR/usr/libx32/* /usr/libx32
rm -rf DESTDIR

8.39.4. Contents of Expat

Installed program: xmlwf
Installed libraries: libexpat.so
Installed directory: /usr/share/doc/expat-2.4.1

Short Descriptions

xmlwf

Is a non-validating utility to check whether or not XML documents are well formed

libexpat

Contains API functions for parsing XML