您的位置:首页 > 运维架构 > Linux

Phabricator实践(1):安装全过程记录(Centos5)

2013-04-11 23:35 381 查看
参照官方安装文档:http://www.phabricator.com/docs/phabricator/article/Installation_Guide.html

1.安装mysql

yum install mysql mysql-devel mysql-server
chkconfig mysqld on
service mysqld start


2.安装php

yum install php53 php53-devel php53-mysql


3.安装Apache

yum install openssl-devel (如果需要SSL,则需要安装)
cd /usr/local/src/
wget http://mirror.bjtu.edu.cn/apache//httpd/httpd-2.2.24.tar.gz tar -zxvf httpd-2.2.24.tar.gz
cd httpd-2.2.24
./configure --enable-mods-shared="all ssl"
make
make install


4.安装phabricator

mkdir /usr/local/phabricator
cd /usr/local/phabricator
wget http://www.phabricator.com/rsrc/install/install_rhel-derivs.sh chmod +x install_rhel-derivs.sh
./install_rhel-derivs.sh


给出如下提示:
** WARNING **
A major version less than 6 was detected. Because of this,
several needed dependencies are not available via default repos.
Specifically, RHEL 5 does not have a PEAR package for php53-*.
We will attempt to install it manually, for APC. Please be careful.
Press RETURN to continue, or ^C to cancel. 【回车】

Phabricator will be installed to: /usr/local/src.
Press RETURN to continue, or ^C to cancel. 【回车】

Testing sudo/root...
It doesn't look like you have the EPEL repo enabled. We are to add it
for you, so that we can install git.
Retrieving http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm error: skipping http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm - transfer failed - Unknown or unexpected error
warning: u 0x684d120 ctrl 0x684e530 nrefs != 0 (download.fedoraproject.org http) 【这里报错了,下载epel源失败,需要终止操作,手动安装EPEL源】
Dropping to yum to install dependencies...
Running: yum install httpd git php53 php53-cli php53-mysql php53-process php53-devel php53-gd gcc wget make pcre-devel mysql-server
Yum will prompt you with [Y/n] to continue installing.
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile..

...............省略一堆日志................

#############################################################################################
## 发现无法安装epel源,于是取消安装,手动安装源。如果epel正常下载并安装,则不需要这样操作。
## $ rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm ## $ ll /etc/yum.repos.d
## -rw-r--r-- 1 root root 1926 Feb 25 2012 CentOS-Base.repo
## -rw-r--r-- 1 root root 631 Feb 25 2012 CentOS-Debuginfo.repo
## -rw-r--r-- 1 root root 626 Feb 25 2012 CentOS-Media.repo
## -rw-r--r-- 1 root root 6118 Feb 25 2012 CentOS-Vault.repo
## -rw-r--r-- 1 root root 954 Aug 12 2010 epel.repo
## -rw-r--r-- 1 root root 1054 Aug 12 2010 epel-testing.repo
## 重新运行./install_rhel-derivs.sh
#############################################################################################
./install_rhel-derivs.sh
PHABRICATOR RED HAT DERIVATIVE INSTALLATION SCRIPT
This script will install Phabricator and all of its core dependencies.
Run it from the directory you want to install into.

** WARNING **
A major version less than 6 was detected. Because of this,
several needed dependencies are not available via default repos.
Specifically, RHEL 5 does not have a PEAR package for php53-*.
We will attempt to install it manually, for APC. Please be careful.
Press RETURN to continue, or ^C to cancel. 【回车】

Phabricator will be installed to: /usr/local/phabricator.
Press RETURN to continue, or ^C to cancel. 【回车】

