1、安装mysql执行./configure的时候出现如下错误
checking for C compiler default output file name... configure: error: C compiler cannot create executables
升级yum install gcc 解决问题。
安装mysql
[root@Kevin mysql-5.1.22-rc]# ./configure \
> --prefix=/httpd/mysql --sysconfdir=/httpd/mysql --enable-assembler \
> --with-unix-socket-path=/tmp/mysql.sock --with-mysqld-user=mysql \
> --with-mysqld-ldflags=-a-static --with-innodb --with-extra-charsets=all \
> --with-charset=gb2312 --with-collation=gb2312_chinese_ci \
> --enable-thread-safe-client
[root@webserver mysql-5.1.24-rc]# ./configure --prefix=/usr/local/mysql --enable-local-infile --with-extra-charsets=all
2、安装apache
./configure --prefix=/usr/local/apache --enable-so --enable-ssl --enable-rewrite --enable-mods-shared=most
3、安装php
安装jpeg
cd jpeg-6b/
mkdir -pv /usr/local/jpeg6/{,bin,lib,include,man/man1,man1}
./configure --prefix=/usr/local/jpeg6 --enable-shared --enable-static
make
make install
make install-lib
安装php
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iodbc --with-zlib --with-gd --with-jpeg-dir=/usr/local/jpeg6 --with-png-dir --with-freetype-dir --with-bz2 --with-zlib-dir --with-bz2-dir --with-ttf --enable-ftp --with-openssl --enable-gd-native-ttf
make
make test
make install
装完了,把support下的php配置文件考到/usr/local/php/lib/php.ini
httpd.conf改点参数。
阅读(1192) | 评论(0) | 转发(0) |