CentOS Archives - ACTIVO

Installing PHP accelerator: APC 3.1.6 on a freshly installed CentOS 5.5 64bit

Posted by | Web Development | No Comments

This is a short guide, more than anything it intended to remind myself how to do this when I build web server environments. I used to simply install the atomic repository for CentOS which will then allow me to run:

yum install php-pecl-apc

Which will then automatically install everything needed including any dependencies etc. However, lately the packages in the atomic repo are getting stale (last I checked, they offered APC version 3.0.19) and today I tried installing apc like that and it gave me a bunch of depresolve issues. I looked around and found out that this method that I am listing here is the easiest and least painful to get things rolling. Additionally, this method gives me the latest APC 3.1.6 which just came out 10 days ago. Here we go:

1. Install Atomic Corp Repo

I still use the Atomic Repo to get all the other PHP packages which are usually compiled nice and offer PHP 5.2 which is what Magento requires at the moment.

wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh

2. Perform Yum Update

yum update

3. Install PHP

I also install php-gd because I know I need it later, but you don’t need to. You may need to review which packages are needed for the platform you are trying to install. For example, Magento requires a bunch more php modules than what will get installed at the end of this guide.

yum install php php-gd

4. Install PECL

This step installs the PECL library which is needed to get and compile PHP’s APC.

yum install php-devel php-pear httpd-devel

5. Use PECL to Retrieve and Install APC

With this command you are triggering the PECL (not yum) to retrieve, compile, and install APC’s latest version. In this case it is 3.1.6 which is the latest stable version of APC. In the process the installer will ask you two questions, just hit enter as in any normal setup these options are not needed.

pecl install apc

(Plus hit ENTER twice)

6. Add the apc.ini Setup File

vi /etc/php.d/apc.ini

7. Add Directives and Minimal Setup

You will need to review these settings and configure it to your specific environment and needs. Notice that I use shm_size=128M which is larger than the default. I think the default is 32M. Notice that in this new version of APC it is important to add the M for MB or G for Gygabytes, otherwise you will see a warning in the apache logs every time you start the web service. This specific number is per apache/php process, so don’t go crazy here. I also set the num_files_hint=1024 because we have lots of files with a typical Magento website. Save and close vi.

extension=apc.so
apc.enabled=1
apc.shm_segments=1
apc.optimization=0
apc.shm_size=128M
apc.ttl=0
apc.user_ttl=7200
apc.num_files_hint=1024
apc.mmap_file_mask=/tmp/XXXXXX
apc.enable_cli=1
apc.cache_by_default=1
apc.include_once_override=1

8. Restart Apache

service httpd restart

You are done! The PHP APC Accelerator should now be properly installed on your server. You can either look through the output of the phpinfo() or try this command from the command line:

php -m

This command spits out the list of modules installed and running with the current PHP setup. ‘apc’ should be listed at the top of this list. Enjoy!

Here is the output from my command line session in case you want to compare:

login as: root
root@96.44.151.143's password:
[root@www ~]# yum update
Loaded plugins: fastestmirror
Determining fastest mirrors
* addons: mirrors.netdna.com
* base: mirrors.easynews.com
* extras: mirror.5ninesolutions.com
* updates: mirrors.kernel.org
addons | 951 B 00:00
addons/primary | 204 B 00:00
base | 2.1 kB 00:00
base/primary_db | 2.1 MB 00:00
extras | 2.1 kB 00:00
extras/primary_db | 246 kB 00:00
updates | 1.9 kB 00:00
updates/primary_db | 1.0 MB 00:00
vz-base | 951 B 00:00
vz-base/primary | 1.7 kB 00:00
vz-base 5/5
vz-updates | 951 B 00:00
vz-updates/primary | 1.0 kB 00:00
vz-updates 3/3
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package e2fsprogs.x86_64 0:1.39-23.el5_5.1 set to be updated
---> Package e2fsprogs-libs.i386 0:1.39-23.el5_5.1 set to be updated
---> Package e2fsprogs-libs.x86_64 0:1.39-23.el5_5.1 set to be updated
---> Package initscripts.x86_64 0:8.45.30-3.el5.centos set to be updated
---> Package krb5-libs.i386 0:1.6.1-36.el5_5.6 set to be updated
---> Package krb5-libs.x86_64 0:1.6.1-36.el5_5.6 set to be updated
---> Package openldap.x86_64 0:2.3.43-12.el5_5.3 set to be updated
---> Package python.x86_64 0:2.4.3-27.el5_5.3 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
Package Arch Version Repository Size
====================================================================================================
Updating:
e2fsprogs x86_64 1.39-23.el5_5.1 updates 995 k
e2fsprogs-libs i386 1.39-23.el5_5.1 updates 118 k
e2fsprogs-libs x86_64 1.39-23.el5_5.1 updates 118 k
initscripts x86_64 8.45.30-3.el5.centos updates 1.6 M
krb5-libs i386 1.6.1-36.el5_5.6 updates 663 k
krb5-libs x86_64 1.6.1-36.el5_5.6 updates 675 k
openldap x86_64 2.3.43-12.el5_5.3 updates 303 k
python x86_64 2.4.3-27.el5_5.3 updates 6.0 M

Transaction Summary
====================================================================================================
Install 0 Package(s)
Upgrade 8 Package(s)

