Chinaunix首页 | 论坛 | 博客
  • 博客访问: 815358
  • 博文数量: 172
  • 博客积分: 3836
  • 博客等级: 中校
  • 技术积分: 1988
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-10 14:59
文章分类

全部博文(172)

文章存档

2014年(2)

2013年(1)

2012年(28)

2011年(141)

分类: LINUX

2011-06-15 17:41:34

1. zlib-1.2.3 compilation
  1. cheney@cheney-ubuntu:~/tar/mtd-utility/zlib-1.2.3$ ./configure
  2. Checking for gcc...
  3. Building static library libz.a version 1.2.3 with gcc.
  4. Checking for unistd.h... Yes.
  5. Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf()
  6. Checking for vsnprintf() in stdio.h... Yes.
  7. Checking for return value of vsnprintf()... Yes.
  8. Checking for errno.h... Yes.
  9. Checking for mmap support... Yes.
  10. heney@cheney-ubuntu:~/tar/mtd-utility/zlib-1.2.3$
    cheney@cheney-ubuntu:~/tar/mtd-utility/zlib-1.2.3$
    cheney@cheney-ubuntu:~/tar/mtd-utility/zlib-1.2.3$ make
    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 zutil.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
    cheney@cheney-ubuntu:~/tar/mtd-utility/zlib-1.2.3$ 
  11. cheney@cheney-ubuntu:~/tar/mtd-utility/zlib-1.2.3$ sudo make install
    [sudo] password for cheney:
    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
    cheney@cheney-ubuntu:~/tar/mtd-utility/zlib-1.2.3$

2. lzo-2.05 compilation
  1. cheney@cheney-ubuntu:~/tar/mtd-utility/lzo-2.05$ ./configure
  2. configure: Configuring LZO 2.05
  3. checking build system type... i686-pc-linux-gnu
  4. checking host system type... i686-pc-linux-gnu
  5. checking target system type... i686-pc-linux-gnu
  6. checking whether to enable maintainer-specific portions of Makefiles... no
  7. checking for gcc... gcc
  8. checking whether the C compiler works... yes
  9. checking for C compiler default output file name... a.out
  10. checking for suffix of executables...
  11. checking whether we are cross compiling... no
  12. checking for suffix of object files... o
  13. checking whether we are using the GNU C compiler... yes
  14. checking whether gcc accepts -g... yes
  15. checking for gcc option to accept ISO C89... none needed
  16. checking whether gcc and cc understand -c and -o together... yes
  17. checking for style of include used by make... GNU
  18. checking dependency style of gcc... gcc3
  19. checking how to run the C preprocessor... gcc -E
  20. checking whether the C preprocessor needs special flags... none needed
  21. checking for an ANSI C-conforming const... yes
  22. checking for grep that handles long lines and -e... /bin/grep
  23. checking for egrep... /bin/grep -E
  24. ..........
  25. cheney@cheney-ubuntu:~/tar/mtd-utility/lzo-2.05$ make
  26. cheney@cheney-ubuntu:~/tar/mtd-utility/lzo-2.05$ make install

3. e2fsprogs-1.41.13 compilation
  1. cheney@cheney-ubuntu:~/tar/mtd-utility/e2fsprogs-1.41.13$ mkdir build
  2. cheney@cheney-ubuntu:~/tar/mtd-utility/e2fsprogs-1.41.13$ cd build/
  3. cheney@cheney-ubuntu:~/tar/mtd-utility/e2fsprogs-1.41.13/build$
  4. cheney@cheney-ubuntu:~/tar/mtd-utility/e2fsprogs-1.41.13/build$ ../configure
  5. cheney@cheney-ubuntu:~/tar/mtd-utility/e2fsprogs-1.41.13/build$make
  6. cheney@cheney-ubuntu:~/tar/mtd-utility/e2fsprogs-1.41.13/build$make install-libs

阅读(1487) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~