redhat apache+php,解决redhat 下安装APACHE+MYSQL+PHP常见错误

在安装apache+mysql+php时遇到过很多问题、、、这里总结给大家,不过解决办法的前提是安装本地源服务YUM

configure: error: no acceptable cc found in $PATH

yum -y install gcc-c++

configure: error: cannot find output from lex; giving up flex is not installed, install flex. [/color]

yum -y install flex

configure: error: xml2-config not found. Please check your libxml2 installation.

yum -y install libxml2-devel

configure: error: Cannot find OpenSSL's

yum -y install openssl-devel

configure: error: Please reinstall the BZip2 distribution

yum -y install bzip2-devel

configure: error: Please reinstall the libcurl distribution - easy.h should be in /include/curl/

yum -y install curl-devel

configure: error: libjpeg.(a|so) not found.

yum -y install libjpeg-devel

configure: error: libpng.(a|so) not found.

yum -y install libpng-devel

configure: error: freetype2 not found!

yum -y install freetype-devel

configure: error: Unable to locate gmp.h

yum -y install gmp-devel

configure: error: Cannot find pspell

yum -y install aspell-devel

configure: error: xml2-config not found. Please check your libxml2 installation.

yum install libxml2-devel

[root@learn mysql]# bin/mysql_install_db --user=mysql

Installing MySQL system tables...

110708 13:24:56 [Warning] option 'max_join_size': unsigned value 18446744073709551615

adjusted to 4294967295

110708 13:24:56 [Warning] option 'max_join_size': unsigned value 18446744073709551615

adjusted to 4294967295

ERROR: 1004 Can't create file '/tmp/#sql612d_1_0.frm' (errno: 13)

110708 13:24:56 [ERROR] Aborting

110708 13:24:56 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete

遇到这个错误的时候,只需要chmod 777 /tmp 就OK了

结果:[root@learn mysql]# bin/mysql_install_db --user=mysql

Installing MySQL system tables...

110708 13:30:25 [Warning] option 'max_join_size': unsigned value 18446744073709551615

adjusted to 4294967295

110708 13:30:25 [Warning] option 'max_join_size': unsigned value 18446744073709551615

adjusted to 4294967295

OK

希望这些可以帮助那些有志之士及时的解决问题,这些问题有困扰我一天啊、、

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值