個猫 は 日本猫 です 悲しい事に 英語はわからないのです。 進む事は出来 ます。
どうせ やるなら 徹底的に ./configure --prefix=/usr/local も 試みよう
お掃除は 嫌いですが
# cd ../zlib-1.2.3 # pwd /usr/local/src/105_zlib-1-2-3/zlib-1.2.3 # make clean rm -f *.o *~ example minigzip \ libz.* foo.gz so_locations \ _match.s maketree contrib/infback9/*.o
へい 再度
# ./configure --prefix=/usr/local 2>&1 |tee log-conf-usr-local-static Checking for gcc... Building static library libz.a version 1.2.3 with gcc. Checking for unistd.h... Yes. Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf() Checking for vsnprintf() in stdio.h... Yes. Checking for return value of vsnprintf()... Yes. Checking for errno.h... Yes. Checking for mmap support... Yes.
へたら
# make 2>&1 | tee log_make-static gcc -O3 -DUSE_MMAP -c -o example.o example.c gcc -O3 -DUSE_MMAP -c -o adler32.o adler32.c gcc -O3 -DUSE_MMAP -c -o compress.o compress.c gcc -O3 -DUSE_MMAP -c -o crc32.o crc32.c gcc -O3 -DUSE_MMAP -c -o gzio.o gzio.c gcc -O3 -DUSE_MMAP -c -o uncompr.o uncompr.c gcc -O3 -DUSE_MMAP -c -o deflate.o deflate.c gcc -O3 -DUSE_MMAP -c -o trees.o trees.c gcc -O3 -DUSE_MMAP -c -o zutil.o zutil.c gcc -O3 -DUSE_MMAP -c -o inflate.o inflate.c gcc -O3 -DUSE_MMAP -c -o infback.o infback.c gcc -O3 -DUSE_MMAP -c -o inftrees.o inftrees.c gcc -O3 -DUSE_MMAP -c -o inffast.o inffast.c ar rc libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zut il.o inflate.o infback.o inftrees.o inffast.o gcc -O3 -DUSE_MMAP -o example example.o -L. libz.a gcc -O3 -DUSE_MMAP -c -o minigzip.o minigzip.c gcc -O3 -DUSE_MMAP -o minigzip minigzip.o -L. libz.a # rm /tmp/20081107mark /* 次ぎの 準備 */
# ls ChangeLog configure* gzio.o libz.a trees.o FAQ contrib/ infback.c log-conf-usr-local-static uncompr.c INDEX crc32.c infback.o log_make-static uncompr.o Makefile crc32.h inffast.c make_vms.com win32/ Makefile.in crc32.o inffast.h minigzip* zconf.h README deflate.c inffast.o minigzip.c zconf.in.h adler32.c deflate.h inffixed.h minigzip.o zlib.3 adler32.o deflate.o inflate.c msdos/ zlib.h algorithm.txt example* inflate.h old/ zutil.c amiga/ example.c inflate.o projects/ zutil.h as400/ example.o inftrees.c qnx/ zutil.o compress.c examples/ inftrees.h trees.c compress.o gzio.c inftrees.o trees.h # make check hello world zlib version 1.2.3 = 0x1230, compile flags = 0x55 uncompress(): hello, hello! gzread(): hello, hello! gzgets() after gzseek: hello! inflate(): hello, hello! large_inflate(): OK after inflateSync(): hello, hello! inflate with dictionary: hello, hello! *** zlib test OK *** # ls ChangeLog configure* gzio.c inftrees.o trees.h FAQ contrib/ gzio.o libz.a trees.o INDEX crc32.c infback.c log-conf-usr-local-static uncompr.c Makefile crc32.h infback.o log_make-static uncompr.o Makefile.in crc32.o inffast.c make_vms.com win32/ README deflate.c inffast.h minigzip* zconf.h adler32.c deflate.h inffast.o minigzip.c zconf.in.h adler32.o deflate.o inffixed.h minigzip.o zlib.3 algorithm.txt example* inflate.c msdos/ zlib.h amiga/ example.c inflate.h old/ zutil.c as400/ example.o inflate.o projects/ zutil.h compress.c examples/ inftrees.c qnx/ zutil.o compress.o foo.gz inftrees.h trees.c
今度は 何が かかるの?
# touch /tmp/20081107mark ; sleep 1
それそれ
# make install 2>&1 | tee log-make-install-static cp zlib.h zconf.h /usr/local/include chmod 644 /usr/local/include/zlib.h /usr/local/include/zconf.h cp libz.a /usr/local/lib cd /usr/local/lib; chmod 755 libz.a cd /usr/local/lib; if test -f libz.so.1.2.3; then \ rm -f libz.so libz.so.1; \ ln -s libz.so.1.2.3 libz.so; \ ln -s libz.so.1.2.3 libz.so.1; \ (ldconfig || true) >/dev/null 2>&1; \ fi cp zlib.3 /usr/local/share/man/man3 chmod 644 /usr/local/share/man/man3/zlib.3
どうですか?
# find / -cnewer /tmp/20081107mark ! -type d -print >/tmp/colectionfileall find: /proc/1909/fd/4: No such file or directory
予定は未定
# pwd ; ls -a /usr/local/src/105_zlib-1-2-3/tgz-second ./ ../ # mv /tmp/colectionfileall . # wc -l colectionfileall 1944 colectionfileall # sed -e '/^\/proc/d' colectionfileall | wc -l 11 # sed -e '/^\/proc/d' colectionfileall >qqqqq # mv qqqqq colectionfileall # vi colectionfileall # cat colectionfileall /usr/local/lib/libz.so /usr/local/lib/libz.so.1 /usr/local/lib/libz.a /usr/local/include/zlib.h /usr/local/include/zconf.h /usr/local/share/man/man3/zlib.3
”libz.a” を 入手 !
これはこれで 固めておこう
# tar -T colectionfileall -cvzf zlib-static-1.2.3.tgz 2>&1 | tee log_gather-static tar: Member names contain `..' tar: Removing leading `/' from member names usr/local/lib/libz.so usr/local/lib/libz.so.1 usr/local/lib/libz.a usr/local/include/zlib.h usr/local/include/zconf.h usr/local/share/man/man3/zlib.3 # ls -l | sed 1d -rw-r--r-- 1 root root 156 Nov 8 00:23 colectionfileall -rw-r--r-- 1 root root 225 Nov 8 00:36 log_gather-static -rw-r--r-- 1 root root 65417 Nov 8 00:36 zlib-static-1.2.3.tgz
にゃんたろう 拝!
2008年11月 8日 (土) 22:04:07 JST 作成