Testing sudo/root...
* epel: mirrors.ustc.edu.cn
epel Extra Packages for Enterprise Linux 5 - x86_64 7,278 【这次epel源安装正常了】
Dropping to yum to install dependencies...
Running: yum install httpd git php53 php53-cli php53-mysql php53-process php53-devel php53-gd gcc wget make pcre-devel mysql-server
Yum will prompt you with [Y/n] to continue installing.
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* epel: mirrors.ustc.edu.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
Setting up Install Process
Package php53-5.3.3-13.el5_8.x86_64 already installed and latest version
Package php53-cli-5.3.3-13.el5_8.x86_64 already installed and latest version
Package php53-mysql-5.3.3-13.el5_8.x86_64 already installed and latest version
Package php53-devel-5.3.3-13.el5_8.x86_64 already installed and latest version
Package 1:make-3.81-3.el5.x86_64 already installed and latest version
Package mysql-server-5.0.95-5.el5_9.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
--> Processing Dependency: gcc = 4.1.2-52.el5 for package: gcc-gfortran
--> Processing Dependency: gcc = 4.1.2-52.el5 for package: gcc-c++
---> Package gcc.x86_64 0:4.1.2-54.el5 set to be updated
--> Processing Dependency: cpp = 4.1.2-54.el5 for package: gcc
--> Processing Dependency: libgcc >= 4.1.2-54.el5 for package: gcc
---> Package git.x86_64 0:1.7.4.1-1.el5 set to be updated
--> Processing Dependency: perl-Git = 1.7.4.1-1.el5 for package: git
--> Processing Dependency: perl(Git) for package: git
--> Processing Dependency: perl(Error) for package: git
---> Package httpd.x86_64 0:2.2.3-76.el5.centos set to be updated
---> Package pcre-devel.i386 0:6.6-6.el5_6.1 set to be updated
--> Processing Dependency: libpcreposix.so.0 for package: pcre-devel
--> Processing Dependency: libpcre.so.0 for package: pcre-devel
--> Processing Dependency: libpcrecpp.so.0 for package: pcre-devel
---> Package pcre-devel.x86_64 0:6.6-6.el5_6.1 set to be updated
---> Package php53-gd.x86_64 0:5.3.3-13.el5_8 set to be updated
---> Package php53-process.x86_64 0:5.3.3-13.el5_8 set to be updated
---> Package wget.x86_64 0:1.11.4-3.el5_8.2 set to be updated
--> Running transaction check
---> Package cpp.x86_64 0:4.1.2-54.el5 set to be updated
---> Package gcc-c++.x86_64 0:4.1.2-54.el5 set to be updated
--> Processing Dependency: libstdc++ = 4.1.2-54.el5 for package: gcc-c++
--> Processing Dependency: libstdc++-devel = 4.1.2-54.el5 for package: gcc-c++
---> Package gcc-gfortran.x86_64 0:4.1.2-54.el5 set to be updated
--> Processing Dependency: libgfortran = 4.1.2-54.el5 for package: gcc-gfortran
---> Package libgcc.i386 0:4.1.2-54.el5 set to be updated
---> Package libgcc.x86_64 0:4.1.2-54.el5 set to be updated
---> Package pcre.i386 0:6.6-6.el5_6.1 set to be updated
---> Package perl-Error.noarch 1:0.17010-1.el5 set to be updated
---> Package perl-Git.x86_64 0:1.7.4.1-1.el5 set to be updated
--> Running transaction check
---> Package libgfortran.x86_64 0:4.1.2-54.el5 set to be updated
---> Package libstdc++.i386 0:4.1.2-54.el5 set to be updated
---> Package libstdc++.x86_64 0:4.1.2-54.el5 set to be updated
---> Package libstdc++-devel.x86_64 0:4.1.2-54.el5 set to be updated
epel/filelists_db | 5.6 MB 00:01
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Installing:
git x86_64 1.7.4.1-1.el5 epel 4.5 M
pcre-devel i386 6.6-6.el5_6.1 base 181 k
pcre-devel x86_64 6.6-6.el5_6.1 base 184 k
php53-gd x86_64 5.3.3-13.el5_8 base 111 k
php53-process x86_64 5.3.3-13.el5_8 base 39 k
Updating:
gcc x86_64 4.1.2-54.el5 base 5.3 M
httpd x86_64 2.2.3-76.el5.centos updates 1.3 M
wget x86_64 1.11.4-3.el5_8.2 base 583 k
Installing for dependencies:
pcre i386 6.6-6.el5_6.1 base 117 k
perl-Error noarch 1:0.17010-1.el5 epel 26 k
perl-Git x86_64 1.7.4.1-1.el5 epel 28 k
Updating for dependencies:
cpp x86_64 4.1.2-54.el5 base 2.9 M
gcc-c++ x86_64 4.1.2-54.el5 base 3.8 M
gcc-gfortran x86_64 4.1.2-54.el5 base 3.5 M
libgcc i386 4.1.2-54.el5 base 97 k
libgcc x86_64 4.1.2-54.el5 base 100 k
libgfortran x86_64 4.1.2-54.el5 base 245 k
libstdc++ i386 4.1.2-54.el5 base 363 k
libstdc++ x86_64 4.1.2-54.el5 base 354 k
libstdc++-devel x86_64 4.1.2-54.el5 base 2.8 M

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

