LAMP架构编译安装过程中遇到的错误
2013-04-10 23:45
671 查看
LAMP架构编译安装过程中遇到的错误
做运维工作一年了,中间遇到了 各种各样的错误,可惜的是没有将这些错误积累下来形成自己的文档,现在开始记录,从最简单的开始,记录一下我在编译安装LAMP架构过程中遇到的错误吧。
编译安装php-5.3.10, ./configure --with-apxs2 --disable-ipv6 --with-openssl=/usr --with-libxml-dir=/usr --with-zlib=/usr --with-bz2=/usr --with-curl=/usr --enable-ftp --with-mssql=/usr/local/mysql --with-mysql-sock=/var/run/mysqld/mysql5.socket --with-mysqli=/usr/local/mysql/bin/mysql_config报错configure: error: xml2-config not found. Please check your libxml2 installation
错误原因,xml2-config这个文件没找到,所以需要重装libxml2-devel,为方便我直接安装所有包 yum install libxml2* -y。
继续编译出现另一个错误configure: error: Please reinstall the BZip2 distribution
错误原因,没有装bzip2
yum install bzip2 bzip2-devel -y
继续编译出现另一个错误configure: error: Directory /usr/local/mysql is not a FreeTDS installation directory
错误原因php找不到freetds的安装路径
编译安装mysql-5.1.36.tar.gz
./configure --prefix=/usr/local/mysql --enable-local-infile --with-charset=gbk --with-extra-charsets=gb2312,utf8 --with-server-suffix='-myclass' --with-pthread --with-unix-socket-path=/var/run/mysqld/mysql5.socket --with-tcp-port=3306 --with-mysqld-user=mysql --with-zlib-dir=/usr --with-debug --with-low-memory --with-big-tables --with-plugins=heap,innobase,myisam,myisammrg,ndbcluster --with-ndb-docs
报错1configure: error: No curses/termcap library found
需要安装curses和termcap
yum install -y libtermcap-devel *curses*
./configure通过后进行make出现错误2
./depcomp: line 512: exec: g++: not found
make[2]: *** [my_new.o] 错误 127
make[2]: Leaving directory `/usr/local/setup/mysql-5.0.51b/mysys'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/usr/local/setup/mysql-5.0.51b'
make: *** [all] 错误 2
[root@gameserver mysql-5.0.51b]# yum install -y gcc-c++
解决办法:
yum install -y gcc-c++../include/my_global.h:1088: 错误:对 C++ 内建类型 ‘bool’ 的重声明是的话 重新./configure 在make clean make make install 就解决了本文出自 “欧尼” 博客,转载请与作者联系!
相关文章推荐
- LAMP 架构的编译安装及错误完全分析
- centos6上超详细LAMP编译安装过程以及所遇到的问题
- Android NDK 编译过程中遇到错误 exception handling disabled, use
- Ubuntu 8.04里LAMP手动编译安装架构纪录
- 手动编译安装LAMP架构,并且实现nagios图形化监控(六)
- 手动编译安装LAMP架构,并且实现nagios图形化监控(七)
- CentOS编译安装软件过程中遇到zlib.h: No such file or directory
- mini2440交叉编译工具安装及使用过程中可能会遇到的问题及解决办法
- LAMP架构部署——编译安装Apache
- ansible安装过程中常遇到的错误
- hadoop2.4.1源码在64位系统编译过程中遇到的几个错误及解决方法
- 记录下安装ES过程中遇到的错误及解决
- centos7编译安装php7我遇到的错误
- 手动编译安装LAMP架构,并且实现nagios图形化监控(五)
- thrift安装过程中遇到的错误
- ldap安装配置过程中遇到的错误,以及解决方法
- 彻底解决adobe CS5安装过程中安装程序遇到错误(-1)。请重新启动计算机,然后重试。
- 在vc++2008 编译过程中遇到 fatal error CVT1100 错误的解决方法
- LAMP架构部署——编译安装MySQL
- sysbench 安装过程中遇到的错误及解决方法