Chinaunix首页 | 论坛 | 博客
  • 博客访问: 304963
  • 博文数量: 43
  • 博客积分: 1590
  • 博客等级: 上尉
  • 技术积分: 508
  • 用 户 组: 普通用户
  • 注册时间: 2006-11-22 22:16
个人简介

温柔的IT民工~

文章分类

全部博文(43)

文章存档

2013年(1)

2012年(2)

2011年(2)

2010年(7)

2009年(8)

2008年(15)

2007年(8)

分类: 系统运维

2008-09-05 08:09:09

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改点参数。                                                                                                                                                                                                                                                                                                                                                                  
阅读(1152) | 评论(0) | 转发(0) |
0

上一篇:tomcat的目录结构

下一篇:iptraf的安装

给主人留下些什么吧!~~