phpインストール

yum install php php-gd php-mbstring php-mysql php-pdo

yum install gcc

yum install libxml2 libxml2-devel

バージョンに注意!!
# yum install bison

yum install gcc-c++

yum install curl curl-devel

yum install gd gd-devel

yum install gmp gmp-devel

yum install mysql-devel

re2c インストール

# mkdir /usr/local/src/re2c
# cd /usr/local/src/re2c
# wget -O re2c-0.13.7.5.tar.gz https://github.com/skvadrik/re2c/releases/download/0.13.7.5/re2c-0.13.7.5.tar.gz
# tar zxvf re2c-0.13.7.5.tar.gz
# cd re2c-0.13.7.5
# ./configure --prefix=/usr/local/re2c-0.13.7.5
# make && make install

lemon インストール

# mkdir /usr/local/src/lemon
# cd /usr/local/src/lemon
# wget https://svn.apache.org/repos/asf/lucy/trunk/lemon/lemon.c
# gcc -o lemon lemon.c
# mv lemon /usr/local/bin/

bison2.6.4 インストール

# mkdir /usr/local/src/bison
# cd /usr/locsl/src/bison
# wget https://ftp.gnu.org/gnu/bison/bison-2.6.4.tar.gz
# tar zxvf bison-2.6.4.tar.gz
# cd bison-2.6.4/
# ./configure --prefix=/usr/local/bison-2.6.4
# make && make install

PHP5.3.29 インストール

# mkdir /usr/local/src/php
# cd /usr/local/src/php
# wget --trust-server-names http://jp2.php.net/get/php-5.3.29.tar.gz/from/this/mirror
# tar zxvf php-5.3.29.tar.gz
# cd php-5.3.29

# PATH=$PATH:/usr/local/bison-2.6.4/bin:/usr/local/re2c-0.13.7.5/bin
# export PATH

# ./configure --prefix=/usr/local/php-5.3.29-thread --with-apxs2 --enable-mbstring --enable-zend-multibyte --enable-ftp --enable-sockets --with-mysql --with-mysqli --with-pdo-mysql --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-zlib --with-openssl --with-libdir=lib64 --with-curl --with-curlwrappers --enable-maintainer-zts > configure.log
# make
# make test
# make install

# cp php.ini-production /usr/local/php-5.3.29-thread/lib/php.ini
# ln -s /usr/local/php-5.3.29-thread/bin/* /usr/local/bin/
コメントを入力:
T Z T S G