Total download size: 26 M
Is this ok [y/N]: 【y】

Downloading Packages:
(1/20): perl-Error-0.17010-1.el5.noarch.rpm | 26 kB 00:00
(2/20): perl-Git-1.7.4.1-1.el5.x86_64.rpm | 28 kB 00:00
(3/20): php53-process-5.3.3-13.el5_8.x86_64.rpm | 39 kB 00:00
(4/20): libgcc-4.1.2-54.el5.i386.rpm | 97 kB 00:00
(5/20): libgcc-4.1.2-54.el5.x86_64.rpm | 100 kB 00:00
(6/20): php53-gd-5.3.3-13.el5_8.x86_64.rpm | 111 kB 00:00
(7/20): pcre-6.6-6.el5_6.1.i386.rpm | 117 kB 00:00
(8/20): pcre-devel-6.6-6.el5_6.1.i386.rpm | 181 kB 00:00
(9/20): pcre-devel-6.6-6.el5_6.1.x86_64.rpm | 184 kB 00:00
(10/20): libgfortran-4.1.2-54.el5.x86_64.rpm | 245 kB 00:00
(11/20): libstdc++-4.1.2-54.el5.x86_64.rpm | 354 kB 00:00
(12/20): libstdc++-4.1.2-54.el5.i386.rpm | 363 kB 00:00
(13/20): wget-1.11.4-3.el5_8.2.x86_64.rpm | 583 kB 00:00
(14/20): httpd-2.2.3-76.el5.centos.x86_64.rpm | 1.3 MB 00:00
(15/20): libstdc++-devel-4.1.2-54.el5.x86_64.rpm | 2.8 MB 00:00
(16/20): cpp-4.1.2-54.el5.x86_64.rpm | 2.9 MB 00:00
(17/20): gcc-gfortran-4.1.2-54.el5.x86_64.rpm | 3.5 MB 00:00
(18/20): gcc-c++-4.1.2-54.el5.x86_64.rpm | 3.8 MB 00:00
(19/20): git-1.7.4.1-1.el5.x86_64.rpm | 4.5 MB 00:01
(20/20): gcc-4.1.2-54.el5.x86_64.rpm | 5.3 MB 00:01
------------------------------------------------------------------------------------------------------------------------------------
Total 3.6 MB/s | 26 MB 00:07
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 217521f6
epel/gpgkey | 1.7 kB 00:00
Importing GPG key 0x217521F6 "Fedora EPEL <epel@fedoraproject.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
Is this ok [y/N]: 【y】
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : libgcc 1/32
Updating : libstdc++ 2/32
Updating : libgfortran 3/32
Updating : cpp 4/32
Installing : php53-gd 5/32
Installing : php53-process 6/32
Updating : wget 7/32
Updating : httpd 8/32
Updating : libgcc 9/32
Updating : libstdc++ 10/32
Installing : pcre 11/32
Installing : perl-Error 12/32
Updating : gcc 13/32
Updating : gcc-gfortran 14/32
Updating : libstdc++-devel 15/32
Updating : gcc-c++ 16/32
Installing : pcre-devel 17/32
Installing : pcre-devel 18/32
Installing : git 19/32
Installing : perl-Git 20/32
Cleanup : gcc-gfortran 21/32
Cleanup : libgcc 22/32
Cleanup : httpd 23/32
Cleanup : libstdc++-devel 24/32
Cleanup : wget 25/32
Cleanup : libgfortran 26/32
Cleanup : libstdc++ 27/32
Cleanup : libstdc++ 28/32
Cleanup : gcc 29/32
Cleanup : gcc-c++ 30/32
Cleanup : libgcc 31/32
Cleanup : cpp 32/32

