Libxml2 とは GNOME 2 などで採用されている XML を扱うための基本ライブラリです。
The XML C parser and toolkit of Gnome から Libxml2 のソースファイルをダウンロードしてインストールする方法を紹介します。
Libxml2 のダウンロードとインストール
Libxml2 のソースファイルを The XML C parser and toolkit of Gnome からダウンロードしてコンパイル、インストールを行います。
# wget -P /usr/local/src ftp://xmlsoft.org/libxml2/libxml2-2.6.27.tar.gz![](/images/enter.gif)
# cd /usr/local/src![](/images/enter.gif)
# tar xzf libxml2-2.6.27.tar.gz![](/images/enter.gif)
# cd libxml2-2.6.27![](/images/enter.gif)
# ./configure --prefix=/usr/local![](/images/enter.gif)
# make![](/images/enter.gif)
# make install![](/images/enter.gif)
![](/images/enter.gif)
# cd /usr/local/src
![](/images/enter.gif)
# tar xzf libxml2-2.6.27.tar.gz
![](/images/enter.gif)
# cd libxml2-2.6.27
![](/images/enter.gif)
# ./configure --prefix=/usr/local
![](/images/enter.gif)
# make
![](/images/enter.gif)
# make install
![](/images/enter.gif)
— configure オプションの解説
- インストール先のディレクトリを設定します。
- –prefix=/usr/local