天天看點

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 對象教程