Installed:
git.x86_64 0:1.7.4.1-1.el5 pcre-devel.i386 0:6.6-6.el5_6.1 pcre-devel.x86_64 0:6.6-6.el5_6.1
php53-gd.x86_64 0:5.3.3-13.el5_8 php53-process.x86_64 0:5.3.3-13.el5_8

Dependency Installed:
pcre.i386 0:6.6-6.el5_6.1 perl-Error.noarch 1:0.17010-1.el5 perl-Git.x86_64 0:1.7.4.1-1.el5

Updated:
gcc.x86_64 0:4.1.2-54.el5 httpd.x86_64 0:2.2.3-76.el5.centos wget.x86_64 0:1.11.4-3.el5_8.2

Dependency Updated:
cpp.x86_64 0:4.1.2-54.el5 gcc-c++.x86_64 0:4.1.2-54.el5 gcc-gfortran.x86_64 0:4.1.2-54.el5
libgcc.i386 0:4.1.2-54.el5 libgcc.x86_64 0:4.1.2-54.el5 libgfortran.x86_64 0:4.1.2-54.el5
libstdc++.i386 0:4.1.2-54.el5 libstdc++.x86_64 0:4.1.2-54.el5 libstdc++-devel.x86_64 0:4.1.2-54.el5

Complete!
Attempting to install PEAR
--2013-04-12 02:53:38-- http://pear.php.net/go-pear.phar Resolving pear.php.net... 5.77.39.20
Connecting to pear.php.net|5.77.39.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4082712 (3.9M) [application/octet-stream]
Saving to: `go-pear.phar'

100%[==========================================================================================>] 4,082,712 727K/s in 5.5s

2013-04-12 02:53:45 (727 KB/s) - `go-pear.phar' saved [4082712/4082712]

Below is a suggested file layout for your new PEAR installation. To
change individual locations, type the number in front of the
directory. Type 'all' to change all of them or simply press Enter to
accept these locations.

1. Installation base ($prefix) : /usr
2. Temporary directory for processing : /tmp/pear/install
3. Temporary directory for downloads : /tmp/pear/install
4. Binaries directory : /usr/bin
5. PHP code directory ($php_dir) : /usr/share/pear
6. Documentation directory : /usr/docs
7. Data directory : /usr/data
8. User-modifiable configuration files directory : /usr/cfg
9. Public Web Files directory : /usr/www
10. Tests directory : /usr/tests
11. Name of configuration file : /etc/pear.conf

1-11, 'all' or Enter to continue: 【回车】
Beginning install...
PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in phar:///usr/local/phabricator/go-pear.phar/PEAR/Registry.php on line 1012
PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in phar:///usr/local/phabricator/go-pear.phar/PEAR/Registry.php on line 1012
PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in phar:///usr/local/phabricator/go-pear.phar/PEAR/Registry.php on line 1012
PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in phar:///usr/local/phabricator/go-pear.phar/PEAR/Registry.php on line 1012
Configuration written to /etc/pear.conf...
Initialized registry...
Preparing to install...
installing phar:///usr/local/phabricator/go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.11.tar...
installing phar:///usr/local/phabricator/go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.3.1.tar...
installing phar:///usr/local/phabricator/go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.9.4.tar...
installing phar:///usr/local/phabricator/go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.0.4.tar...
installing phar:///usr/local/phabricator/go-pear.phar/PEAR/go-pear-tarballs/XML_Util-1.2.1.tar...
install ok: channel://pear.php.net/Archive_Tar-1.3.11
install ok: channel://pear.php.net/Console_Getopt-1.3.1
install ok: channel://pear.php.net/Structures_Graph-1.0.4
install ok: channel://pear.php.net/XML_Util-1.2.1
install ok: channel://pear.php.net/PEAR-1.9.4
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)
PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)
PEAR: To install optional features use "pear install pear/PEAR#featurename"

The 'pear' command is now at your service at /usr/bin/pear

