2013年1月4日金曜日

php インストール

php

freetype2
freetype-2.4.0.tar.gz
tar -zxmf freetype-2.4.0.tar.gz
cd freetype-2.4.0
./configure --enable-shared
make
sudo make install

libxml
ftp://xmlsoft.org/libxml2/
tar -zxmf libxml2-2.9.0.tar.gz
cd libxml2-2.9.0
./configure --enable-shared
make
sudo make install

zlib
http://sourceforge.net/projects/libpng/files/zlib/1.2.7/
tar -zxmf zlib-1.2.7.tar.gz
cd zlib-1.2.7
./configure --enable-shared
make
sudo make install

libpng
tar -zxmf libpng-1.5.13.tar.gz
cd libpng-1.5.13
./configure --prefix=/usr/local
make
make test
sudo make install

jpeg
http://www.ijg.org/files/
tar -zxmf jpegsrc.v8d.tar.gz
cd jpeg-8d/
./configure --prefix=/usr/local
sudo make install

php
http://php.net/get/php-5.4.10.tar.gz/from/a/mirror
tar -zxmf php-5.4.10.tar.gz
cd php-5.4.10

./configure \
--with-apxs2=/home/httpd/bin/apxs \
--with-gd \
--with-jpeg-dir=/usr/local/lib \
--with-png-dir=/usr/local/lib \
--with-zlib-dir=/usr/local/lib \
--with-freetype-dir=/usr/local \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--with-mysql=/usr/local/mysql \
--enable-mbstring \
--enable-mbregex \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-mcrypt \
--disable-posix-threads

error
configure: error: mcrypt.h not found. Please reinstall libmcrypt.

yum -y install libmcrypt-devel

make
make test
sudo make install

インストール後に書かれていた内容のメモ
-------------

Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
/home/user/packages/php-5.4.10/build/shtool install -c ext/phar/phar.phar /usr/local/bin
ln -s -f /usr/local/bin/phar.phar /usr/local/bin/phar
Installing PDO headers:          /usr/local/include/php/ext/pdo/

--------------


cp php.ini-development /usr/local/lib/php.ini

/home/user/packages/php-5.4.10/build/shtool install -c ext/phar/phar.phar /usr/local/bin/




0 件のコメント:

コメントを投稿