japanese site
온라인강좌책메일다운로드동아리쇼핑기술지원기업정보갤러리동영상 블로그
『신개념 4단계 리눅스기술지원 시스템 공개』

※ 『무료 리눅스 배포판 배송서비스』 ※

 
리눅스 MRTG 트래픽분석서버 구축 (2.zlib설치)
조회 : 3,561  


1. 압축풀기

 

[root@kebia_2 local]# gunzip zlib.tar.gz

[root@kebia_2 local]#

[root@kebia_2 local]#

[root@kebia_2 local]# ls -l

total 39428

drwxr-xr-x   13 1134     1134         4096 Jun 17 01:08 apache

-rw-r--r--    1 sspark   sspark    1984399 Jun 16 23:58 apache_1.3.20.tar.gz

drwxr-xr-x    2 root     root         4096 Jun 17 01:06 bin

drwxr-xr-x    2 root     root         4096 Feb  7  1996 doc

drwxr-xr-x    2 root     root         4096 Feb  7  1996 etc

drwxr-xr-x    8 101      110          4096 Jun 17 00:50 freetype-1.2

-rw-r--r--    1 sspark   sspark    3440640 Jun 17 00:39 freetype-1.2.tar

drwxr-xr-x    2 root     root         4096 Feb  7  1996 games

drwxr--r--    3 200      users        4096 Jun 17 00:41 gd1.5

-rw-r--r--    1 sspark   sspark     829440 Jun 17 00:39 gd1_5.tar

drwxr-xr-x    3 root     root         4096 Jul 21 19:53 include

drwxr-xr-x    2 root     root         4096 Feb  7  1996 info

drwxr-xr-x    3 root     root         4096 Jul 21 19:53 lib

-rw-r--r--    1 sspark   sspark     484520 Jul 21 19:36 libpng-1.0.8.tar.gz

drwxr-xr-x   12 root     root         4096 Mar 12 17:39 man

-rw-r--r--    1 sspark   sspark     986994 Jul 21 19:30 mrtg-2.9.17.tar.gz

drwxr-xr-x   11 root     root         4096 Jun 17 00:11 mysql

drwxrwxrwx   21 510      101          4096 Jun 17 00:05 mysql-3.22.24

-rw-r--r--    1 sspark   sspark   18042880 Jun 16 23:54 mysql-3.22.24.tar

drwxr-xr-x   16 510      users        4096 Jun 17 01:06 php-4.0.4pl1

-rw-r--r--    1 sspark   sspark   13701120 Jun 16 23:55 php-4.0.4pl1.tar

drwxr-xr-x    2 root     root         4096 Feb  7  1996 sbin

drwxr-xr-x    3 root     root         4096 Jun 17 00:55 share

drwxr-xr-x    2 root     root         4096 Feb  7  1996 src

-rw-r--r--    1 root     root       757760 Jul 21 19:51 zlib.tar

[root@kebia_2 local]#

[root@kebia_2 local]#

 

2. tar풀기



[root@kebia_2 local]# tar xvfp zlib.tar

zlib-1.1.3/README

zlib-1.1.3/FAQ

zlib-1.1.3/INDEX

zlib-1.1.3/ChangeLog

zlib-1.1.3/configure

zlib-1.1.3/Make_vms.com

zlib-1.1.3/Makefile

zlib-1.1.3/Makefile.in

zlib-1.1.3/Makefile.riscos

zlib-1.1.3/adler32.c

zlib-1.1.3/compress.c

zlib-1.1.3/crc32.c

zlib-1.1.3/deflate.c

zlib-1.1.3/deflate.h

zlib-1.1.3/example.c

zlib-1.1.3/gzio.c

zlib-1.1.3/infblock.c

zlib-1.1.3/infblock.h

zlib-1.1.3/infcodes.c

zlib-1.1.3/infcodes.h

zlib-1.1.3/inffast.c

zlib-1.1.3/inffast.h

zlib-1.1.3/inffixed.h

zlib-1.1.3/inflate.c

zlib-1.1.3/inftrees.c

zlib-1.1.3/inftrees.h

zlib-1.1.3/infutil.c

zlib-1.1.3/infutil.h

zlib-1.1.3/maketree.c

zlib-1.1.3/minigzip.c

zlib-1.1.3/trees.c

zlib-1.1.3/trees.h

zlib-1.1.3/uncompr.c

zlib-1.1.3/zconf.h

zlib-1.1.3/zlib.h

zlib-1.1.3/zutil.c

zlib-1.1.3/zutil.h

zlib-1.1.3/descrip.mms

zlib-1.1.3/algorithm.txt

zlib-1.1.3/zlib.3

zlib-1.1.3/msdos/Makefile.b32

zlib-1.1.3/msdos/Makefile.bor

zlib-1.1.3/msdos/Makefile.dj2

zlib-1.1.3/msdos/Makefile.emx

zlib-1.1.3/msdos/Makefile.msc

zlib-1.1.3/msdos/Makefile.tc

zlib-1.1.3/msdos/Makefile.w32

zlib-1.1.3/msdos/Makefile.wat

zlib-1.1.3/msdos/zlib.def

zlib-1.1.3/msdos/zlib.rc

zlib-1.1.3/nt/Makefile.emx

zlib-1.1.3/nt/Makefile.gcc

zlib-1.1.3/nt/Makefile.nt

zlib-1.1.3/nt/zlib.dnt

zlib-1.1.3/amiga/Makefile.pup

zlib-1.1.3/amiga/Makefile.sas

zlib-1.1.3/os2/Makefile.os2

