- 论坛徽章:
- 0
|
偶不懂PHP,在群里碰到有热心人提供了下面的资料,对新手或许有些作用,接下来自己慢慢琢磨
因为不懂,所以不敢保证下面的东西没有错误,如有大牛发现不足,请指正
欢迎拍砖哈~
------------热心人没说公布其ID,所以这里没有署名,在此表示感谢!-------------
##[mhash]
64位服务器添加配置:--host=i386
./configure \
--prefix=/home/work/local/mhash \
--enable-shared \
--enable-static \
--host=i386
make
make install
##[libmcrypt]
./configure \
--prefix=/home/work/local/libmcrypt \
--enable-shared -enable-static
make
make install
##[libpng]
cd libpng-1.2.8-config/
make clean
./configure --prefix=/home/work/local/libpng
make
make install
##[jpeg-6b] (无)
64位机器上要修改libjpeg-6b的config.geuss文件:
#UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
后添加UNAME_MACHINE=i386
./configure \
--prefix=/home/work/local/libjpeg \
--enable-shared --enable-static
mkdir -p /home/work/local/libjpeg/include/
mkdir -p /home/work/local/libjpeg/lib/
mkdir -p /home/work/local/libjpeg/bin/
mkdir -p /home/work/local/libjpeg/man/man1/
make
make install
##[gd2]
make clean
./configure \
--prefix=/home/work/local/gd2 --enable-shared --enable-static
make
make install
##[zlib]
./configure \
--prefix=/home/work/local/zlib \
make
make install
./configure \
--prefix=/home/work/local/php \
--with-mhash=/home/work/local/mhash/ \
--with-mcrypt=/home/work/local/libmcrypt/ \
--with-gd=/home/work/local/gd2/ \
--with-png-dir=/home/work/local/libpng/ \
--with-zlib \
--enable-track-vars \
--enable-ftp \
--enable-sockets \
--enable-shmop
make
make install
# 编译的PHP扩展统一放在 /home/work/local/php/ext 目录下
# 编辑 /home/work/local/php/bin/php-config:
# 修改 extension_dir='/home/work/local/php/ext'
mkdir –p /home/work/local/php/ext
这是 php及扩展包的安装 |
|