System/OS
2013.04.23 13:31
[linux] GD 라이브러리 설치 방법..
조회 수 11377 댓글 0
첨부 '1' |
---|
GD 및 기타 라이브러리 설치
GD라이브러리를 설치 하려면 몇가지 필수 설치 라이브러리가 있는데 그 라이브러리 먼저 설치하도록 하겠습니다.
준비할 자료
www. Superuser.co.kr 에 접속하면 자료실이 있는데 그곳을 참조
zlib 파일 : zlib-1.1.4.tar.gz
libpng 파일 : libpng-1.2.5.tar.gz
freetype 파일 : freetype-2.1.5.tar.gz
libjpeg 파일 : jpegsrc.v6b.tar.gz
GD 파일 : gd-2.0.15.tar.gz
위 압축 파일들을 /usr/local/tmp/ 만들어서 옮겨놓고 작업하며, 설치 형식은 압축을 풀고 configure 와 컴파일과 설치이다.
(1) zlib 설치 (zlib 은 압축과 관련된 라이브러리)
[root@localhost tmp]# tar zxvf zlib-1.1.4.tar.gz
[root@localhost tmp]# cd zlib*
[root@localhost zlib-1.1.4]# ./configure
[root@localhost zlib-1.1.4]# make
[root@localhost zlib-1.1.4]# make install
(2) libpng 설치 (png 포맷을 다루기 위한 라이브러리)
[root@localhost tmp]# tar zxvf libpng-1.2.5.tar.gz
[root@localhost tmp]# cd libpng*
[root@localhost libpng-1.2.5]# cp scripts/makefile.linux makefile
[root@localhost libpng-1.2.5]# make
[root@localhost libpng-1.2.5]# make install
특별한것은 makefile 를 configure 로 만들지 않고 복사한 것외에는 없습니다.
(3) freetype 2 설치 (글자를 그릴 때 쓰는 라이브러리)
[root@localhost tmp]# tar zxvf freetype-2.1.5.tar.gz
[root@localhost tmp]# cd freetype-2.1.5
[root@localhost freetype-2.1.5]# ./configure
[root@localhost freetype-2.1.5]# make
[root@localhost freetype-2.1.5]# make install
(4) libjpeg 설치 (jpg 포맷을 다루는 라이브러리)
[root@localhost tmp]# tar zxvf jpegsrc.v6.b.tar.gz
[root@localhost tmp]# cd jpeg*
[root@localhost jpeg-6b]# ./configure --enable-shared --enable-static
[root@localhost jpeg-6b]# make
[root@localhost jpeg-6b]# make test
[root@localhost jpeg-6b]# mkdir /usr/local/man/man1
[root@localhost jpeg-6b]# make install
위 설치에서 틀별한 것은 중간에 /usr/local/man/man1 이라는 디렉토리를 생성합니다.
이유는 make install 하면 /usr/local/man/man1 디렉토리가 없다고 멘 페이지가 설치가 되지 않는다는 에러가 나기때문입니다.
(5) GD 설치 (그래픽 라이브러리)
[root@localhost tmp]# tar zxvf gd.2.0.15.tar.gz
[root@localhost tmp]# cd gd-2.0.15
[root@localhost gd-2.0.15]# ./configure
[root@localhost gd-2.0.15]# make
[root@localhost gd-2.0.15]# make install
이제 생성된 파일중 라이브러리 파일인 libgd.a 파일은 /usr/local/lib 디렉토리에 복사하고
header 파일들은 /usr/local/include 디렉토리에 복사하면 gd Library의 설치는 끝난다.
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
154 | System/OS | [linux] resolv.con 초기화 되는 문제 | hooni | 2014.04.05 | 4624 |
153 | System/OS | [linux] CentOS 6.5 에서 "Bringing up interface eth0: Determining if ip address 121.78.127.197 is already in use for device eth0..." | hooni | 2014.04.05 | 4851 |
152 | System/OS | [linux] awk 명령어 | hooni | 2014.03.11 | 4957 |
151 | System/OS | [mac] 맥(OSX)에서 NTFS, 윈도우에서 HFS+ 사용하기 | hooni | 2014.03.12 | 5119 |
150 | System/OS | [windows] 윈도우즈 콘솔에서 정품인증 하는 방법 | hooni | 2017.05.24 | 5357 |
149 | System/OS | SVN(Subversion) 설치와 설정 (sasl 인증 적용 포함) | hooni | 2014.09.11 | 5677 |
148 | System/OS | HTTPS와 SSL 인증서 | hooni | 2014.03.11 | 7548 |
147 | System/OS | [linux] man 명령어 뽀개기.. | hooni | 2003.04.23 | 8723 |
146 | System/OS | [linux] 간단한 find 명령어 설명(업데이트 해야 함) | hooni | 2013.04.23 | 9111 |
145 | System/OS | [linux] 초간단 Postfix, Covecot, SSL/TLS (SMTP) | hooni | 2017.12.11 | 9339 |
144 | System/OS | [unix] AIX쉘 초기 파일 (.cshrc) | hooni | 2013.04.23 | 10291 |
143 | System/OS | [linux] 데비안(debian.org) 리눅스 명령어 예제 | hooni | 2006.04.23 | 10424 |