Total download size: 10 M
Is this ok [y/N]: y
Downloading Packages:
(1/8): e2fsprogs-libs-1.39-23.el5_5.1.x86_64.rpm | 118 kB 00:00
(2/8): e2fsprogs-libs-1.39-23.el5_5.1.i386.rpm | 118 kB 00:00
(3/8): openldap-2.3.43-12.el5_5.3.x86_64.rpm | 303 kB 00:00
(4/8): krb5-libs-1.6.1-36.el5_5.6.i386.rpm | 663 kB 00:00
(5/8): krb5-libs-1.6.1-36.el5_5.6.x86_64.rpm | 675 kB 00:00
(6/8): e2fsprogs-1.39-23.el5_5.1.x86_64.rpm | 995 kB 00:00
(7/8): initscripts-8.45.30-3.el5.centos.x86_64.rpm | 1.6 MB 00:00
(8/8): python-2.4.3-27.el5_5.3.x86_64.rpm | 6.0 MB 00:00
—————————————————————————————————-
Total 8.2 MB/s | 10 MB 00:01
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID e8562897
updates/gpgkey | 1.5 kB 00:00
Importing GPG key 0xE8562897 “CentOS-5 Key (CentOS 5 Official Signing Key) ” from /etc/pki/rpm-gpg/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 : e2fsprogs-libs 1/16
Updating : krb5-libs 2/16
Updating : python 3/16
Updating : openldap 4/16
Updating : e2fsprogs-libs 5/16
Updating : e2fsprogs 6/16
Updating : initscripts 7/16
Updating : krb5-libs 8/16
Cleanup : openldap 9/16
Cleanup : krb5-libs 10/16
Cleanup : python 11/16
Cleanup : initscripts 12/16
Cleanup : e2fsprogs-libs 13/16
Cleanup : e2fsprogs-libs 14/16
Cleanup : e2fsprogs 15/16
Cleanup : krb5-libs 16/16

Updated:
e2fsprogs.x86_64 0:1.39-23.el5_5.1 e2fsprogs-libs.i386 0:1.39-23.el5_5.1
e2fsprogs-libs.x86_64 0:1.39-23.el5_5.1 initscripts.x86_64 0:8.45.30-3.el5.centos
krb5-libs.i386 0:1.6.1-36.el5_5.6 krb5-libs.x86_64 0:1.6.1-36.el5_5.6
openldap.x86_64 0:2.3.43-12.el5_5.3 python.x86_64 0:2.4.3-27.el5_5.3

