Expat
1.1、Expat简介
是什么 ?:a stream-oriented XML parser library
开发语言:C
官方主页:https://libexpat.github.io
源码仓库:https://github.com/libexpat/libexpat
1.2、通过包管理器安装Expat
操作系统包管理器安装命令
Allvcpkg
vcpkg install expat
vcpkg install expat:x64-osx
vcpkg install expat:x64-linux
vcpkg install expat:x64-windows
macOSHomeBrewbrew install expat
GNU/LinuxLinuxBrewbrew install expat
aptsudo apt-get install -y libexpat1 libexpat1-dev
CentOSyumsudo yum install -y expat expat-devel
dnfsudo dnf install -y expat expat-devel
openSUSEzyppersudo zypper install -y expat libexpat-devel
Alpine Linuxapksudo apk add expat expat-dev

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm expat
Gentoo LinuxPortagesudo emerge expat
1.3、通过源码安装Expat 

step1、安装依赖

下载时cURL
解压时tarxz
编译时POSIX shGNU CoreUtilsmakegcc
运行时glibc ( libc.sold-linux-x86-64.so )

step2、使用curl命令下载libexpat源码包 (

curl -LO https://github.com/libexpat/libexpat/releases/download/R_2_2_7/expat-2.2.7.tar.xz

step3、使用tar解压libexpat源码包

tar vxf expat-2.2.7.tar.xz

step4、进入expat-2.2.7目录,并查看它的内容:

step5、配置、编译、安装:

./configure && make && sudo make install
1.4、Expat中包含的命令
1.5、Expat中包含的头文件
1.6、Expat中包含的库文件
  • libexpat.{a | so | dylib}