[HOME] [戻る]

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

目次

1回目(2004/02/05 16:00)

解説

インストール

$ tar zxf unzip551.tar.gz
$ cd unzip-5.51/
$ bzcat ../unzip-5.50-iconv-00.diff.bz2 | patch -p1
patching file fileio.c
Hunk #1 succeeded at 1923 (offset 6 lines).
Hunk #2 succeeded at 2162 (offset 6 lines).
patching file unix/Makefile
Hunk #1 succeeded at 45 with fuzz 2.
patching file unzip.c
Hunk #1 succeeded at 610 (offset 6 lines).
Hunk #2 succeeded at 648 (offset 6 lines).
$ vi unix/Makefile

【変更前】
 45: CC = cc
105: prefix = /usr/local

【変更後】
 45: CC = gcc
105: prefix = /usr
$ make -f unix/Makefile generic
$ su
# make -f unix/Makefile install
$ ls -lt /usr/bin
-rwxr-xr-x  1 root root   18964 Feb  5 16:04 funzip
-rwxr-xr-x  2 root root  115576 Feb  5 16:04 unzip
-rwxr-xr-x  1 root root   56004 Feb  5 16:04 unzipsfx
-rwxr-xr-x  1 root root    1188 Feb  5 16:04 zipgrep
-rwxr-xr-x  2 root root  115576 Feb  5 16:04 zipinfo
 realusersys
make1m36.342s1m29.660s0m6.700s

確認

$ unzip -l test.zip
Archive:  test.zip
  Length     Date   Time    Name
 --------    ----   ----    ----
unzip: Invlaide zip magic

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