Complete!
[root@www ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 16G 556M 16G 4% /
none 1.3G 4.0K 1.3G 1% /dev
[root@www ~]# wget -q -O – http://www.atomicorp.com/installers/atomic.sh | sh

Atomic Archive installer, version 1.2
Configuring the [atomic] yum archive for this system

Installing the Atomic GPG key: OK
Downloading atomic-release-1.0-12.el5.art.noarch.rpm: OK

The Atomic Rocket Turtle archive has now been installed and configured for your system
The following channels are available:
atomic – [ACTIVATED] – contains the stable tree of ART packages
atomic-testing – [DISABLED] – contains the testing tree of ART packages
atomic-bleeding – [DISABLED] – contains the development tree of ART packages

[root@www ~]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.netdna.com
* atomic: www2.atomicorp.com
* base: mirrors.easynews.com
* extras: mirror.5ninesolutions.com
* updates: mirrors.kernel.org
atomic | 1.9 kB 00:00
atomic/primary_db | 409 kB 00:00
Setting up Update Process
No Packages marked for Update
[root@www ~]# yum install php php-gd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.netdna.com
* atomic: www5.atomicorp.com
* base: mirrors.easynews.com
* extras: mirror.5ninesolutions.com
* updates: mirrors.kernel.org
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package php.i386 0:5.2.14-2.el5.art set to be updated
–> Processing Dependency: php-cli = 5.2.14-2.el5.art for package: php
–> Processing Dependency: php-common = 5.2.14-2.el5.art for package: php
–> Processing Dependency: libbz2.so.1 for package: php
–> Processing Dependency: libgmp.so.3 for package: php
–> Processing Dependency: libxml2.so.2 for package: php
—> Package php.x86_64 0:5.2.14-2.el5.art set to be updated
–> Processing Dependency: libgmp.so.3()(64bit) for package: php
—> Package php-gd.i386 0:5.2.14-2.el5.art set to be updated
–> Processing Dependency: libpng12.so.0(PNG12_0) for package: php-gd
–> Processing Dependency: libXpm.so.4 for package: php-gd
–> Processing Dependency: libjpeg.so.62 for package: php-gd
–> Processing Dependency: libpng12.so.0 for package: php-gd
–> Processing Dependency: libfreetype.so.6 for package: php-gd
–> Processing Dependency: libt1.so.5 for package: php-gd
–> Processing Dependency: libX11.so.6 for package: php-gd
—> Package php-gd.x86_64 0:5.2.14-2.el5.art set to be updated
–> Processing Dependency: libt1.so.5()(64bit) for package: php-gd
–> Processing Dependency: libXpm.so.4()(64bit) for package: php-gd
–> Processing Dependency: libfreetype.so.6()(64bit) for package: php-gd
–> Processing Dependency: libX11.so.6()(64bit) for package: php-gd
–> Running transaction check
—> Package bzip2-libs.i386 0:1.0.3-6.el5_5 set to be updated
—> Package freetype.i386 0:2.2.1-28.el5_5.1 set to be updated
—> Package freetype.x86_64 0:2.2.1-28.el5_5.1 set to be updated
—> Package gmp.i386 0:4.1.4-10.el5 set to be updated
—> Package gmp.x86_64 0:4.1.4-10.el5 set to be updated
—> Package libX11.i386 0:1.0.3-11.el5 set to be updated
–> Processing Dependency: xorg-x11-filesystem >= 0.99.2-3 for package: libX11
–> Processing Dependency: libXau.so.6 for package: libX11
–> Processing Dependency: libXdmcp.so.6 for package: libX11
—> Package libX11.x86_64 0:1.0.3-11.el5 set to be updated
–> Processing Dependency: libXdmcp.so.6()(64bit) for package: libX11
–> Processing Dependency: libXau.so.6()(64bit) for package: libX11
—> Package libXpm.i386 0:3.5.5-3 set to be updated
—> Package libXpm.x86_64 0:3.5.5-3 set to be updated
—> Package libjpeg.i386 0:6b-37 set to be updated
—> Package libpng.i386 2:1.2.10-7.1.el5_5.3 set to be updated
—> Package libxml2.i386 0:2.6.26-2.1.2.8.el5_5.1 set to be updated
—> Package php-cli.x86_64 0:5.2.14-2.el5.art set to be updated
—> Package php-common.x86_64 0:5.2.14-2.el5.art set to be updated
—> Package t1lib.i386 0:5.1.2-2.el5.art set to be updated
–> Processing Dependency: libXaw.so.7 for package: t1lib
–> Processing Dependency: libXt.so.6 for package: t1lib
—> Package t1lib.x86_64 0:5.1.2-2.el5.art set to be updated
–> Processing Dependency: libXaw.so.7()(64bit) for package: t1lib
–> Processing Dependency: libXt.so.6()(64bit) for package: t1lib
–> Running transaction check
—> Package libXau.i386 0:1.0.1-3.1 set to be updated
—> Package libXau.x86_64 0:1.0.1-3.1 set to be updated
—> Package libXaw.i386 0:1.0.2-8.1 set to be updated
–> Processing Dependency: libXext.so.6 for package: libXaw
–> Processing Dependency: libXmu.so.6 for package: libXaw
—> Package libXaw.x86_64 0:1.0.2-8.1 set to be updated
–> Processing Dependency: libXext.so.6()(64bit) for package: libXaw
–> Processing Dependency: libXmu.so.6()(64bit) for package: libXaw
—> Package libXdmcp.i386 0:1.0.1-2.1 set to be updated
—> Package libXdmcp.x86_64 0:1.0.1-2.1 set to be updated
—> Package libXt.i386 0:1.0.2-3.2.el5 set to be updated
–> Processing Dependency: libICE.so.6 for package: libXt
–> Processing Dependency: libSM.so.6 for package: libXt
—> Package libXt.x86_64 0:1.0.2-3.2.el5 set to be updated
–> Processing Dependency: libICE.so.6()(64bit) for package: libXt
–> Processing Dependency: libSM.so.6()(64bit) for package: libXt
—> Package xorg-x11-filesystem.noarch 0:7.1-2.fc6 set to be updated
–> Running transaction check
—> Package libICE.i386 0:1.0.1-2.1 set to be updated
—> Package libICE.x86_64 0:1.0.1-2.1 set to be updated
—> Package libSM.i386 0:1.0.1-3.1 set to be updated
—> Package libSM.x86_64 0:1.0.1-3.1 set to be updated
—> Package libXext.i386 0:1.0.1-2.1 set to be updated
—> Package libXext.x86_64 0:1.0.1-2.1 set to be updated
—> Package libXmu.i386 0:1.0.2-5 set to be updated
—> Package libXmu.x86_64 0:1.0.2-5 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
Package Arch Version Repository Size
====================================================================================================
Installing:
php i386 5.2.14-2.el5.art atomic 1.2 M
php x86_64 5.2.14-2.el5.art atomic 1.3 M
php-gd i386 5.2.14-2.el5.art atomic 121 k
php-gd x86_64 5.2.14-2.el5.art atomic 123 k
Installing for dependencies:
bzip2-libs i386 1.0.3-6.el5_5 updates 37 k
freetype i386 2.2.1-28.el5_5.1 updates 312 k
freetype x86_64 2.2.1-28.el5_5.1 updates 311 k
gmp i386 4.1.4-10.el5 base 664 k
gmp x86_64 4.1.4-10.el5 base 201 k
libICE i386 1.0.1-2.1 base 54 k
libICE x86_64 1.0.1-2.1 base 54 k
libSM i386 1.0.1-3.1 base 27 k
libSM x86_64 1.0.1-3.1 base 28 k
libX11 i386 1.0.3-11.el5 base 796 k
libX11 x86_64 1.0.3-11.el5 base 798 k
libXau i386 1.0.1-3.1 base 18 k
libXau x86_64 1.0.1-3.1 base 18 k
libXaw i386 1.0.2-8.1 base 324 k
libXaw x86_64 1.0.2-8.1 base 329 k
libXdmcp i386 1.0.1-2.1 base 19 k
libXdmcp x86_64 1.0.1-2.1 base 19 k
libXext i386 1.0.1-2.1 base 35 k
libXext x86_64 1.0.1-2.1 base 37 k
libXmu i386 1.0.2-5 base 62 k
libXmu x86_64 1.0.2-5 base 63 k
libXpm i386 3.5.5-3 base 45 k
libXpm x86_64 3.5.5-3 base 44 k
libXt i386 1.0.2-3.2.el5 base 173 k
libXt x86_64 1.0.2-3.2.el5 base 181 k
libjpeg i386 6b-37 base 139 k
libpng i386 2:1.2.10-7.1.el5_5.3 updates 241 k
libxml2 i386 2.6.26-2.1.2.8.el5_5.1 updates 795 k
php-cli x86_64 5.2.14-2.el5.art atomic 2.4 M
php-common x86_64 5.2.14-2.el5.art atomic 281 k
t1lib i386 5.1.2-2.el5.art atomic 194 k
t1lib x86_64 5.1.2-2.el5.art atomic 208 k
xorg-x11-filesystem noarch 7.1-2.fc6 base 5.4 k

Transaction Summary
====================================================================================================
Install 37 Package(s)
Upgrade 0 Package(s)

Total download size: 12 M
Is this ok [y/N]: y
Downloading Packages:
(1/37): xorg-x11-filesystem-7.1-2.fc6.noarch.rpm | 5.4 kB 00:00
(2/37): libXau-1.0.1-3.1.i386.rpm | 18 kB 00:00
(3/37): libXau-1.0.1-3.1.x86_64.rpm | 18 kB 00:00
(4/37): libXdmcp-1.0.1-2.1.i386.rpm | 19 kB 00:00
(5/37): libXdmcp-1.0.1-2.1.x86_64.rpm | 19 kB 00:00
(6/37): libSM-1.0.1-3.1.i386.rpm | 27 kB 00:00
(7/37): libSM-1.0.1-3.1.x86_64.rpm | 28 kB 00:00
(8/37): libXext-1.0.1-2.1.i386.rpm | 35 kB 00:00
(9/37): libXext-1.0.1-2.1.x86_64.rpm | 37 kB 00:00
(10/37): bzip2-libs-1.0.3-6.el5_5.i386.rpm | 37 kB 00:00
(11/37): libXpm-3.5.5-3.x86_64.rpm | 44 kB 00:00
(12/37): libXpm-3.5.5-3.i386.rpm | 45 kB 00:00
(13/37): libICE-1.0.1-2.1.i386.rpm | 54 kB 00:00
(14/37): libICE-1.0.1-2.1.x86_64.rpm | 54 kB 00:00
(15/37): libXmu-1.0.2-5.i386.rpm | 62 kB 00:00
(16/37): libXmu-1.0.2-5.x86_64.rpm | 63 kB 00:00
(17/37): php-gd-5.2.14-2.el5.art.i386.rpm | 121 kB 00:00
(18/37): php-gd-5.2.14-2.el5.art.x86_64.rpm | 123 kB 00:00
(19/37): libjpeg-6b-37.i386.rpm | 139 kB 00:00
(20/37): libXt-1.0.2-3.2.el5.i386.rpm | 173 kB 00:00
(21/37): libXt-1.0.2-3.2.el5.x86_64.rpm | 181 kB 00:00
(22/37): t1lib-5.1.2-2.el5.art.i386.rpm | 194 kB 00:00
(23/37): gmp-4.1.4-10.el5.x86_64.rpm | 201 kB 00:00
(24/37): t1lib-5.1.2-2.el5.art.x86_64.rpm | 208 kB 00:00
(25/37): libpng-1.2.10-7.1.el5_5.3.i386.rpm | 241 kB 00:00
(26/37): php-common-5.2.14-2.el5.art.x86_64.rpm | 281 kB 00:00
(27/37): freetype-2.2.1-28.el5_5.1.x86_64.rpm | 311 kB 00:00
(28/37): freetype-2.2.1-28.el5_5.1.i386.rpm | 312 kB 00:00
(29/37): libXaw-1.0.2-8.1.i386.rpm | 324 kB 00:00
(30/37): libXaw-1.0.2-8.1.x86_64.rpm | 329 kB 00:00
(31/37): gmp-4.1.4-10.el5.i386.rpm | 664 kB 00:00
(32/37): libxml2-2.6.26-2.1.2.8.el5_5.1.i386.rpm | 795 kB 00:00
(33/37): libX11-1.0.3-11.el5.i386.rpm | 796 kB 00:00
(34/37): libX11-1.0.3-11.el5.x86_64.rpm | 798 kB 00:00
(35/37): php-5.2.14-2.el5.art.i386.rpm | 1.2 MB 00:00
(36/37): php-5.2.14-2.el5.art.x86_64.rpm | 1.3 MB 00:00
(37/37): php-cli-5.2.14-2.el5.art.x86_64.rpm | 2.4 MB 00:00
—————————————————————————————————-
Total 1.3 MB/s | 12 MB 00:08
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : php-common 1/37
Installing : libICE 2/37
Installing : libXau 3/37
Installing : gmp 4/37
Installing : php-cli 5/37
Installing : libXau 6/37
Installing : libICE 7/37
Installing : libSM 8/37
Installing : freetype 9/37
Installing : libXdmcp 10/37
Installing : libSM 11/37
Installing : libXdmcp 12/37
Installing : gmp 13/37
Installing : libjpeg 14/37
Installing : libxml2 15/37
Installing : bzip2-libs 16/37
Installing : freetype 17/37
Installing : libpng 18/37
Installing : xorg-x11-filesystem 19/37
Installing : libX11 20/37
Installing : libXt 21/37
Installing : libXpm 22/37
Installing : libXext 23/37
Installing : libXmu 24/37
Installing : libXaw 25/37
Installing : t1lib 26/37
Installing : php-gd 27/37
Installing : php 28/37
Installing : libX11 29/37
Installing : libXt 30/37
Installing : libXpm 31/37
Installing : libXext 32/37
Installing : libXmu 33/37
Installing : libXaw 34/37
Installing : t1lib 35/37
Installing : php-gd 36/37
Installing : php 37/37

Installed:
php.i386 0:5.2.14-2.el5.art php.x86_64 0:5.2.14-2.el5.art php-gd.i386 0:5.2.14-2.el5.art
php-gd.x86_64 0:5.2.14-2.el5.art

Dependency Installed:
bzip2-libs.i386 0:1.0.3-6.el5_5 freetype.i386 0:2.2.1-28.el5_5.1
freetype.x86_64 0:2.2.1-28.el5_5.1 gmp.i386 0:4.1.4-10.el5
gmp.x86_64 0:4.1.4-10.el5 libICE.i386 0:1.0.1-2.1
libICE.x86_64 0:1.0.1-2.1 libSM.i386 0:1.0.1-3.1
libSM.x86_64 0:1.0.1-3.1 libX11.i386 0:1.0.3-11.el5
libX11.x86_64 0:1.0.3-11.el5 libXau.i386 0:1.0.1-3.1
libXau.x86_64 0:1.0.1-3.1 libXaw.i386 0:1.0.2-8.1
libXaw.x86_64 0:1.0.2-8.1 libXdmcp.i386 0:1.0.1-2.1
libXdmcp.x86_64 0:1.0.1-2.1 libXext.i386 0:1.0.1-2.1
libXext.x86_64 0:1.0.1-2.1 libXmu.i386 0:1.0.2-5
libXmu.x86_64 0:1.0.2-5 libXpm.i386 0:3.5.5-3
libXpm.x86_64 0:3.5.5-3 libXt.i386 0:1.0.2-3.2.el5
libXt.x86_64 0:1.0.2-3.2.el5 libjpeg.i386 0:6b-37
libpng.i386 2:1.2.10-7.1.el5_5.3 libxml2.i386 0:2.6.26-2.1.2.8.el5_5.1
php-cli.x86_64 0:5.2.14-2.el5.art php-common.x86_64 0:5.2.14-2.el5.art
t1lib.i386 0:5.1.2-2.el5.art t1lib.x86_64 0:5.1.2-2.el5.art
xorg-x11-filesystem.noarch 0:7.1-2.fc6

Complete!
[root@www ~]# yum install php-devel php-pear httpd-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.netdna.com
* atomic: www5.atomicorp.com
* base: mirrors.easynews.com
* extras: mirror.5ninesolutions.com
* updates: mirrors.kernel.org
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package httpd-devel.i386 0:2.2.3-43.el5.centos.3 set to be updated
–> Processing Dependency: pkgconfig for package: httpd-devel
–> Processing Dependency: apr-util-devel for package: httpd-devel
–> Processing Dependency: apr-devel for package: httpd-devel
—> Package httpd-devel.x86_64 0:2.2.3-43.el5.centos.3 set to be updated
—> Package php-devel.i386 0:5.2.14-2.el5.art set to be updated
–> Processing Dependency: autoconf for package: php-devel
–> Processing Dependency: automake for package: php-devel
—> Package php-devel.x86_64 0:5.2.14-2.el5.art set to be updated
—> Package php-pear.noarch 1:1.7.2-2.el5.art set to be updated
–> Running transaction check
—> Package apr-devel.x86_64 0:1.2.7-11.el5_5.3 set to be updated
–> Processing Dependency: gcc = 4.1.2 for package: apr-devel
—> Package apr-util-devel.x86_64 0:1.2.7-11.el5_5.1 set to be updated
–> Processing Dependency: openldap-devel for package: apr-util-devel
–> Processing Dependency: db4-devel for package: apr-util-devel
–> Processing Dependency: expat-devel for package: apr-util-devel
—> Package autoconf.noarch 0:2.59-12 set to be updated
–> Processing Dependency: imake for package: autoconf
—> Package automake.noarch 0:1.9.6-2.3.el5 set to be updated
—> Package pkgconfig.x86_64 1:0.21-2.el5 set to be updated
–> Running transaction check
—> Package db4-devel.x86_64 0:4.3.29-10.el5_5.2 set to be updated
—> Package expat-devel.x86_64 0:1.95.8-8.3.el5_5.3 set to be updated
—> Package gcc.x86_64 0:4.1.2-48.el5 set to be updated
–> Processing Dependency: cpp = 4.1.2-48.el5 for package: gcc
–> Processing Dependency: libgomp >= 4.1.2-48.el5 for package: gcc
–> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
—> Package imake.x86_64 0:1.0.2-3 set to be updated
—> Package openldap-devel.x86_64 0:2.3.43-12.el5_5.3 set to be updated
–> Processing Dependency: cyrus-sasl-devel >= 2.1 for package: openldap-devel
–> Running transaction check
—> Package cpp.x86_64 0:4.1.2-48.el5 set to be updated
—> Package cyrus-sasl-devel.x86_64 0:2.1.22-5.el5_4.3 set to be updated
—> Package glibc-devel.x86_64 0:2.5-49.el5_5.7 set to be updated
–> Processing Dependency: glibc-headers = 2.5-49.el5_5.7 for package: glibc-devel
–> Processing Dependency: glibc-headers for package: glibc-devel
—> Package libgomp.x86_64 0:4.4.0-6.el5 set to be updated
–> Running transaction check
—> Package glibc-headers.x86_64 0:2.5-49.el5_5.7 set to be updated
–> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers
–> Processing Dependency: kernel-headers for package: glibc-headers
–> Running transaction check
—> Package kernel-headers.x86_64 0:2.6.18-194.26.1.el5 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================
Installing:
httpd-devel i386 2.2.3-43.el5.centos.3 updates 149 k
httpd-devel x86_64 2.2.3-43.el5.centos.3 updates 149 k
php-devel i386 5.2.14-2.el5.art atomic 581 k
php-devel x86_64 5.2.14-2.el5.art atomic 581 k
php-pear noarch 1:1.7.2-2.el5.art atomic 420 k
Installing for dependencies:
apr-devel x86_64 1.2.7-11.el5_5.3 updates 237 k
apr-util-devel x86_64 1.2.7-11.el5_5.1 updates 53 k
autoconf noarch 2.59-12 base 647 k
automake noarch 1.9.6-2.3.el5 base 476 k
cpp x86_64 4.1.2-48.el5 base 2.9 M
cyrus-sasl-devel x86_64 2.1.22-5.el5_4.3 base 1.4 M
db4-devel x86_64 4.3.29-10.el5_5.2 updates 2.0 M
expat-devel x86_64 1.95.8-8.3.el5_5.3 updates 129 k
gcc x86_64 4.1.2-48.el5 base 5.3 M
glibc-devel x86_64 2.5-49.el5_5.7 updates 2.4 M
glibc-headers x86_64 2.5-49.el5_5.7 updates 593 k
imake x86_64 1.0.2-3 base 319 k
kernel-headers x86_64 2.6.18-194.26.1.el5 updates 1.1 M
libgomp x86_64 4.4.0-6.el5 base 68 k
openldap-devel x86_64 2.3.43-12.el5_5.3 updates 1.6 M
pkgconfig x86_64 1:0.21-2.el5 base 61 k

Transaction Summary
==============================================================================================================================================
Install 21 Package(s)
Upgrade 0 Package(s)

Total download size: 21 M
Is this ok [y/N]: y
Downloading Packages:
(1/21): apr-util-devel-1.2.7-11.el5_5.1.x86_64.rpm | 53 kB 00:00
(2/21): pkgconfig-0.21-2.el5.x86_64.rpm | 61 kB 00:00
(3/21): libgomp-4.4.0-6.el5.x86_64.rpm | 68 kB 00:00
(4/21): expat-devel-1.95.8-8.3.el5_5.3.x86_64.rpm | 129 kB 00:00
(5/21): httpd-devel-2.2.3-43.el5.centos.3.x86_64.rpm | 149 kB 00:00
(6/21): httpd-devel-2.2.3-43.el5.centos.3.i386.rpm | 149 kB 00:00
(7/21): apr-devel-1.2.7-11.el5_5.3.x86_64.rpm | 237 kB 00:00
(8/21): imake-1.0.2-3.x86_64.rpm | 319 kB 00:00
(9/21): php-pear-1.7.2-2.el5.art.noarch.rpm | 420 kB 00:00
(10/21): automake-1.9.6-2.3.el5.noarch.rpm | 476 kB 00:00
(11/21): php-devel-5.2.14-2.el5.art.i386.rpm | 581 kB 00:00
(12/21): php-devel-5.2.14-2.el5.art.x86_64.rpm | 581 kB 00:00
(13/21): glibc-headers-2.5-49.el5_5.7.x86_64.rpm | 593 kB 00:00
(14/21): autoconf-2.59-12.noarch.rpm | 647 kB 00:00
(15/21): kernel-headers-2.6.18-194.26.1.el5.x86_64.rpm | 1.1 MB 00:00
(16/21): cyrus-sasl-devel-2.1.22-5.el5_4.3.x86_64.rpm | 1.4 MB 00:00
(17/21): openldap-devel-2.3.43-12.el5_5.3.x86_64.rpm | 1.6 MB 00:00
(18/21): db4-devel-4.3.29-10.el5_5.2.x86_64.rpm | 2.0 MB 00:00
(19/21): glibc-devel-2.5-49.el5_5.7.x86_64.rpm | 2.4 MB 00:00
(20/21): cpp-4.1.2-48.el5.x86_64.rpm | 2.9 MB 00:00
(21/21): gcc-4.1.2-48.el5.x86_64.rpm | 5.3 MB 00:00
———————————————————————————————————————————————-
Total 2.8 MB/s | 21 MB 00:07
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : pkgconfig 1/21
Installing : imake 2/21
Installing : libgomp 3/21
Installing : cyrus-sasl-devel 4/21
Installing : cpp 5/21
Installing : autoconf 6/21
Installing : automake 7/21
Installing : openldap-devel 8/21
Installing : expat-devel 9/21
Installing : db4-devel 10/21
Installing : kernel-headers 11/21
Installing : glibc-headers 12/21
Installing : glibc-devel 13/21
Installing : php-devel 14/21
Installing : php-devel 15/21
Installing : php-pear 16/21
Installing : gcc 17/21
Installing : apr-devel 18/21
Installing : apr-util-devel 19/21
Installing : httpd-devel 20/21
Installing : httpd-devel 21/21

Installed:
httpd-devel.i386 0:2.2.3-43.el5.centos.3 httpd-devel.x86_64 0:2.2.3-43.el5.centos.3 php-devel.i386 0:5.2.14-2.el5.art
php-devel.x86_64 0:5.2.14-2.el5.art php-pear.noarch 1:1.7.2-2.el5.art

Dependency Installed:
apr-devel.x86_64 0:1.2.7-11.el5_5.3 apr-util-devel.x86_64 0:1.2.7-11.el5_5.1 autoconf.noarch 0:2.59-12
automake.noarch 0:1.9.6-2.3.el5 cpp.x86_64 0:4.1.2-48.el5 cyrus-sasl-devel.x86_64 0:2.1.22-5.el5_4.3
db4-devel.x86_64 0:4.3.29-10.el5_5.2 expat-devel.x86_64 0:1.95.8-8.3.el5_5.3 gcc.x86_64 0:4.1.2-48.el5
glibc-devel.x86_64 0:2.5-49.el5_5.7 glibc-headers.x86_64 0:2.5-49.el5_5.7 imake.x86_64 0:1.0.2-3
kernel-headers.x86_64 0:2.6.18-194.26.1.el5 libgomp.x86_64 0:4.4.0-6.el5 openldap-devel.x86_64 0:2.3.43-12.el5_5.3
pkgconfig.x86_64 1:0.21-2.el5

Complete!
[root@www ~]# pecl install apc
WARNING: channel “pecl.php.net” has updated its protocols, use “channel-update pecl.php.net” to update
downloading APC-3.1.6.tgz …
Starting to download APC-3.1.6.tgz (148,835 bytes)
…………………done: 148,835 bytes
49 source files, building
running: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
1. Enable per request file info about files used from the APC cache : no

1-1, ‘all’, ‘abort’, or Enter to continue:
1. Enable spin locks (EXPERIMENTAL) : no

1-1, ‘all’, ‘abort’, or Enter to continue:
building in /var/tmp/pear-build-root/APC-3.1.6
running: /var/tmp/APC/configure –enable-apc-filehits=no –enable-apc-spinlocks=no
checking for egrep… grep -E
checking for a sed that does not truncate output… /bin/sed
checking for cc… cc
checking for C compiler default output file name… a.out
checking whether the C compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether cc accepts -g… yes
checking for cc option to accept ANSI C… none needed
checking how to run the C preprocessor… cc -E
checking for icc… no
checking for suncc… no
checking whether cc understands -c and -o together… yes
checking for system library directory… lib
checking if compiler supports -R… no
checking if compiler supports -Wl,-rpath,… yes
checking build system type… x86_64-redhat-linux-gnu
checking host system type… x86_64-redhat-linux-gnu
checking target system type… x86_64-redhat-linux-gnu
checking for PHP prefix… /usr
checking for PHP includes… -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory… /usr/lib64/php/modules
checking for PHP installed headers prefix… /usr/include/php
checking if debug is enabled… no
checking if zts is enabled… no
checking for re2c… no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk… gawk
checking whether to enable APC support… yes, shared
checking whether we should enable cache request file info… no
checking whether we should use mmap… yes
checking whether we should use semaphore locking instead of fcntl… no
checking whether we should use pthread mutex locking… yes
pthread mutex’s are supported!
checking whether we should use spin locks… no
checking whether we should enable memory protection… no
checking for zend_set_lookup_function_hook… no
checking for sigaction… yes
checking for union semun… no
checking whether we should enable valgrind support… checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
yes
checking valgrind/memcheck.h usability… no
checking valgrind/memcheck.h presence… no
checking for valgrind/memcheck.h… no
checking for shm_open in -lrt… yes
checking for ld used by cc… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for /usr/bin/ld option to reload object files… -r
checking for BSD-compatible nm… /usr/bin/nm -B
checking whether ln -s works… yes
checking how to recognise dependent libraries… pass_all
checking dlfcn.h usability… yes
checking dlfcn.h presence… yes
checking for dlfcn.h… yes
checking for g77… no
checking for f77… no
checking for xlf… no
checking for frt… no
checking for pgf77… no
checking for fort77… no
checking for fl32… no
checking for af77… no
checking for f90… no
checking for xlf90… no
checking for pgf90… no
checking for epcf90… no
checking for f95… no
checking for fort… no
checking for xlf95… no
checking for ifc… no
checking for efc… no
checking for pgf95… no
checking for lf95… no
checking for gfortran… no
checking whether we are using the GNU Fortran 77 compiler… no
checking whether accepts -g… no
checking the maximum length of command line arguments… 32768
checking command to parse /usr/bin/nm -B output from cc object… ok
checking for objdir… .libs
checking for ar… ar
checking for ranlib… ranlib
checking for strip… strip
checking if cc supports -fno-rtti -fno-exceptions… no
checking for cc option to produce PIC… -fPIC
checking if cc PIC flag -fPIC works… yes
checking if cc static flag -static works… yes
checking if cc supports -c -o file.o… yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries… yes
checking whether -lc should be explicitly linked in… no
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… no
configure: creating libtool
appending configuration tag “CXX” to libtool
appending configuration tag “F77″ to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc.c -o apc.lo
mkdir .libs
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc.c -fPIC -DPIC -o .libs/apc.o
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/php_apc.c -o php_apc.lo
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/php_apc.c -fPIC -DPIC -o .libs/php_apc.o
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_cache.c -o apc_cache.lo
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_cache.c -fPIC -DPIC -o .libs/apc_cache.o
/var/tmp/APC/apc_cache.c: In function ‘_apc_cache_insert’:
/var/tmp/APC/apc_cache.c:421: warning: passing argument 1 of ‘zend_inline_hash_func’ discards qualifiers from pointer target type
/var/tmp/APC/apc_cache.c: In function ‘apc_cache_user_insert’:
/var/tmp/APC/apc_cache.c:500: warning: passing argument 1 of ‘zend_inline_hash_func’ discards qualifiers from pointer target type
/var/tmp/APC/apc_cache.c: In function ‘apc_cache_find_slot’:
/var/tmp/APC/apc_cache.c:600: warning: passing argument 1 of ‘zend_inline_hash_func’ discards qualifiers from pointer target type
/var/tmp/APC/apc_cache.c: In function ‘apc_cache_delete’:
/var/tmp/APC/apc_cache.c:801: warning: passing argument 1 of ‘zend_inline_hash_func’ discards qualifiers from pointer target type
/var/tmp/APC/apc_cache.c: In function ‘apc_cache_is_last_key’:
/var/tmp/APC/apc_cache.c:1255: warning: passing argument 1 of ‘zend_inline_hash_func’ discards qualifiers from pointer target type
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_compile.c -o apc_compile.lo
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_compile.c -fPIC -DPIC -o .libs/apc_compile.o
/var/tmp/APC/apc_compile.c: In function ‘apc_file_halt_offset’:
/var/tmp/APC/apc_compile.c:1810: warning: passing argument 5 of ‘zend_mangle_property_name’ discards qualifiers from pointer target type
/var/tmp/APC/apc_compile.c: In function ‘apc_do_halt_compiler_register’:
/var/tmp/APC/apc_compile.c:1832: warning: passing argument 5 of ‘zend_mangle_property_name’ discards qualifiers from pointer target type
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_debug.c -o apc_debug.lo
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_debug.c -fPIC -DPIC -o .libs/apc_debug.o
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_fcntl.c -o apc_fcntl.lo
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_fcntl.c -fPIC -DPIC -o .libs/apc_fcntl.o
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_main.c -o apc_main.lo
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_main.c -fPIC -DPIC -o .libs/apc_main.o
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_mmap.c -o apc_mmap.lo
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_mmap.c -fPIC -DPIC -o .libs/apc_mmap.o
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_sem.c -o apc_sem.lo
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_sem.c -fPIC -DPIC -o .libs/apc_sem.o
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_shm.c -o apc_shm.lo
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_shm.c -fPIC -DPIC -o .libs/apc_shm.o
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_pthreadmutex.c -o apc_pthreadmutex.lo
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_pthreadmutex.c -fPIC -DPIC -o .libs/apc_pthreadmutex.o
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_spin.c -o apc_spin.lo
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_spin.c -fPIC -DPIC -o .libs/apc_spin.o
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/pgsql_s_lock.c -o pgsql_s_lock.lo
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/pgsql_s_lock.c -fPIC -DPIC -o .libs/pgsql_s_lock.o
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_sma.c -o apc_sma.lo
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_sma.c -fPIC -DPIC -o .libs/apc_sma.o
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_stack.c -o apc_stack.lo
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_stack.c -fPIC -DPIC -o .libs/apc_stack.o
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_zend.c -o apc_zend.lo
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_zend.c -fPIC -DPIC -o .libs/apc_zend.o
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_rfc1867.c -o apc_rfc1867.lo
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_rfc1867.c -fPIC -DPIC -o .libs/apc_rfc1867.o
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_signal.c -o apc_signal.lo
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_signal.c -fPIC -DPIC -o .libs/apc_signal.o
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_pool.c -o apc_pool.lo
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_pool.c -fPIC -DPIC -o .libs/apc_pool.o
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_iterator.c -o apc_iterator.lo
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_iterator.c -fPIC -DPIC -o .libs/apc_iterator.o
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_bin.c -o apc_bin.lo
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_bin.c -fPIC -DPIC -o .libs/apc_bin.o
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=compile cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_string.c -o apc_string.lo
cc -I. -I/var/tmp/APC -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /var/tmp/APC/apc_string.c -fPIC -DPIC -o .libs/apc_string.o
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=link cc -DPHP_ATOM_INC -I/var/tmp/pear-build-root/APC-3.1.6/include -I/var/tmp/pear-build-root/APC-3.1.6/main -I/var/tmp/APC -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -o apc.la -export-dynamic -avoid-version -prefer-pic -module -rpath /var/tmp/pear-build-root/APC-3.1.6/modules apc.lo php_apc.lo apc_cache.lo apc_compile.lo apc_debug.lo apc_fcntl.lo apc_main.lo apc_mmap.lo apc_sem.lo apc_shm.lo apc_pthreadmutex.lo apc_spin.lo pgsql_s_lock.lo apc_sma.lo apc_stack.lo apc_zend.lo apc_rfc1867.lo apc_signal.lo apc_pool.lo apc_iterator.lo apc_bin.lo apc_string.lo -lrt
cc -shared .libs/apc.o .libs/php_apc.o .libs/apc_cache.o .libs/apc_compile.o .libs/apc_debug.o .libs/apc_fcntl.o .libs/apc_main.o .libs/apc_mmap.o .libs/apc_sem.o .libs/apc_shm.o .libs/apc_pthreadmutex.o .libs/apc_spin.o .libs/pgsql_s_lock.o .libs/apc_sma.o .libs/apc_stack.o .libs/apc_zend.o .libs/apc_rfc1867.o .libs/apc_signal.o .libs/apc_pool.o .libs/apc_iterator.o .libs/apc_bin.o .libs/apc_string.o -lrt -Wl,-soname -Wl,apc.so -o .libs/apc.so
creating apc.la
(cd .libs && rm -f apc.la && ln -s ../apc.la apc.la)
/bin/sh /var/tmp/pear-build-root/APC-3.1.6/libtool –mode=install cp ./apc.la /var/tmp/pear-build-root/APC-3.1.6/modules
cp ./.libs/apc.so /var/tmp/pear-build-root/APC-3.1.6/modules/apc.so
cp ./.libs/apc.lai /var/tmp/pear-build-root/APC-3.1.6/modules/apc.la
PATH=”$PATH:/sbin” ldconfig -n /var/tmp/pear-build-root/APC-3.1.6/modules
———————————————————————-
Libraries have been installed in:
/var/tmp/pear-build-root/APC-3.1.6/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the -LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the
LD_LIBRARY_PATH’ environment variable
during execution
- add LIBDIR to the LD_RUN_PATH' environment variable
during linking
- use the
-Wl,–rpath -Wl,LIBDIR’ linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf’

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
———————————————————————-

Build complete.
Don’t forget to run ‘make test’.

running: make INSTALL_ROOT=”/var/tmp/pear-build-root/install-APC-3.1.6″ install
Installing shared extensions: /var/tmp/pear-build-root/install-APC-3.1.6/usr/lib64/php/modules/
running: find “/var/tmp/pear-build-root/install-APC-3.1.6″ | xargs ls -dils
2401371 4 drwxr-xr-x 3 root root 4096 Dec 10 01:45 /var/tmp/pear-build-root/install-APC-3.1.6
2401434 4 drwxr-xr-x 3 root root 4096 Dec 10 01:45 /var/tmp/pear-build-root/install-APC-3.1.6/usr
2401435 4 drwxr-xr-x 3 root root 4096 Dec 10 01:45 /var/tmp/pear-build-root/install-APC-3.1.6/usr/lib64
2401436 4 drwxr-xr-x 3 root root 4096 Dec 10 01:45 /var/tmp/pear-build-root/install-APC-3.1.6/usr/lib64/php
2401437 4 drwxr-xr-x 2 root root 4096 Dec 10 01:45 /var/tmp/pear-build-root/install-APC-3.1.6/usr/lib64/php/modules
2401433 620 -rwxr-xr-x 1 root root 627525 Dec 10 01:45 /var/tmp/pear-build-root/install-APC-3.1.6/usr/lib64/php/modules/apc.so

Build process completed successfully
Installing ‘/usr/lib64/php/modules/apc.so’
install ok: channel://pecl.php.net/APC-3.1.6
configuration option “php_ini” is not set to php.ini location
You should add “extension=apc.so” to php.ini
[root@www ~]# vi /etc/php.d/apc.ini
[root@www ~]# service httpd restart
Stopping httpd: [ OK ] Starting httpd: [ OK ] [root@www ~]# php -m
PHP Warning: PHP Startup: apc.shm_size now uses M/G suffixes, please update your ini files in Unknown on line 0
[PHP Modules] apc
bz2
calendar
ctype
curl
date
dbase
exif
filter
ftp
gd
gettext
gmp
hash
iconv
json
libxml
openssl
pcntl
pcre
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
tokenizer
xml
zip
zlib

[Zend Modules] [root@www ~]#