[HOME] [戻る]

玄箱インストールmemo(libpng)

目次

libpng-1.2.8

phpで図形を描画する場合に必要。

インストール手順

tar jxf tgz/libpng-1.2.8.tar.bz2
cd libpng-1.2.8
cp scripts/makefile.linux Makefile
Makefile の編集 (prefix=/usr に変更)
make
su
make install

 realusersys
make4m4.529s3m57.430s0m6.720s

確認とstrip

root@kuro:/usr/lib# ls -lt |head -15
lrwxrwxrwx   1 root root       11 Feb  8 01:18 libpng.so -> libpng.so.3
lrwxrwxrwx   1 root root       17 Feb  8 01:18 libpng.so.3 -> libpng.so.3.1.2.8
-rwxr-xr-x   1 root root   225770 Feb  8 01:18 libpng.so.3.1.2.8
lrwxrwxrwx   1 root root       13 Feb  8 01:18 libpng12.so -> libpng12.so.0
lrwxrwxrwx   1 root root       19 Feb  8 01:18 libpng12.so.0 -> libpng12.so.0.1.2.8
drwxr-xr-x   2 root root     4096 Feb  8 01:18 pkgconfig
lrwxrwxrwx   1 root root       10 Feb  8 01:18 libpng.a -> libpng12.a
-rw-r--r--   1 root root   261972 Feb  8 01:18 libpng12.a
-rwxr-xr-x   1 root root   225770 Feb  8 01:18 libpng12.so.0.1.2.8

root@kuro:/usr/lib# strip -p libpng.so.3.1.2.8 libpng12.so.0.1.2.8

root@kuro:/usr/lib# ls -lt |head -15
lrwxrwxrwx   1 root root       11 Feb  8 01:18 libpng.so -> libpng.so.3
lrwxrwxrwx   1 root root       17 Feb  8 01:18 libpng.so.3 -> libpng.so.3.1.2.8
-rwxr-xr-x   1 root root   209996 Feb  8 01:18 libpng.so.3.1.2.8
lrwxrwxrwx   1 root root       13 Feb  8 01:18 libpng12.so -> libpng12.so.0
lrwxrwxrwx   1 root root       19 Feb  8 01:18 libpng12.so.0 -> libpng12.so.0.1.2.8
drwxr-xr-x   2 root root     4096 Feb  8 01:18 pkgconfig
lrwxrwxrwx   1 root root       10 Feb  8 01:18 libpng.a -> libpng12.a
-rw-r--r--   1 root root   261972 Feb  8 01:18 libpng12.a
-rwxr-xr-x   1 root root   209996 Feb  8 01:18 libpng12.so.0.1.2.8

2005/02/10
ご意見・ご感想は,こちらの掲示板 まで.