** The 'pear' command is not currently in your PATH, so you need to
** use '/usr/bin/pear' until you have added
** '/usr/bin' to your PATH environment variable.

Run it without parameters to see the available actions, try 'pear list'
to see what packages are installed, or 'pear help' for help.

For more information about PEAR, see:
http://pear.php.net/faq.php http://pear.php.net/manual/

Thanks for using go-pear!

WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading APC-3.1.13.tgz ...
Starting to download APC-3.1.13.tgz (171,591 bytes)
.....................................done: 171,591 bytes
55 source files, building
running: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
Enable internal debugging in APC [no] : 【全部回车】
Enable per request file info about files used from the APC cache [no] : 【全部回车】
Enable spin locks (EXPERIMENTAL) [no] : 【全部回车】
Enable memory protection (EXPERIMENTAL) [no] : 【全部回车】
Enable pthread mutexes (default) [no] : 【全部回车】
Enable pthread read/write locks (EXPERIMENTAL) [yes] : 【全部回车】
building in /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13
running: /tmp/pear/install/APC/configure --enable-apc-debug=no --enable-apc-filehits=no --enable-apc-spinlocks=no --enable-apc-memprotect=no --enable-apc-pthreadmutex=no --enable-apc-pthreadrwlocks=yes
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... no
checking whether we should use pthread read/write locking... yes
pthread rwlocks are supported!
checking whether the target compiler supports builtin atomics... yes
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 whether to include code coverage symbols... no
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... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
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
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 static flag -static works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc.c -o apc.lo
mkdir .libs
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc.c -fPIC -DPIC -o .libs/apc.o
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/php_apc.c -o php_apc.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/php_apc.c -fPIC -DPIC -o .libs/php_apc.o
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_cache.c -o apc_cache.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_cache.c -fPIC -DPIC -o .libs/apc_cache.o
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_compile.c -o apc_compile.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_compile.c -fPIC -DPIC -o .libs/apc_compile.o
/tmp/pear/install/APC/apc_compile.c:304: warning: 'hot' attribute directive ignored
/tmp/pear/install/APC/apc_compile.c:952: warning: 'hot' attribute directive ignored
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_debug.c -o apc_debug.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_debug.c -fPIC -DPIC -o .libs/apc_debug.o
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_fcntl.c -o apc_fcntl.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_fcntl.c -fPIC -DPIC -o .libs/apc_fcntl.o
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_main.c -o apc_main.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_main.c -fPIC -DPIC -o .libs/apc_main.o
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_mmap.c -o apc_mmap.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_mmap.c -fPIC -DPIC -o .libs/apc_mmap.o
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_sem.c -o apc_sem.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_sem.c -fPIC -DPIC -o .libs/apc_sem.o
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_shm.c -o apc_shm.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_shm.c -fPIC -DPIC -o .libs/apc_shm.o
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_pthreadmutex.c -o apc_pthreadmutex.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_pthreadmutex.c -fPIC -DPIC -o .libs/apc_pthreadmutex.o
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_pthreadrwlock.c -o apc_pthreadrwlock.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_pthreadrwlock.c -fPIC -DPIC -o .libs/apc_pthreadrwlock.o
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_spin.c -o apc_spin.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_spin.c -fPIC -DPIC -o .libs/apc_spin.o
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/pgsql_s_lock.c -o pgsql_s_lock.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/pgsql_s_lock.c -fPIC -DPIC -o .libs/pgsql_s_lock.o
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_sma.c -o apc_sma.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_sma.c -fPIC -DPIC -o .libs/apc_sma.o
/tmp/pear/install/APC/apc_sma.c:180: warning: 'hot' attribute directive ignored
/tmp/pear/install/APC/apc_sma.c:277: warning: 'hot' attribute directive ignored
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_stack.c -o apc_stack.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_stack.c -fPIC -DPIC -o .libs/apc_stack.o
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_zend.c -o apc_zend.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_zend.c -fPIC -DPIC -o .libs/apc_zend.o
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_rfc1867.c -o apc_rfc1867.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_rfc1867.c -fPIC -DPIC -o .libs/apc_rfc1867.o
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_signal.c -o apc_signal.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_signal.c -fPIC -DPIC -o .libs/apc_signal.o
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_pool.c -o apc_pool.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_pool.c -fPIC -DPIC -o .libs/apc_pool.o
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_iterator.c -o apc_iterator.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_iterator.c -fPIC -DPIC -o .libs/apc_iterator.o
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_bin.c -o apc_bin.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_bin.c -fPIC -DPIC -o .libs/apc_bin.o
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=compile cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_string.c -o apc_string.lo
cc -D_GNU_SOURCE -I. -I/tmp/pear/install/APC -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/APC/apc_string.c -fPIC -DPIC -o .libs/apc_string.o
/bin/sh /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=link cc -DPHP_ATOM_INC -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/include -I/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/main -I/tmp/pear/install/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 /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/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_pthreadrwlock.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_pthreadrwlock.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 /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/libtool --mode=install cp ./apc.la /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/modules
cp ./.libs/apc.so /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/modules/apc.so
cp ./.libs/apc.lai /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/modules/apc.la
PATH="$PATH:/sbin" ldconfig -n /tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/modules
----------------------------------------------------------------------
Libraries have been installed in:
/tmp/pear/install/pear-build-rootkSz4Q3/APC-3.1.13/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="/tmp/pear/install/pear-build-rootkSz4Q3/install-APC-3.1.13" install
Installing shared extensions: /tmp/pear/install/pear-build-rootkSz4Q3/install-APC-3.1.13/usr/lib64/php/modules/
Installing header files: /tmp/pear/install/pear-build-rootkSz4Q3/install-APC-3.1.13/usr/include/php/
running: find "/tmp/pear/install/pear-build-rootkSz4Q3/install-APC-3.1.13" | xargs ls -dils
6914121 4 drwxr-xr-x 3 root root 4096 Apr 12 02:56 /tmp/pear/install/pear-build-rootkSz4Q3/install-APC-3.1.13
6914186 4 drwxr-xr-x 4 root root 4096 Apr 12 02:56 /tmp/pear/install/pear-build-rootkSz4Q3/install-APC-3.1.13/usr
6914190 4 drwxr-xr-x 3 root root 4096 Apr 12 02:56 /tmp/pear/install/pear-build-rootkSz4Q3/install-APC-3.1.13/usr/include
6914191 4 drwxr-xr-x 3 root root 4096 Apr 12 02:56 /tmp/pear/install/pear-build-rootkSz4Q3/install-APC-3.1.13/usr/include/php
6914192 4 drwxr-xr-x 3 root root 4096 Apr 12 02:56 /tmp/pear/install/pear-build-rootkSz4Q3/install-APC-3.1.13/usr/include/php/ext
6914193 4 drwxr-xr-x 2 root root 4096 Apr 12 02:56 /tmp/pear/install/pear-build-rootkSz4Q3/install-APC-3.1.13/usr/include/php/ext/apc
6914194 4 -rw-r--r-- 1 root root 3357 Apr 12 02:56 /tmp/pear/install/pear-build-rootkSz4Q3/install-APC-3.1.13/usr/include/php/ext/apc/apc_serializer.h
6914187 4 drwxr-xr-x 3 root root 4096 Apr 12 02:56 /tmp/pear/install/pear-build-rootkSz4Q3/install-APC-3.1.13/usr/lib64
6914188 4 drwxr-xr-x 3 root root 4096 Apr 12 02:56 /tmp/pear/install/pear-build-rootkSz4Q3/install-APC-3.1.13/usr/lib64/php
6914189 4 drwxr-xr-x 2 root root 4096 Apr 12 02:56 /tmp/pear/install/pear-build-rootkSz4Q3/install-APC-3.1.13/usr/lib64/php/modules
6914185 680 -rwxr-xr-x 1 root root 688610 Apr 12 02:56 /tmp/pear/install/pear-build-rootkSz4Q3/install-APC-3.1.13/usr/lib64/php/modules/apc.so

