UNIX系OSで採用されているウィンドウシステムであるX Window SystemプロトコルのクライアントライブラリーであるXlilb (libX11) をソースコードからインストールする。
インストールコマンド
sh -eux <<-"EOT"
PKG=libX11 VER=1.6.8 TAG=$PKG-$VER
LOCAL=~/.local J=$(grep -cs '^processor' /proc/cpuinfo || echo 2)
mkdir -p "$LOCAL/src"
cd "$LOCAL/src"
if command -v git >/dev/null; then
[ -e $PKG ] || git clone --depth 1 git://anongit.freedesktop.org/git/xorg/lib/$PKG $PKG
cd $PKG
git fetch --depth 1 origin tag $TAG
git checkout -f $TAG
git clean -dfX
[ -e .gitmodules ] && git submodule foreach --recursive git clean -dfX
[ -e configure.ac ] && autoreconf -is
else
[ -e $PKG-$VER ] || wget https://www.x.org/archive//individual/lib/$PKG-$VER.tar.bz2
tar -xf $PKG-$VER.*
cd $PKG-$VER
make -kj $J distclean clean || :
fi
./configure --prefix="$LOCAL/stow/$PKG-$VER"
make -j $J
make -j $J check
make -j $J install
cd "$LOCAL/stow"
echo $PKG-[0-9]* | xargs -n 1 stow --ignore=dir -D
stow --ignore=dir $PKG-$VER
EOT
インストール例
日付 | バージョン | OS | 依存関係 |
2019-06-22 | 1.6.8 | Ubuntu 18.04 | GNU Make 4.2.1, GCC 7.4.0 |
関連