STEP 1.
APM을 설치하기에 앞서 라이브러리나 컴파일러가 있어야 한다.
우선 컴파일러를 설치하기에 앞서 컴파일러가 설치 되어있는지를 확인 한다.
[root@Cacti download]# rpm -qa gcc* cpp* compat-gcc* flex*
compat-gcc-34-g77-3.4.6-4
gcc-objc-4.1.2-42.el5
compat-gcc-34-3.4.6-4
gcc-gfortran-4.1.2-42.el5
gcc-4.1.2-42.el5
gcc-c++-4.1.2-42.el5
cpp-4.1.2-42.el5
compat-gcc-34-c++-3.4.6-4
flex-2.5.4a-41.fc6
gcc-gnat-4.1.2-42.el5
[root@Cacti download]#
만약에 설치가 되어있지 않다면 yum을 이용하여 아래와 같이 설치를 해 준다.
[root@Cacti download]# yum -y install gcc cpp gcc-c++ compat-gcc-32-g77 flex
Setting up Install Process
Parsing package install arguments
Package gcc - 4.1.2-42.el5.i386 is already installed.
Package cpp - 4.1.2-42.el5.i386 is already installed.
Package gcc-c++ - 4.1.2-42.el5.i386 is already installed.
No package compat-gcc-32-g77 available.
Package flex - 2.5.4a-41.fc6.i386 is already installed.
Nothing to do
[root@Cacti download]#
필자의 경우 이미 설치가 되어 있다고 나오고 있다.
STEP 2.
이제 라이브러리를 설치를 하기에 앞서 라이브러리가 설치 되어있는지 확인을 한다.
[root@Cacti download]# rpm -qa libpeg* libpng* freetype* gd-*
libpng-1.2.10-7.1.el5_0.1
freetype-2.2.1-19.el5
[root@Cacti download]#
필자의 경우 libpng 와 freetype만 설치 된 것을 확인 할 수 있다.
devel 패키지가 설치되어 있지 않기 때문에 yum을 이용하여 설치를 할 것이다.
[root@Cacti download]# yum install libjpeg* libpng* freetype* gd-*
Setting up Install Process
Parsing package install arguments
Package libjpeg - 6b-37.i386 is already installed.
Package libpng - 2:1.2.10-7.1.el5_0.1.i386 is already installed.
Package freetype - 2.2.1-19.el5.i386 is already installed.
Package gd - 2.0.33-9.4.el5_1.1.i386 is already installed.
Resolving Dependencies
--> Running transaction check
---> Package libjpeg-devel.i386 0:6b-37 set to be updated
---> Package libpng-devel.i386 2:1.2.10-7.1.el5_0.1 set to be updated
---> Package gd-progs.i386 0:2.0.33-9.4.el5_1.1 set to be updated
---> Package freetype.i386 0:2.2.1-20.el5_2 set to be updated
---> Package freetype-demos.i386 0:2.2.1-20.el5_2 set to be updated
---> Package freetype-devel.i386 0:2.2.1-20.el5_2 set to be updated
---> Package gd-devel.i386 0:2.0.33-9.4.el5_1.1 set to be updated
--> Processing Dependency: libX11-devel for package: gd-devel
--> Processing Dependency: fontconfig-devel for package: gd-devel
--> Processing Dependency: libXpm-devel for package: gd-devel
--> Running transaction check
---> Package libX11-devel.i386 0:1.0.3-9.el5 set to be updated
--> Processing Dependency: xorg-x11-proto-devel >= 7.1-2 for package: libX11-devel
--> Processing Dependency: libXau-devel for package: libX11-devel
--> Processing Dependency: libXdmcp-devel for package: libX11-devel
---> Package libXpm-devel.i386 0:3.5.5-3 set to be updated
---> Package fontconfig-devel.i386 0:2.4.1-7.el5 set to be updated
--> Running transaction check
---> Package xorg-x11-proto-devel.i386 0:7.1-9.el5.centos set to be updated
--> Processing Dependency: mesa-libGL-devel for package: xorg-x11-proto-devel
---> Package libXdmcp-devel.i386 0:1.0.1-2.1 set to be updated
---> Package libXau-devel.i386 0:1.0.1-3.1 set to be updated
--> Running transaction check
---> Package mesa-libGL-devel.i386 0:6.5.1-7.5.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
freetype-demos i386 2.2.1-20.el5_2 updates 154 k
gd-devel i386 2.0.33-9.4.el5_1.1 base 97 k
gd-progs i386 2.0.33-9.4.el5_1.1 base 24 k
Updating:
freetype i386 2.2.1-20.el5_2 updates 313 k
Installing for dependencies:
fontconfig-devel i386 2.4.1-7.el5 base 168 k
freetype-devel i386 2.2.1-20.el5_2 updates 151 k
libX11-devel i386 1.0.3-9.el5 base 666 k
libXau-devel i386 1.0.1-3.1 base 11 k
libXdmcp-devel i386 1.0.1-2.1 base 7.5 k
libXpm-devel i386 3.5.5-3 base 31 k
libjpeg-devel i386 6b-37 base 105 k
libpng-devel i386 2:1.2.10-7.1.el5_0.1 base 182 k
mesa-libGL-devel i386 6.5.1-7.5.el5 base 465 k
xorg-x11-proto-devel i386 7.1-9.el5.centos base 253 k
Transaction Summary
=============================================================================
Install 13 Package(s)
Update 1 Package(s)
Remove 0 Package(s)
Total download size: 2.6 M
Is this ok [y/N]: y
Downloading Packages:
(1/14): gd-devel-2.0.33-9 100% |=========================| 97 kB 00:00
(2/14): freetype-devel-2. 100% |=========================| 151 kB 00:00
(3/14): freetype-demos-2. 100% |=========================| 154 kB 00:00
(4/14): libXau-devel-1.0. 100% |=========================| 11 kB 00:00
(5/14): freetype-2.2.1-20 100% |=========================| 313 kB 00:00
(6/14): gd-progs-2.0.33-9 100% |=========================| 24 kB 00:00
(7/14): libpng-devel-1.2. 100% |=========================| 182 kB 00:00
(8/14): fontconfig-devel- 100% |=========================| 168 kB 00:00
(9/14): libXpm-devel-3.5. 100% |=========================| 31 kB 00:00
(10/14): libX11-devel-1.0 100% |=========================| 666 kB 00:00
(11/14): libXdmcp-devel-1 100% |=========================| 7.5 kB 00:00
(12/14): mesa-libGL-devel 100% |=========================| 465 kB 00:00
(13/14): xorg-x11-proto-d 100% |=========================| 253 kB 00:00
(14/14): libjpeg-devel-6b 100% |=========================| 105 kB 00:00
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
Importing GPG key 0xE8562897 "CentOS-5 Key (CentOS 5 Official Signing Key) <centos-5-key@centos.org>" from http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : freetype ####################### [ 1/15]
Installing: freetype-devel ####################### [ 2/15]
Installing: fontconfig-devel ####################### [ 3/15]
Installing: libXau-devel ####################### [ 4/15]
Installing: libpng-devel ####################### [ 5/15]
Installing: libjpeg-devel ####################### [ 6/15]
Installing: gd-progs ####################### [ 7/15]
Installing: freetype-demos ####################### [ 8/15]
Installing: xorg-x11-proto-devel ####################### [ 9/15]
Installing: libXdmcp-devel ####################### [10/15]
Installing: libX11-devel ####################### [11/15]
Installing: libXpm-devel ####################### [12/15]
Installing: mesa-libGL-devel ####################### [13/15]
Installing: gd-devel ####################### [14/15]
Cleanup : freetype ####################### [15/15]
Installed: freetype-demos.i386 0:2.2.1-20.el5_2 gd-devel.i386 0:2.0.33-9.4.el5_1.1 gd-progs.i386 0:2.0.33-9.4.el5_1.1
Dependency Installed: fontconfig-devel.i386 0:2.4.1-7.el5 freetype-devel.i386 0:2.2.1-20.el5_2 libX11-devel.i386 0:1.0.3-9.el5 libXau-devel.i386 0:1.0.1-3.1 libXdmcp-devel.i386 0:1.0.1-2.1 libXpm-devel.i386 0:3.5.5-3 libjpeg-devel.i386 0:6b-37 libpng-devel.i386 2:1.2.10-7.1.el5_0.1 mesa-libGL-devel.i386 0:6.5.1-7.5.el5 xorg-x11-proto-devel.i386 0:7.1-9.el5.centos
Updated: freetype.i386 0:2.2.1-20.el5_2
Complete!
[root@Cacti download]#
의존성과 관련된 여러 패키지가 자동으로 설치되었으니 신경쓰지 말도록 하자.
솔직히 필자도 폭 넓은 지식을 바탕으로 쓴 것이 아니므로 모른다. ^^
'Cacti > APM(Apache+PHP+MySQL)' 카테고리의 다른 글
MySQL 설치 시 에러 메시지를 띄우며 설치가 안 될 경우. (0) | 2009.06.04 |
---|---|
PHP 설치 (0) | 2009.02.13 |
Apache 설치 (0) | 2009.02.13 |
MySQL 설치 (0) | 2009.02.13 |
APM(Apache+PHP+MySQL) 설치 전에... (0) | 2009.02.13 |