Build process completed successfully
Installing '/usr/include/php/ext/apc/apc_serializer.h'
Installing '/usr/lib64/php/modules/apc.so'
install ok: channel://pecl.php.net/APC-3.1.13
configuration option "php_ini" is not set to php.ini location
You should add "extension=apc.so" to php.ini 这个提示特别重要!!需要将"extension=apc.so"加到/etc/php.ini中,以激活APC扩展】
Please remember to start the httpd with: /etc/init.d/httpd start
Press RETURN to continue, or ^C to cancel. 【回车】

Cloning into libphutil...
remote: Counting objects: 6352, done.
remote: Compressing objects: 100% (2171/2171), done.
remote: Total 6352 (delta 4051), reused 6289 (delta 3997)
Receiving objects: 100% (6352/6352), 2.05 MiB | 600 KiB/s, done.
Resolving deltas: 100% (4051/4051), done.
Cloning into arcanist...
remote: Counting objects: 9123, done.
remote: Compressing objects: 100% (3159/3159), done.
remote: Total 9123 (delta 6015), reused 8939 (delta 5848)
Receiving objects: 100% (9123/9123), 1.74 MiB | 479 KiB/s, done.
Resolving deltas: 100% (6015/6015), done.
Cloning into phabricator...
remote: Counting objects: 73390, done.
remote: Compressing objects: 100% (24476/24476), done.
remote: Total 73390 (delta 49653), reused 71369 (delta 47823)
Receiving objects: 100% (73390/73390), 18.05 MiB | 1.18 MiB/s, done.
Resolving deltas: 100% (49653/49653), done.