zlib-1.1.3/os2/zlib.def

zlib-1.1.3/contrib/README.contrib

zlib-1.1.3/contrib/visual-basic.txt

zlib-1.1.3/contrib/asm386/gvmat32.asm

zlib-1.1.3/contrib/asm386/gvmat32c.c

zlib-1.1.3/contrib/asm386/mkgvmt32.bat

zlib-1.1.3/contrib/asm386/zlibvc.def

zlib-1.1.3/contrib/asm386/zlibvc.dsp

zlib-1.1.3/contrib/asm386/zlibvc.dsw

zlib-1.1.3/contrib/asm586/README.586

zlib-1.1.3/contrib/asm686/README.686

zlib-1.1.3/contrib/asm586/match.S

zlib-1.1.3/contrib/asm686/match.S

zlib-1.1.3/contrib/iostream/test.cpp

zlib-1.1.3/contrib/iostream/zfstream.cpp

zlib-1.1.3/contrib/iostream/zfstream.h

zlib-1.1.3/contrib/iostream2/zstream.h

zlib-1.1.3/contrib/iostream2/zstream_test.cpp

zlib-1.1.3/contrib/untgz/Makefile

zlib-1.1.3/contrib/untgz/untgz.c

zlib-1.1.3/contrib/untgz/makefile.w32

zlib-1.1.3/contrib/minizip/ChangeLogUnzip

zlib-1.1.3/contrib/minizip/Makefile

zlib-1.1.3/contrib/minizip/miniunz.c

zlib-1.1.3/contrib/minizip/minizip.c

zlib-1.1.3/contrib/minizip/unzip.c

zlib-1.1.3/contrib/minizip/unzip.h

zlib-1.1.3/contrib/minizip/zip.c

zlib-1.1.3/contrib/minizip/zip.h

zlib-1.1.3/contrib/minizip/readme.txt

zlib-1.1.3/contrib/minizip/unzip.def

[root@kebia_2 local]#

[root@kebia_2 local]# cd zlib-1.1.3/

[root@kebia_2 zlib-1.1.3]#

[root@kebia_2 zlib-1.1.3]#
3. configure

 

[root@kebia_2 zlib-1.1.3]# ./configure

Checking for gcc...

Building static library libz.a version 1.1.3 with gcc.

Checking for unistd.h... Yes.

Checking for errno.h...  Yes.


[root@kebia_2 zlib-1.1.3]# make

gcc -O3 -DHAVE_UNISTD_H -DUSE_MMAP   -c -o example.o example.c

gcc -O3 -DHAVE_UNISTD_H -DUSE_MMAP   -c -o adler32.o adler32.c
4. make test

 

[root@kebia_2 zlib-1.1.3]# make test

hello world

uncompress(): hello, hello!

gzread(): hello, hello!


5. 설치하기(make install)

 

[root@kebia_2 zlib-1.1.3]# make install

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


6. 설치확인

 

[root@kebia_2 zlib-1.1.3]# ls -l /usr/local/include

total 200

-rw-r--r--    1 root     root        43331 Jun 17 00:55 freetype.h

-rw-r--r--    1 root     root         5505 Jun 17 00:55 fterrid.h

-rw-r--r--    1 root     root        29283 Jun 17 00:55 ftnameid.h

-rw-r--r--    1 root     root         1660 Jun 17 00:55 ftxcmap.h


[root@kebia_2 zlib-1.1.3]# ls -l /usr/local/lib


[원글링크] : https://www.linux.co.kr/home2/board/subbs/board.php?bo_table=lecture&wr_id=538


이 글을 트위터로 보내기 이 글을 페이스북으로 보내기 이 글을 미투데이로 보내기

 
박성수
파파
헐렁고수

 
   
 


『신개념 4단계 리눅스기술지원 시스템 공개』

CentOS 리눅스 전문서적 국내최초출시

 
회사소개 | 보도기사 | 채용안내 | 광고안내 | 이용약관 | 개인정보취급방침 | 책임한계와 법적고지 | 불편사항 신고하기 | 사이트맵
ㅇ 서울 : 서울특별시 강남구 노현로79길 66, 402호(역삼동,청송빌딩)  ㅇ 부산 : 부산광역시 해운대구 우동 1470 에이스하이테크21 914호
ㅇ 대표 : 1544-8128 ㅇ부산직통 : 051-744-0077 ㅇ서울직통 : 02-856-0055 ㅇ FAX : 02-6280-2663
ㅇ 사업자번호 : 128-86-68239 ㅇ 통신판매업 신고번호 : 2013-부산금정-0035호 ㅇ 개인정보책임자 : 이재석
ㅇ 상호명 : (주) 수퍼유저 ㅇ 대표자 : 박성수
Copyright ⓒ (주)수퍼유저. All rights reserved.

 아 이 디
 비밀번호
회원 가입 | 비밀번호 찾기

블로그~
 
▷ 네트웍
SMS
MRTG
개념및 프로토콜
네트웍 장비
ACL
책제목
리눅스서버관리실무바이블v3.0


저자 박성수
페이지수 2,032 pages
펴낸곳(주)수퍼유저

리눅스 서버 구축 및 관리에 필요한 거의 모든 부분과 전반적인 실무 기법들을 다루고 있음
책제목
리눅스보안관리실무(2/E)


저자홍석범
페이지수 820 pages
펴낸곳(주)수퍼유저

리눅스 보안에 관련된 내용을 종합적으로 쓴 책. 저자의 명성 그대로 보안관련의 모든 내용이 그대로 담겨져 있다.