天天看点

PHP安装教程

安装php (php-5.1.6.tar.bz2)

        cp php-5.1.6.tar.bz2 /home

        cd /home

        tar jxf php-5.1.6.tar.bz2

        cd php-5.1.6

        ./configure --with-apxs2=/usr/local/apache/bin/apxs --disable-debug --enable-safe-mode --enable-trans-sid --with-xml --with-mysql --enable-short-tags --with-gd --with-zlib --with-jpeg --with-png --enable-memory-limit --disable-posix --with-config-file-path=/usr/local/lib 

1、解决configure: error: libpng.(a|so) not found.

# ln -s /usr/lib64/libjpeg.so /usr/lib/# ln -s /usr/lib64/libpng.so /usr/lib/      

2、错误说明

centos64位版本上安装PHP时在./configure 步骤的时候出现了下面错误

configure: error: Cannot find libmysqlclient under /usr.

Note that the MySQL client library is not bundled anymore!

原因分析与解决

php
上一篇: PHP教程
下一篇: php 对象教程