Install probably worked mostly correctly. Continue with the 'Configuration Guide':
http://www.phabricator.com/docs/phabricator/article/Configuration_Guide.html
根据上面的提示,需要将"extension=apc.so"加到/etc/php.ini中

vi /etc/php.ini
将extension=apc.so加到932行


5.配置Apache

cp /usr/lib64/httpd/modules/libphp5.so /usr/local/apache2/modules/
vi usr/local/apache2/conf/httpd.conf


(5.1)加载libphp5.so模块

LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps


(5.2)添加index.php到DirectoryIndex

<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>


(5.3)添加phabricator配置

<VirtualHost *>
# Change this to the domain which points to your host.
ServerName xxx.xxx.xxx

# Change this to the path where you put 'phabricator' when you checked it
# out from GitHub when following the Installation Guide.
#
# Make sure you include "/webroot" at the end!
DocumentRoot /usr/local/phabricator/phabricator/webroot

RewriteEngine on
RewriteRule ^/rsrc/(.*) - [L,QSA]
RewriteRule ^/favicon.ico - [L,QSA]
RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA]
</VirtualHost>

<Directory "/usr/local/phabricator/phabricator/webroot">
Order allow,deny
Allow from all
</Directory>


(4)启动apache:

cd /usr/local/apache2/bin
./apachectl -k start


6.浏览器登陆http://xxx.xxx.xxx/
显示缺少PHP的mbstring扩展包,见截图:



因为安装的版本是PHP53,所以mbstring也安装php53的

yum install php53-mbstring


安装日志如下:

Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* epel: mirrors.ustc.edu.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php53-mbstring.x86_64 0:5.3.3-13.el5_8 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Installing:
php53-mbstring x86_64 5.3.3-13.el5_8 base 1.2 M

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

Total download size: 1.2 M
Is this ok [y/N]: y 【y】
Downloading Packages:
php53-mbstring-5.3.3-13.el5_8.x86_64.rpm | 1.2 MB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : php53-mbstring 1/1

Installed:
php53-mbstring.x86_64 0:5.3.3-13.el5_8

Complete!
安装成功后,重启apache:

/usr/local/apache2/bin/apachectl -k restart


刷新浏览器,提示需要连接数据库,见截图:



7. 配置数据库

cd /usr/local/phabricator/phabricator/bin
./storage upgrade


日志如下:

Before running storage upgrades, you should take down the Phabricator web
interface and stop any running Phabricator daemons (you can disable this
warning with --force).

Are you ready to continue? [y/N] 【y】
Loading quickstart template...
Applying patch 'phabricator:db.conpherence'...
Applying patch 'phabricator:db.token'...
Applying patch 'phabricator:db.releeph'...
Applying patch 'phabricator:db.phlux'...
Applying patch 'phabricator:db.phortune'...
Applying patch 'phabricator:db.phrequent'...
Applying patch 'phabricator:20130111.conpherence.sql'...
Applying patch 'phabricator:20130127.altheraldtranscript.sql'...
Applying patch 'phabricator:20130201.revisionunsubscribed.php'...
Migrating Differential unsubscribed users to edges...
Done.
Applying patch 'phabricator:20130201.revisionunsubscribed.sql'...
Applying patch 'phabricator:20130131.conpherencepics.sql'...
Applying patch 'phabricator:20130214.chatlogchannel.sql'...
Applying patch 'phabricator:20130214.chatlogchannelid.sql'...
Applying patch 'phabricator:20130214.token.sql'...
Applying patch 'phabricator:20130215.phabricatorfileaddttl.sql'...
Applying patch 'phabricator:20130217.cachettl.sql'...
Applying patch 'phabricator:20130218.updatechannelid.php'...
Updating channel IDs of previous chatlog events...

Done.
Applying patch 'phabricator:20130218.longdaemon.sql'...
Applying patch 'phabricator:20130219.commitsummary.sql'...
Applying patch 'phabricator:20130219.commitsummarymig.php'...
Backfilling commit summaries...
Done.
Applying patch 'phabricator:20130222.dropchannel.sql'...
Applying patch 'phabricator:20130226.commitkey.sql'...
Applying patch 'phabricator:20131302.maniphestvalue.sql'...
Applying patch 'phabricator:20130304.lintauthor.sql'...
Applying patch 'phabricator:releeph.sql'...
Applying patch 'phabricator:20130319.phabricatorfileexplicitupload.sql'...
Applying patch 'phabricator:20130319.conpherence.sql'...
Applying patch 'phabricator:20130320.phlux.sql'...
Applying patch 'phabricator:20130317.phrictionedge.sql'...
Applying patch 'phabricator:20130321.token.sql'...
Applying patch 'phabricator:20130310.xactionmeta.sql'...
Applying patch 'phabricator:20130322.phortune.sql'...
Applying patch 'phabricator:20130323.phortunepayment.sql'...
Applying patch 'phabricator:20130324.phortuneproduct.sql'...
Applying patch 'phabricator:20130330.phrequent.sql'...
Applying patch 'phabricator:20130403.conpherencecache.sql'...
Applying patch 'phabricator:20130403.conpherencecachemig.php'...
Migrating data from conpherence transactions to conpherence 'cache'...

Done.
Storage is up to date. Use 'storage status' for details. 【可以看到,安装了很多数据库】

刷新浏览器,进入登录界面,截图请参照:



8. 创建第一个账户

/usr/local/phabricator/phabricator/bin/accountadmin


日志如下:

Enter a username to create a new account or edit an existing account.

Enter a username: admin 【输入admin】
There is no existing user account 'admin'.

Do you want to create a new 'admin' account? [Y/n] y 【y】

Enter user real name: admin 【admin】

Enter user email address: zhangqing@yihaodian.com 【zhangqing@yihaodian.com】

Enter a password for this user [blank to leave unchanged]: 【输入密码:admin】

Should this user be a system agent? [y/N] y 【y】

Should this user be an administrator? [y/N] y 【y】

ACCOUNT SUMMARY

OLD VALUE NEW VALUE
Username admin
Real Name admin
Email xxxx@yihaodian.com
Password Updated
System Agent N Y
Admin N Y

Save these changes? [Y/n] y 【y】

Saved changes.

使用新创建的账户admin/admin登录,成功登录,见截图:


但是提示有两个问题需要解决: You have 2 unresolved setup issues...
点击进入issue页面,见截图:UnresolvedIssue.png



这两个问题都很好解决:
(1)时区可以直接在页面设置(点击Edit phabricator.timezone),PHP时区列表参照:http://cn2.php.net/manual/zh/timezones.php
Value值确定为:Asia/Chongqing
(2)BaseURL问题,直接根据提示设置即可,见截图:



/usr/local/phabricator/phabricator/binconfig set phabricator.base-uri 'http://xxx.xxx.xxx/'


到此!!! 安装完成!!!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: